]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #10782 from annando/display-uid
[friendica.git] / view / theme / frio / theme.php
index 446aa6acdc88dd4efd7aadf1cf4f3fb98b1744dd..3d4a993e45bc45111dd600e3692fb94126f9be44 100644 (file)
@@ -202,7 +202,7 @@ function frio_remote_nav(App $a, array &$nav_info)
        // this isn't optimal because the contact query will be done now twice
        $fields = ['id', 'url', 'avatar', 'micro', 'name', 'nick', 'baseurl', 'updated'];
        if ($a->isLoggedIn()) {
-               $remoteUser = Contact::selectFirst($fields, ['uid' => $a->getUserId(), 'self' => true]);
+               $remoteUser = Contact::selectFirst($fields, ['uid' => $a->getLoggedInUserId(), 'self' => true]);
        } elseif (!local_user() && remote_user()) {
                $remoteUser = Contact::getById(remote_user(), $fields);
                $nav_info['nav']['remote'] = DI::l10n()->t('Guest');
@@ -313,7 +313,7 @@ function frio_display_item(App $a, &$arr)
        $followThread = [];
        if (
                local_user()
-               && local_user() == $arr['item']['uid']
+               && in_array($arr['item']['uid'], [0, local_user()])
                && $arr['item']['gravity'] == GRAVITY_PARENT
                && !$arr['item']['self']
                && !$arr['item']['mention']