mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Mark posts that arrived in your network stream via tag
This commit is contained in:
parent
1493875ec9
commit
6139f5883b
3 changed files with 19 additions and 4 deletions
|
@ -728,6 +728,10 @@ function conversation_fetch_comments($thread_items, $pinned) {
|
|||
|
||||
if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id'])
|
||||
&& !Contact::isSharing($row['author-id'], $row['uid'])) {
|
||||
if ($row['post-type'] == Item::PT_TAG) {
|
||||
$row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
|
||||
}
|
||||
|
||||
$parentlines[] = $lineno;
|
||||
}
|
||||
|
||||
|
@ -810,7 +814,7 @@ function conversation_fetch_items(array $parent, array $items, array $condition,
|
|||
$condition[0] .= " AND NOT `author`.`hidden`";
|
||||
}
|
||||
|
||||
$thread_items = Item::selectForUser(local_user(), array_merge(Item::DISPLAY_FIELDLIST, ['contact-uid', 'gravity']), $condition, $params);
|
||||
$thread_items = Item::selectForUser(local_user(), array_merge(Item::DISPLAY_FIELDLIST, ['contact-uid', 'gravity', 'post-type']), $condition, $params);
|
||||
|
||||
$comments = conversation_fetch_comments($thread_items, $parent['pinned'] ?? false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue