6
2
Forkuj 0
kopia lustrzana https://github.com/friendica/friendica zsynchronizowano 2025-09-01 21:11:11 +02:00

Add Mastodon/Pleroma protocol guessing

Ten commit jest zawarty w:
Hypolite Petovan 2018-10-17 01:10:07 -04:00
commit b5fb81f535

Wyświetl plik

@ -108,6 +108,13 @@ class Protocol
}
}
// Mastodon, Pleroma
if (preg_match('=https?://(.+?)/users/(.+)=ism', $profile_url, $matches)
|| preg_match('=https?://(.+?)/@(.+)=ism', $profile_url, $matches)
) {
return self::ACTIVITYPUB;
}
// pumpio (http://host.name/user)
if (preg_match('=https?://([\.\w]+)/([\.\w]+)$=ism', $profile_url, $matches)) {
return self::PUMPIO;