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:
rodzic
ff643c4b6a
commit
b5fb81f535
1 zmienionych plików z 7 dodań i 0 usunięć
|
@ -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;
|
||||
|
|
Ładowanie…
Dodaj tabelę
Add a link
Odniesienie w nowym zgłoszeniu