Merge pull request #6189 from MrPetovan/bug/5737-hide-ignore-anonymous

Fix ignore link showing for anonymous users
This commit is contained in:
Tobias Diekershoff 2018-11-23 10:01:56 +01:00 committed by GitHub
commit 902ade9891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 25 deletions

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';
}