]> git.mxchange.org Git - friendica.git/commitdiff
Socialhome added
authorMichael <heluecht@pirati.ca>
Wed, 25 Mar 2020 17:25:23 +0000 (17:25 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 25 Mar 2020 17:25:23 +0000 (17:25 +0000)
src/Protocol/Diaspora.php

index 08a4c7bddbe5b71b8ee6ddbc18b9606c09562240..734c1c3c628a0779092eaaec507c2d75ca50fd27 100644 (file)
@@ -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 '';