superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.71k stars 319 forks source link

[feature] Add on account page the ability to filter posts by tag. #3383

Open rochacbruno opened 4 hours ago

rochacbruno commented 4 hours ago

Is your feature request related to a problem ?

When clicking on the linked tag on the front-end of an account page, the visitor is redirected to a "error like" page.

2024-10-03_18-49

Describe the solution you'd like.

Option 1: Add a new endpoint /@account/tag/text that will show the user profile but filtered by the specified tag. (path param looks good, but could also be query tag=text

When clicking on a tag link on the bio text 2024-10-03_18-44

Link to a specific tag filter 2024-10-03_18-48

This behavior can be extended to tags on posts, so tags would work without privacy problems as only the current user public posts would be filtered.

Describe alternatives you've considered.

Option 2: Disable links on tags, on profile bio and also on post list, in the account front end, so the visitor will not try to link on those.

Additional context.

I am learning Go, I wish I can contribute at some point.

tsmethurst commented 4 hours ago

Agreed, would be a good feature!