gabipurcaru / followgraph

MIT License
207 stars 22 forks source link

Hyperlink structure is broken for mastodon.social profiles #2

Closed drew3000 closed 1 year ago

drew3000 commented 1 year ago

When generating a list of accounts, the "follow" buttons don't just follow an account ,but open up a new browser tab with a hyperlink back to that Mastodon user's profile page.... or it should, but the structure is broken.

Example of what should happen: https://mastodon.social/@aiefel Example of what does happen: https://mastodon.social/@aiefel@mastodon.social

drew3000 commented 1 year ago

I'll amend this. Many links seem to be working with this structure if they are not mastodon.social profiles. But those ones do not work.

kittylyst commented 1 year ago

Is it specifically mastodon.social accounts that are broken, or is it that the discovered URLs are wrong for people on the same instance as you?

E.g. if I am a mastodon.social user, I see broken hyperlinks for discovered people who are also on mastodon.social

What happens if the user is a mas.to user when they discover people who are also on mas.to?

JcMinarro commented 1 year ago

The problem is that the link to the users on your own instance shouldn't have the @INSTANCE_NAME suffix on the link. Let's say you are on instance myInstance.social, your handler name is @myUser@myInstacne.social and you have the following suggestions: @someNick@myInstance.social, @otherNick@otherInstance.social, then, the "follow link" should be: https://myInstance.social/@someNick and https://myInstance.social/@otherNick@otherInstance.social

Let me try to fix it

gabipurcaru commented 1 year ago

should be fixed now, thanks to @JcMinarro; feel free to reopen if you still have this issue