Fix ignore link showing for anonymous users
This commit is contained in:
parent
540321d0aa
commit
03de5c018f
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user