Improve Mastodon profile link detection #11

Merged
pietervdvn merged 4 commits from rompe/MastodonBot:10-improve_mastodon_profile_link_detection into main 2025-08-25 22:45:07 +00:00

4 commits

Author SHA1 Message Date
0b8cda3fd0 Merge branch 'main' into 10-improve_mastodon_profile_link_detection 2025-08-25 22:44:57 +00:00
Ulf Rompe
057a2d2f84 Detect Pleroma and Pixelfed profile links
- Re-introduce the server blacklist unchanged
- Incorporate it into the Fediverse profile regex

These two platforms sadly have a non-unique URL scheme,
so it may be better to keep the blacklist in place to filter out
all the github and codeberg URLs.
2025-08-06 17:59:35 +02:00
Ulf Rompe
0ed685baa0 Add hector to test.ts as he has good test links 2025-08-01 17:52:13 +02:00
Ulf Rompe
5e118fdbd0 Improve Mastodon profile link detection
- Use a regular expression instead of substrings
- Detect profile URL schema for Mastodon, Akkoma, Friendica and others
- Add more uids to `test.ts` to provide some examples

Fixes #10
2025-08-01 17:33:22 +02:00