From: Michael Date: Wed, 25 Mar 2020 17:25:23 +0000 (+0000) Subject: Socialhome added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e9d793d74a1b654ef08915e2396d52317c51e74;p=friendica.git Socialhome added --- diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 08a4c7bddb..734c1c3c62 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1616,13 +1616,8 @@ class Diaspora $platform = strtolower($gserver['platform']); Logger::info('Detected platform', ['platform' => $platform, 'url' => $contact['url']]); } - if ($platform == 'socialhome') { - // Socialhome doesn't offer an item endpoint that we could use - Logger::info('Ignoring Socialhome', ['platform' => $platform, 'url' => $contact['url']]); - return ''; - } - if (!in_array($platform, ['diaspora', 'friendica', 'hubzilla'])) { + if (!in_array($platform, ['diaspora', 'friendica', 'hubzilla', 'socialhome'])) { if (self::isHubzilla($contact['url'])) { Logger::info('Detected unknown platform as Hubzilla', ['platform' => $platform, 'url' => $contact['url']]); $platform = 'hubzilla'; @@ -1640,6 +1635,11 @@ class Diaspora return $contact['baseurl'] . '/item/' . $guid; } + if ($platform == 'socialhome') { + // This doesn't really seem to work on Socialhome + return $contact['baseurl'] . '/content/' . $guid; + } + if ($platform != 'diaspora') { Logger::info('Unknown platform', ['platform' => $platform, 'url' => $contact['url']]); return '';