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

apply Tusky side hometimeline filters to own posts again #4879

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

connyduck
Copy link
Collaborator

addresses part of #4874

@connyduck connyduck requested review from Tak, Lakoja and charlag January 16, 2025 16:13
@@ -181,16 +181,16 @@ abstract class TimelineViewModel(

protected fun shouldFilterStatus(statusViewData: StatusViewData): Filter.Action {
val status = statusViewData.asStatusOrNull()?.status ?: return Filter.Action.NONE
if (status.actionableStatus.account.id == account.accountId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

That was a sort of guess at that time "never filter own posts"?

And the actual change/fix here?

And the remainder is only reformatting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That was a sort of guess at that time "never filter own posts"?

I made #4742 because Mastodon filters should not apply to own posts to match Mastodon behavior. I included Tusky-only filters as well, but based on user feedback I'm reverting that part.

# Conflicts:
#	app/src/main/java/com/keylesspalace/tusky/components/timeline/viewmodel/TimelineViewModel.kt
@connyduck connyduck merged commit 6c85f72 into develop Jan 17, 2025
1 check passed
@connyduck connyduck deleted the filter-own-posts branch January 17, 2025 12:18
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.

3 participants