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

Extention press not working - no redirect #3

Open
bashfulrobot opened this issue Nov 24, 2022 · 6 comments
Open

Extention press not working - no redirect #3

bashfulrobot opened this issue Nov 24, 2022 · 6 comments

Comments

@bashfulrobot
Copy link

Hi there, I just installed the most recent chrome extension, set my instance URL, and went to test, but nothing happens when I press the extension button. I recorded my screen to show the steps.

no-redirect.mp4

Ideas?

@bramus
Copy link
Owner

bramus commented Nov 24, 2022

I think this is a hachyderm.io configuration issue.

When configuring the extension to the values as you’ve shown in the video, I see that the extension correctly tries to go to https://hachyderm.io/@libreoffice@fosstodon.org. However, that URL then simply redirects back to https://fosstodon.org/@libreoffice again, so you end up back where you started.

@bramus
Copy link
Owner

bramus commented Nov 24, 2022

Just encountered this myself: it happens when you’re not logged in to the other server. For example, visiting https://mastodon.social/@bramus@front-end.social in an incognito window will automatically redirect you to https://front-end.social/@bramus

@bashfulrobot
Copy link
Author

Do you have any suggestions on what I should ask the admins to check? I am not familiar with Mastodon config from a server POV.

@nanos
Copy link

nanos commented Nov 25, 2022

I've been playing around with this extension yesterday, and noticed the same. I have just filed the PR above, which attempts to extract the username from the current URL, rather than from the page URL, which appears to be more reliable.

@bramus let me know what you think.

I believe the current version of extracting the username from the HTML fails, when the user you are looking at is actually a remote user. I.e. when you are on hachyderm.io/@foo@example.net it will fail, while hachyderm.io/@foo will will. Additionally it also fails on some instances when you are already logged in on that instance (maybe because you have accounts at two instances).

@bramus
Copy link
Owner

bramus commented Sep 7, 2023

I rewrote some of the username detection logic in 0.3.0 and now just released 0.4.0. Does the problem still occur in those versions?

(Note that the Chrome Web Store hasn’t published the update at the time of posting this)

@tvler
Copy link

tvler commented Oct 6, 2023

I think this is a hachyderm.io configuration issue.

When configuring the extension to the values as you’ve shown in the video, I see that the extension correctly tries to go to https://hachyderm.io/@libreoffice@fosstodon.org. However, that URL then simply redirects back to https://fosstodon.org/@libreoffice again, so you end up back where you started.

Hello! I was also dealing with this for tvler/streetpass#4 and found this issue while searching around. I reached out in the mastodon discord and apparently this is fixed in 4.2.1! mastodon/mastodon#27272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants