Fix ignore link showing for anonymous users

This commit is contained in:
Hypolite Petovan 2018-11-23 01:25:38 -05:00
parent 540321d0aa
commit 03de5c018f

View File

@ -270,6 +270,7 @@ class Post extends BaseObject
$tagger = '';
if ($this->isToplevel()) {
if(local_user()) {
$thread = Item::selectFirstThreadForUser(local_user(), ['ignored'], ['iid' => $item['id']]);
if (DBA::isResult($thread)) {
$ignore = [
@ -299,6 +300,7 @@ class Post extends BaseObject
'class' => "",
];
}
}
} else {
$indent = 'comment';
}