Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include image alt text in post search #5445

Open
5 tasks done
andromxda opened this issue Feb 21, 2025 · 2 comments
Open
5 tasks done

Include image alt text in post search #5445

andromxda opened this issue Feb 21, 2025 · 2 comments
Labels
enhancement New feature or request extra: good first issue Good for newcomers

Comments

@andromxda
Copy link

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Images are hard to find, they often aren't well described in the post title or body. The only field that is really meant for image descriptions is the alt text field.

Describe the solution you'd like.

Image posts should be returned if the search query matches the alt text of an image

Describe alternatives you've considered.

Implement a dedicated image search feature?

Additional context

No response

@andromxda andromxda added the enhancement New feature or request label Feb 21, 2025
@Nutomic
Copy link
Member

Nutomic commented Feb 21, 2025

This is easy to add, only requires a single line added here: https://github.com/LemmyNet/lemmy/blob/main/crates/db_views/src/post/post_view.rs#L491

@DraconicNEO
Copy link

This is easy to add, only requires a single line added here: https://github.com/LemmyNet/lemmy/blob/main/crates/db_views/src/post/post_view.rs#L491

Seems quick and simple enough so I sent a pull request. I did have to do more than one line but still seemed simple enough. What do you think? Did I do good?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request extra: good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants