]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Nodeinfo.php
Posts per author/server on the community pages (#13764)
[friendica.git] / src / Model / Nodeinfo.php
index 07f56dd7bb83970464a0f9f738f242e57722cd1a..825afb4a9a9f14fa0118cfca340471ee733f676d 100644 (file)
@@ -67,7 +67,7 @@ class Nodeinfo
                DI::keyValue()->set('nodeinfo_local_posts', $posts);
                DI::keyValue()->set('nodeinfo_local_comments', $comments);
 
-               $logger->info('User actitivy', ['posts' => $posts, 'comments' => $comments]);
+               $logger->info('User activity', ['posts' => $posts, 'comments' => $comments]);
        }
 
        /**
@@ -109,8 +109,9 @@ class Nodeinfo
                        'outbound' => [],
                ];
 
-               if (Addon::isEnabled('blogger')) {
-                       $services['outbound'][] = 'blogger';
+               if (Addon::isEnabled('bluesky')) {
+                       $services['inbound'][] = 'bluesky';
+                       $services['outbound'][] = 'bluesky';
                }
                if (Addon::isEnabled('dwpost')) {
                        $services['outbound'][] = 'dreamwidth';
@@ -125,18 +126,9 @@ class Nodeinfo
                if (Addon::isEnabled('libertree')) {
                        $services['outbound'][] = 'libertree';
                }
-               if (Addon::isEnabled('buffer')) {
-                       $services['outbound'][] = 'linkedin';
-               }
                if (Addon::isEnabled('ljpost')) {
                        $services['outbound'][] = 'livejournal';
                }
-               if (Addon::isEnabled('buffer')) {
-                       $services['outbound'][] = 'pinterest';
-               }
-               if (Addon::isEnabled('posterous')) {
-                       $services['outbound'][] = 'posterous';
-               }
                if (Addon::isEnabled('pumpio')) {
                        $services['inbound'][] = 'pumpio';
                        $services['outbound'][] = 'pumpio';
@@ -147,7 +139,7 @@ class Nodeinfo
                if (Addon::isEnabled('tumblr')) {
                        $services['outbound'][] = 'tumblr';
                }
-               if (Addon::isEnabled('twitter') || Addon::isEnabled('buffer')) {
+               if (Addon::isEnabled('twitter')) {
                        $services['outbound'][] = 'twitter';
                }
                if (Addon::isEnabled('wppost')) {
@@ -171,7 +163,7 @@ class Nodeinfo
                return [
                        'name'    => $administrator['username'] ?? null,
                        'contact' => $administrator['email']    ?? null,
-                       'account' => $administrator['nickname'] ?? '' ? DI::baseUrl()->get() . '/profile/' . $administrator['nickname'] : null,
+                       'account' => $administrator['nickname'] ?? '' ? DI::baseUrl() . '/profile/' . $administrator['nickname'] : null,
                ];
        }
 }