https://github.com/redl0tus/fedirect
Fediverse + redirect = Fedirect
https://github.com/redl0tus/fedirect
fediverse
Last synced: about 1 month ago
JSON representation
Fediverse + redirect = Fedirect
- Host: GitHub
- URL: https://github.com/redl0tus/fedirect
- Owner: RedL0tus
- License: gpl-3.0
- Created: 2018-05-30T01:50:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T06:09:06.000Z (about 6 years ago)
- Last Synced: 2024-04-13T12:57:53.912Z (about 1 year ago)
- Topics: fediverse
- Language: Python
- Homepage: https://brined.fish/link/[email protected]
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fedirect
==========Fediverse + redirect = Fedirect
Find user page by username.
e.g. https://brined.fish/link/[email protected] will 302 redirect to https://s.brined.fish/@KayMW
Tested platform:
- Mastodon
- GNU Social
- MisskeySpecial thanks to [[email protected]](https://brined.fish/link/[email protected])( @biergaizi ) for naming the repo.
Deploy
------Clone the reposistory, install the dependencies, and run `main.py`.
Don't forget to use a web server to reverse proxy it.How does it work
----------------1. Split username into two parts (username and host).
2. Fetch and parse host's `.well-known/host-meta`, get the link to host's webfinger.
3. Fetch user's page by accessing webfinger.