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

Allow the original page of a status to be opened #275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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