]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Diaspora/Fetch.php
Merge remote-tracking branch 'upstream/2021.12-rc' into lemmy
[friendica.git] / src / Module / Diaspora / Fetch.php
index 55eeea9b5534f8b2e482919db40b8c834b09817b..97cbb5878f65ed30628505fa6fbdc496e2cc448e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -38,13 +38,13 @@ use Friendica\Util\Strings;
  */
 class Fetch extends BaseModule
 {
-       public static function rawContent(array $parameters = [])
+       protected function rawContent(array $request = [])
        {
-               if (empty($parameters['guid'])) {
+               if (empty($this->parameters['guid'])) {
                        throw new HTTPException\NotFoundException();
                }
 
-               $guid = $parameters['guid'];
+               $guid = $this->parameters['guid'];
 
                // Fetch the item
                $condition = ['origin' => true, 'private' => [Item::PUBLIC, Item::UNLISTED], 'guid' => $guid,