]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Update/Community.php
Merge pull request #12029 from annando/warning
[friendica.git] / src / Module / Update / Community.php
index 0915cf7d4b096e3e6003985587fe8483be3213ee..0810cbed24733e3e03b87a6412a9d59c0ec735ed 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
  *
@@ -33,13 +33,13 @@ use Friendica\Module\Conversation\Community as CommunityModule;
  */
 class Community extends CommunityModule
 {
-       public static function rawContent(array $parameters = [])
+       protected function rawContent(array $request = [])
        {
-               self::parseRequest($parameters);
+               $this->parseRequest();
 
                $o = '';
                if (!empty($_GET['force']) || !DI::pConfig()->get(local_user(), 'system', 'no_auto_update')) {
-                       $o = conversation(DI::app(), self::getItems(), 'community', true, false, 'commented', local_user());
+                       $o = DI::conversation()->create(self::getItems(), 'community', true, false, 'commented', local_user());
                }
 
                System::htmlUpdateExit($o);