Update include/conversation.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-09-09 20:03:14 +02:00 committed by GitHub
parent d64c910f69
commit 5c3cc76acf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,13 +742,14 @@ function conversation_fetch_comments($thread_items, $pinned) {
}
if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id'])) {
if (!Contact::isSharing($row['author-id'], $row['uid'])) {
if (Contact::isSharing($row['author-id'], $row['uid'])) {
$row['direction'] = ['direction' => 6, 'title' => DI::l10n()->t('You are following %s.', $row['author-name'])];
} else {
if ($row['post-type'] == Item::PT_TAG) {
$row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
}
$parentlines[] = $lineno;
} else {
$row['direction'] = ['direction' => 6, 'title' => DI::l10n()->t('You are following %s.', $row['author-name'])];
}
}