Change public timelines to be filtered by current locale by default (#19291)
In the absence of an opt-in to multiple specific languages in the preferences, it makes more sense to filter by the user's presumed language only (interface language or `lang` override)
This commit is contained in:
parent
d2528b26b6
commit
9f65909f42
6 changed files with 16 additions and 18 deletions
|
@ -35,6 +35,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController
|
|||
def public_feed
|
||||
PublicFeed.new(
|
||||
current_account,
|
||||
locale: content_locale,
|
||||
local: truthy_param?(:local),
|
||||
remote: truthy_param?(:remote),
|
||||
only_media: truthy_param?(:only_media)
|
||||
|
|
|
@ -36,6 +36,7 @@ class Api::V1::Timelines::TagController < Api::BaseController
|
|||
TagFeed.new(
|
||||
@tag,
|
||||
current_account,
|
||||
locale: content_locale,
|
||||
any: params[:any],
|
||||
all: params[:all],
|
||||
none: params[:none],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue