]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Merge remote-tracking branch 'upstream/2021.12-rc' into remove-obsolete
[friendica.git] / mod / poco.php
index f084361dc4f731368cf6a66df2c498375eb42cf9..651b9938b9dde0a077ca3bf93078fc417628ecb7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -35,7 +35,7 @@ function poco_init(App $a) {
                throw new \Friendica\Network\HTTPException\ForbiddenException();
        }
 
-       if ($a->argc > 1) {
+       if (DI::args()->getArgc() > 1) {
                // Only the system mode is supported 
                throw new \Friendica\Network\HTTPException\NotFoundException();
        }
@@ -123,7 +123,7 @@ function poco_init(App $a) {
                        }
                        $about = DI::cache()->get("about:" . $contact['updated'] . ":" . $contact['nurl']);
                        if (is_null($about)) {
-                               $about = BBCode::convert($contact['about'], false);
+                               $about = BBCode::convertForUriId($contact['uri-id'], $contact['about']);
                                DI::cache()->set("about:" . $contact['updated'] . ":" . $contact['nurl'], $about);
                        }