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
Contributor
  • 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

- 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
rompe added 1 commit 2025-08-01 15:38:02 +00:00
- 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
rompe added 1 commit 2025-08-01 15:52:21 +00:00
rompe added 1 commit 2025-08-06 16:00:09 +00:00
- 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.
pietervdvn approved these changes 2025-08-25 22:44:52 +00:00
pietervdvn added 1 commit 2025-08-25 22:45:00 +00:00
pietervdvn merged commit 3796364f79 into main 2025-08-25 22:45:07 +00:00
Owner

Great! Thanks for the cleanup!

Great! Thanks for the cleanup!
Sign in to join this conversation.
No description provided.