Merge pull request #6765 from nupplaphil/issue/6672-global_comm_silence
Hide silenced authors from public timeline
This commit is contained in:
commit
7684eae0c0
1 changed files with 2 additions and 2 deletions
|
@ -1738,7 +1738,7 @@ function api_statuses_public_timeline($type)
|
||||||
$start = $page * $count;
|
$start = $page * $count;
|
||||||
|
|
||||||
if ($exclude_replies && !$conversation_id) {
|
if ($exclude_replies && !$conversation_id) {
|
||||||
$condition = ["`gravity` IN (?, ?) AND `iid` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall`",
|
$condition = ["`gravity` IN (?, ?) AND `iid` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall` AND NOT `author`.`hidden`",
|
||||||
GRAVITY_PARENT, GRAVITY_COMMENT, $since_id];
|
GRAVITY_PARENT, GRAVITY_COMMENT, $since_id];
|
||||||
|
|
||||||
if ($max_id > 0) {
|
if ($max_id > 0) {
|
||||||
|
@ -1751,7 +1751,7 @@ function api_statuses_public_timeline($type)
|
||||||
|
|
||||||
$r = Item::inArray($statuses);
|
$r = Item::inArray($statuses);
|
||||||
} else {
|
} else {
|
||||||
$condition = ["`gravity` IN (?, ?) AND `id` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall` AND `item`.`origin`",
|
$condition = ["`gravity` IN (?, ?) AND `id` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall` AND `item`.`origin` AND NOT `author`.`hidden`",
|
||||||
GRAVITY_PARENT, GRAVITY_COMMENT, $since_id];
|
GRAVITY_PARENT, GRAVITY_COMMENT, $since_id];
|
||||||
|
|
||||||
if ($max_id > 0) {
|
if ($max_id > 0) {
|
||||||
|
|
Loading…
Reference in a new issue