]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
More replaced "q" calls
[friendica.git] / mod / notes.php
index 945d0c935d325c00cf664b482a46fd0855144793..5996c140f19e52bdacb92940b8f2323c4097c360 100644 (file)
@@ -45,26 +45,19 @@ function notes_content(App $a, $update = false)
                return;
        }
 
-       $o = BaseProfile::getTabsHTML($a, 'notes', true, $a->user);
+       $o = BaseProfile::getTabsHTML($a, 'notes', true, $a->getLoggedInUserNickname(), false);
 
        if (!$update) {
                $o .= '<h3>' . DI::l10n()->t('Personal Notes') . '</h3>';
 
                $x = [
-                       'is_owner' => true,
-                       'allow_location' => (($a->user['allow_location']) ? true : false),
-                       'default_location' => $a->user['default-location'],
-                       'nickname' => $a->user['nickname'],
                        'lockstate' => 'lock',
                        'acl' => \Friendica\Core\ACL::getSelfOnlyHTML(local_user(), DI::l10n()->t('Personal notes are visible only by yourself.')),
-                       'bang' => '',
-                       'visitor' => 'block',
-                       'profile_uid' => local_user(),
                        'button' => DI::l10n()->t('Save'),
                        'acl_data' => '',
                ];
 
-               $o .= status_editor($a, $x, $a->getContactId());
+               $o .= DI::conversation()->statusEditor($x, $a->getContactId());
        }
 
        $condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
@@ -91,7 +84,7 @@ function notes_content(App $a, $update = false)
 
                $count = count($notes);
 
-               $o .= conversation($a, $notes, 'notes', $update);
+               $o .= DI::conversation()->create($notes, 'notes', $update);
        }
 
        $o .= $pager->renderMinimal($count);