Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Support non-acct:account@domain URIs #3

Open
evanminto opened this issue May 13, 2017 · 3 comments
Open

Support non-acct:account@domain URIs #3

evanminto opened this issue May 13, 2017 · 3 comments

Comments

@evanminto
Copy link

As part of ActivityPub support for Mastodon, I need to be able to look users up by the URI of their ActivityStreams 2.0 representation (this isn't strictly necessary, but it's the best way to ensure backwards-compatibility as we move to AP). We should still use GoldFinger for this, but it seems like it only supports acct:account@domain-style URIs at the moment. It would be great if it could accept arbitrary URIs!

@Gargron
Copy link
Member

Gargron commented May 13, 2017

No, this library does not care what you pass into webfinger. https://github.com/tootsuite/mastodon/blob/master/app/services/follow_remote_account_service.rb#L24

@evanminto
Copy link
Author

Hm, maybe I misunderstood then, sorry! It seems like it relies on being able to split account and domain by @ in order to find the domain to search for .well-known, based on some of the code I was reading here: https://github.com/tootsuite/goldfinger/blob/master/lib/goldfinger/client.rb#L78

I was also getting errors when trying to pass non-account@domain URIs to Goldfinger from Mastodon's end, but again, it's possible I missed something.

@redtachyons
Copy link

Hi, @evanminto Can you please provide an example uri which fails in current implementation?

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

No branches or pull requests

3 participants