mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Issue 14212: exclude channel only posts from the API timeline
This commit is contained in:
parent
8c6ff3f876
commit
acb305cf73
4 changed files with 25 additions and 5 deletions
|
@ -66,6 +66,8 @@ class Home extends BaseApi
|
|||
$condition = DBA::mergeConditions($condition, ['gravity' => Item::GRAVITY_PARENT]);
|
||||
}
|
||||
|
||||
$condition = DBA::mergeConditions($condition, ["NOT EXISTS(SELECT `cid` FROM `user-contact` WHERE `uid` = ? AND `cid` IN (`parent-owner-id`, `parent-author-id`) AND (`blocked` OR `ignored` OR `channel-only`))", $uid]);
|
||||
|
||||
$items = Post::selectTimelineForUser($uid, ['uri-id'], $condition, $params);
|
||||
|
||||
$display_quotes = self::appSupportsQuotes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue