fedifinder icon indicating copy to clipboard operation
fedifinder copied to clipboard

some Follow buttons do not work

Open CaptSolo opened this issue 2 years ago • 3 comments

Follow buttons for some of Mastodon servers (e.g. https://mastodon.ie or https://toot.lv) do not work.

These follow button links contain text "[object Object]" instead of the actual Mastodon URI to follow – like in this URL: https://toot.lv/authorize_interaction?uri=https://[object%20Object]/@donncha

Screenshot: image

CaptSolo avatar Dec 20 '22 20:12 CaptSolo

Update:

It seems that the appearance of the domain name [object%20Object] in Follow buttons is not entirely based on the name of the Mastodon server - some users from a server may have a correct URL while other users from the same server have broken URLs.

CaptSolo avatar Dec 23 '22 18:12 CaptSolo

To me, it looks like this only happens if the account to be followed is on the same instance as the one to be followed from (one self).

sur5r avatar Jan 22 '23 21:01 sur5r

To me, it looks like this only happens if the account to be followed is on the same instance as the one to be followed from (one self).

For me the problem appears for accounts from at least 7 different instances.

Also, quite often only a part of accounts from any given server will have this issue (e.g. the start of the account list is fine but the rest have broken links).

P.S. Here is an experimental workaround I wrote that processes a saved Fedifinder HTML file and fixes these issues: https://gist.github.com/CaptSolo/54bea0df4599882b40814e2635c931e3

CaptSolo avatar Jan 22 '23 21:01 CaptSolo