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

False negative of a filter on a hashtag #30257

Open
AdeptVeritatis opened this issue May 11, 2024 · 6 comments
Open

False negative of a filter on a hashtag #30257

AdeptVeritatis opened this issue May 11, 2024 · 6 comments
Labels
area/web interface Related to the Mastodon web interface status/identified This bug has been identified

Comments

@AdeptVeritatis
Copy link

AdeptVeritatis commented May 11, 2024

Steps to reproduce the problem

  1. Followed the hashtag #aurora a while ago.
  2. Filtered the term "aurora" for a week.
  3. One post was visible, although I am not following this account and the only connection seems to be the hashtag.

Expected behaviour

The post should not have shown up, but filtered correctly.

Actual behaviour

I could see the post on my starting page.

Detailed description

the affected post: https://aaronparecki.com/2024/05/11/3/aurora

I could not see the hashtags of this post at all. Only when I opened the original page.

Mastodon instance

social.tchncs.de

Mastodon version

v4.2.8

Browser name and version

Firefox 125.0.3

Operating system

Arch

Technical details

No response

@AdeptVeritatis AdeptVeritatis added area/web interface Related to the Mastodon web interface bug Something isn't working status/to triage This issue needs to be triaged labels May 11, 2024
@trwnh
Copy link
Member

trwnh commented May 12, 2024

My guess is that the filter checks for the content of the post, not the actual hashtag itself... whereas the hashtag follow checks for the hashtag itself, not the content of the post.

@trwnh trwnh removed the status/to triage This issue needs to be triaged label May 12, 2024
@renchap
Copy link
Sponsor Member

renchap commented May 12, 2024

Looks like out-of-band hashtags are not checked for filtering, only the post content (which might filter some hashtags if they also appear in the text representation)

@renchap renchap added status/identified This bug has been identified and removed bug Something isn't working labels May 12, 2024
@ClearlyClaire
Copy link
Contributor

Yeah, filters apply to the contents of the post (text, poll options and media descriptions), but not out-of-band hashtags. I wonder if we should extend the filtering to out-of-band hashtags as well, or add a specific filter type for hashtags.

@renchap
Copy link
Sponsor Member

renchap commented May 15, 2024

I think I would apply the filter to out-of-band hashtags as well, because this is the behaviour we currently have for in-band hashtags

@ThisIsMissEm
Copy link
Contributor

Huh, interesting, this may have implications for using searchable_text on the streaming server (this improves streaming's performance by not using JSDOM). Additionally, there is a bug regarding filtering hashtags using keyword filters, see #27990 — the PR for that would add a proper CustomFilterHashtag implementation.

@trwnh
Copy link
Member

trwnh commented May 16, 2024

I wonder if we should extend the filtering to out-of-band hashtags as well, or add a specific filter type for hashtags.

i'd be in favor of having both a CustomFilterHashtag and a CustomFilterMention as these are distinct from the textual content, and can be presented in multiple forms (the text inside the anchor link can be anything, including not present). etc etc of course, see #18955 for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web interface Related to the Mastodon web interface status/identified This bug has been identified
Projects
None yet
Development

No branches or pull requests

5 participants