]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Merge branch 'friendica:2023.09-rc' into Leftovers-from-PR-#13339
[friendica.git] / mod / notes.php
index 39649d81f64a80bd025ade8f8d05d044f15861a6..554429d0ec56655b2e59dfda2912455f18c4ac80 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -20,6 +20,7 @@
  */
 
 use Friendica\App;
+use Friendica\Content\Conversation;
 use Friendica\Content\Nav;
 use Friendica\Content\Pager;
 use Friendica\Database\DBA;
@@ -45,7 +46,7 @@ function notes_content(App $a, bool $update = false)
                return;
        }
 
-       $o = BaseProfile::getTabsHTML($a, 'notes', true, $a->getLoggedInUserNickname(), false);
+       $o = BaseProfile::getTabsHTML('notes', true, $a->getLoggedInUserNickname(), false);
 
        if (!$update) {
                $o .= '<h3>' . DI::l10n()->t('Personal Notes') . '</h3>';
@@ -84,7 +85,7 @@ function notes_content(App $a, bool $update = false)
 
                $count = count($notes);
 
-               $o .= DI::conversation()->create($notes, 'notes', $update);
+               $o .= DI::conversation()->render($notes, Conversation::MODE_NOTES, $update);
        }
 
        $o .= $pager->renderMinimal($count);