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

[Feature Request] Allow a user to filter on keywords #3710

Open
4 tasks done
zchilds opened this issue Jul 24, 2023 · 3 comments
Open
4 tasks done

[Feature Request] Allow a user to filter on keywords #3710

zchilds opened this issue Jul 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@zchilds
Copy link

zchilds commented Jul 24, 2023

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.

Is your proposal related to a problem?

Allow users to create a filter for certain keywords like "Twitter, Reddit" etc

Describe the solution you'd like.

In the "Blocks" page allow users to block keywords from post titles. This would hide all posts containing those words in the title.

Describe alternatives you've considered.

Some apps such as Connect on Android already have this feature, but it would be nice to have it included natively in Lemmy.

Additional context

No response

EDIT from dessalines:

This should also work not just on titles, but also URLs and possibly descriptions.

@zchilds zchilds added the enhancement New feature or request label Jul 24, 2023
@grothedev
Copy link

is there any specification about what type of filter processing is allowed to be done on the backend?

@leoseg
Copy link
Contributor

leoseg commented Dec 14, 2024

Hi I would like to work on this issue if possible? I already created a quick draft [here] (#5263), and would also like to ask how in diesel migrate a new table, my Idea was a new table named post_keyword_block (not sure about the name though) which is a just like user id and keyword to then filter results returned by list

@Nutomic
Copy link
Member

Nutomic commented Dec 17, 2024

@leoseg For diesel migrations you can read the docs. In principle you only need to cargo install diesel_cli and run diesel migration generate *name*. The specific table name isnt so important, we can suggest a better one during code review if necessary.

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

No branches or pull requests

5 participants