Skip to content

feat: Highlight followed tags in posts#2286

Merged
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:highlight-followed-tags
May 15, 2026
Merged

feat: Highlight followed tags in posts#2286
nikclayton merged 1 commit into
pachli:mainfrom
nikclayton:highlight-followed-tags

Conversation

@nikclayton

Copy link
Copy Markdown
Contributor

In the home timeline statuses might be present because the user follows one or more of the hashtags in the post. In other timelines the user might still want to see that a post contains one or more of their followed hashtags.

So

  • Highlight hashtags the user follows in all posts, by making them bold.
  • In the home timeline, show the first followed hashtag in the info bar. Tapping the hashtag in the bar opens the timeline for that hashtag.

To do this:

  • Fetch the user's list of followed tags when switching accounts, and attach it to PachliAccount.
  • Add the following property to the hashtags on statuses received from timeline queries.
  • Use the new FollowedHashtagSpan to mark up hashtags the user is following.
  • If the statusInfo is empty and the status contains a followed hashtag then show this in the statusInfo.

Fixes #1923

In the home timeline statuses might be present because the user follows
one or more of the hashtags in the post. In other timelines the user
might still want to see that a post contains one or more of their
followed hashtags.

So

- Highlight hashtags the user follows in all posts, by making them bold.
- In the home timeline, show the first followed hashtag in the info bar.
Tapping the hashtag in the bar opens the timeline for that hashtag.

To do this:

- Fetch the user's list of followed tags when switching accounts, and
attach it to `PachliAccount`.
- Add the `following` property to the hashtags on statuses received
from timeline queries.
- Use the new `FollowedHashtagSpan` to mark up hashtags the user is
following.
- If the statusInfo is empty and the status contains a followed
hashtag then show this in the statusInfo.

Fixes pachli#1923
@nikclayton nikclayton force-pushed the highlight-followed-tags branch from e616870 to 592f5cc Compare May 15, 2026 12:44
@nikclayton nikclayton merged commit 75bc84d into pachli:main May 15, 2026
100 of 103 checks passed
@nikclayton nikclayton deleted the highlight-followed-tags branch May 24, 2026 09:47
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.

Highlight/show hashtags that inserted post into timeline

1 participant