]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Post/Share.php
Changes:
[friendica.git] / src / Module / Post / Share.php
index db95c38c947215d2e7d36e21df88d8099a404a28..5ecf6508302c490b6c609f23b7176708bfa64027 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -57,12 +57,12 @@ class Share extends \Friendica\BaseModule
        {
                $post_id = $this->parameters['post_id'];
                if (!$post_id || !$this->session->getLocalUserId()) {
-                       System::httpError(403);
+                       $this->httpError(403);
                }
 
                $item = Post::selectFirst(['private', 'body', 'uri', 'plink', 'network'], ['id' => $post_id]);
                if (!$item || $item['private'] == Item::PRIVATE) {
-                       System::httpError(404);
+                       $this->httpError(404);
                }
 
                $shared = $this->contentItem->getSharedPost($item, ['uri']);
@@ -74,6 +74,6 @@ class Share extends \Friendica\BaseModule
                        $content = '[share]' . $item['uri'] . '[/share]';
                }
 
-               System::httpExit($content);
+               $this->httpExit($content);
        }
 }