feat/fedi-redirect #5682

Merged
tobiasd merged 7 commits from feat/fedi-redirect into master 2026-03-08 10:59:34 +00:00
Member

So, this is a basic attempt at implementing the fedi redirects as described on the webpage.

Things I do not understand:

  • In what format should we expect the address request to come?
  • how one should determine the "location" param to be set in the header?
  • What actually are the .well-known locations we need to redirect to the script?

Note that the php script is completely untested and almost certainly broken: this is a very rough POC

So, this is a basic attempt at implementing the fedi redirects as described on the webpage. Things I do not understand: - In what format should we expect the address request to come? - how one should determine the "location" param to be set in the header? - What actually are the `.well-known` locations we need to redirect to the script? Note that the php script is completely untested and almost certainly broken: this is a very rough POC
delliott requested review from tobiasd 2026-02-09 17:52:06 +00:00
Member

I am unsure whether this is widely supported among Fediverse-enabled software, but Mastodon(-like), Akkoma(-like), and Misskey(-like) software return a profile page in their Webfinger (e.g. see the http://webfinger.net/rel/profile-page field at https://hachyderm.io/.well-known/webfinger?resource=acct:sofiaritz@hachyderm.io). While not strictly necessary and somewhat complex, it would remove the need to manually add the profile page URL in the XML file.

Another thing that would be worth exploring is creating a Webfinger endpoint at fsfe.org, which would allow people to find our profiles by typing @<fsfe_username>@fsfe.org in their Fediverse software without needing to self-host any Fediverse-enabled software ourselves (e.g. try looking up @me@sofiaritz.com, it should resolve to @sofiaritz@hachyderm.io)

I am unsure whether this is widely supported among Fediverse-enabled software, but Mastodon(-like), Akkoma(-like), and Misskey(-like) software return a profile page in their Webfinger (e.g. see the `http://webfinger.net/rel/profile-page` field at https://hachyderm.io/.well-known/webfinger?resource=acct:sofiaritz@hachyderm.io). While not strictly necessary and somewhat complex, it would remove the need to manually add the profile page URL in the XML file. Another thing that would be worth exploring is creating a Webfinger endpoint at fsfe.org, which would allow people to find our profiles by typing `@<fsfe_username>@fsfe.org` in their Fediverse software without needing to self-host any Fediverse-enabled software ourselves (e.g. try looking up `@me@sofiaritz.com`, it should resolve to `@sofiaritz@hachyderm.io`)
delliott force-pushed feat/fedi-redirect from 9dd9ee8ddf to ec5809a73f 2026-02-18 12:25:02 +00:00 Compare
Author
Member

The goal of this pr is to implement such a webfinger script.

The goal of this pr is to implement such a webfinger script.
delliott force-pushed feat/fedi-redirect from ec5809a73f to ddf48d7312 2026-02-26 12:57:44 +00:00 Compare
delliott force-pushed feat/fedi-redirect from ddf48d7312 to 05c3d2e54d 2026-02-26 13:06:57 +00:00 Compare
delliott force-pushed feat/fedi-redirect from 05c3d2e54d to 7972340e84 2026-02-26 13:15:24 +00:00 Compare
delliott force-pushed feat/fedi-redirect from 7972340e84 to 4da41ca40f 2026-02-26 14:30:07 +00:00 Compare
Member

(sorry, i misread the impl 😅)

(sorry, i misread the impl 😅)
delliott marked the pull request as ready for review 2026-02-27 10:13:14 +00:00
Author
Member

So, things are now fixed up and some basic testing on test.fsfe.org seems to have this working.

I think this is good to merge?

So, things are now fixed up and some basic testing on `test.fsfe.org` seems to have this working. I think this is good to merge?
Owner

I will check something in the webfinger specs over the weekend and will come back with the results then next week.

I will check something in the webfinger specs over the weekend and will come back with the results then next week.
delliott force-pushed feat/fedi-redirect from 667cf42750 to dec3eb9906 2026-03-06 13:54:23 +00:00 Compare
delliott force-pushed feat/fedi-redirect from dec3eb9906 to 8ff21c49c1 2026-03-06 14:31:37 +00:00 Compare
tobiasd merged commit e23d967a44 into master 2026-03-08 10:59:34 +00:00
tobiasd referenced this issue from a commit 2026-03-08 10:59:36 +00:00
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#5682