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

don't rehide filtered posts on interaction #4130

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

connyduck
Copy link
Collaborator

closes #4125

@connyduck connyduck requested review from Tak, Lakoja and charlag November 29, 2023 18:38
@@ -113,8 +113,7 @@ AND
muted = status.muted,
pinned = status.pinned ?: false,
card = gson.toJson(status.card),
language = status.language,
filtered = status.filtered
language = status.language
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, how does that solve the problem?

(How is "filtered" then stored?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filtered contains the filters that apply to the post. When the post is revealed, we set it to null. On interaction (boost, fav, etc) it would set the filters again. Not updating the filters here means the posts stays revealed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it also / still store the opened state once you have expanded something?

I tested this with:

  • Expand a filtered post
  • Fav it (ok, nothing bad happens)
  • Reload timeline: the post is again filtered (collapsed)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it probably should. But looks like that would require a larger refactoring 🫣

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should merge this as it improves the situation and include it in the 24 release, and I will do the refactor later.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lakoja in my opinion the post should recollapse on timeline reload, just not on Interaction. I for example have a filter for Doctor Who to avoid spoilers, and on more than one occasion I forgot on Saturday there's a new episode up and opened the filter thinking it refers to the last one I saw. I would very much want the filter to recollapse when I reload the timeline in panic trying to avoid reading the post I've accidentally revealed.
maybe that's too extreme a position (I know recollapsing on reload doesn't happen for CWs for example) but I'd argue it justified. but then again, it's all matter of opinion.

@connyduck connyduck merged commit 6463e99 into develop Dec 5, 2023
3 checks passed
@connyduck connyduck deleted the fix_rehiding_filtered_posts branch December 5, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't recollapse filter after every interaction
4 participants