Merge pull request #6189 from MrPetovan/bug/5737-hide-ignore-anonymous
Fix ignore link showing for anonymous users
This commit is contained in:
commit
902ade9891
|
@ -270,6 +270,7 @@ class Post extends BaseObject
|
||||||
$tagger = '';
|
$tagger = '';
|
||||||
|
|
||||||
if ($this->isToplevel()) {
|
if ($this->isToplevel()) {
|
||||||
|
if(local_user()) {
|
||||||
$thread = Item::selectFirstThreadForUser(local_user(), ['ignored'], ['iid' => $item['id']]);
|
$thread = Item::selectFirstThreadForUser(local_user(), ['ignored'], ['iid' => $item['id']]);
|
||||||
if (DBA::isResult($thread)) {
|
if (DBA::isResult($thread)) {
|
||||||
$ignore = [
|
$ignore = [
|
||||||
|
@ -299,6 +300,7 @@ class Post extends BaseObject
|
||||||
'class' => "",
|
'class' => "",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$indent = 'comment';
|
$indent = 'comment';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue