Skip to content

Conversation

@LawnGnome
Copy link

This adds a link when the "open" option is selected for a status that matches the "open original page" overflow menu item for a status in the Mastodon web UI.

This adds a link when the "open" option is selected for a status that
matches the "open original page" overflow menu item for a status in the
Mastodon web UI.
@immae
Copy link

immae commented Aug 12, 2024

Suggestion: Same for users

diff --git a/api/item.go b/api/item.go
index 7e31720..d26669f 100644
--- a/api/item.go
+++ b/api/item.go
@@ -78,6 +78,12 @@ func getUrlsUser(user *mastodon.Account) ([]util.URL, []mastodon.Mention, []mast
                urls = append(urls, fu...)
        }
 
+       urls = append(urls, util.URL{
+               Text: user.URL +  " (user page)",
+               URL: user.URL,
+               Classes: []string{},
+       })
+
        return urls, []mastodon.Mention{}, []mastodon.Tag{}, len(urls)
 }

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.

2 participants