Merge branch 'fix/blocks-mutes-for-group-feeds' into 'develop'
use feed manager to filter posts in group feeds See merge request gab/social/gab-social!35
This commit is contained in:
commit
9f43f74be3
@ -38,7 +38,7 @@ class Api::V1::Timelines::GroupController < Api::BaseController
|
|||||||
statuses = group_timeline_statuses.without_replies.paginate_by_id(
|
statuses = group_timeline_statuses.without_replies.paginate_by_id(
|
||||||
limit_param(DEFAULT_STATUSES_LIMIT),
|
limit_param(DEFAULT_STATUSES_LIMIT),
|
||||||
params_slice(:max_id, :since_id, :min_id)
|
params_slice(:max_id, :since_id, :min_id)
|
||||||
)
|
).reject { |status| FeedManager.instance.filter?(:home, status, current_account.id) }
|
||||||
|
|
||||||
if truthy_param?(:only_media)
|
if truthy_param?(:only_media)
|
||||||
# `SELECT DISTINCT id, updated_at` is too slow, so pluck ids at first, and then select id, updated_at with ids.
|
# `SELECT DISTINCT id, updated_at` is too slow, so pluck ids at first, and then select id, updated_at with ids.
|
||||||
|
Loading…
Reference in New Issue
Block a user