Improve translation show/hide logic
This commit is contained in:
parent
2085e732b6
commit
579a48ce5f
2 changed files with 1 additions and 5 deletions
|
@ -97,10 +97,6 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
ActivityPub::TagManager.instance.url_for(object)
|
||||
end
|
||||
|
||||
def language
|
||||
object.language || (current_user? && current_user.locale)
|
||||
end
|
||||
|
||||
def status_reference_ids
|
||||
@status_reference_ids = object.reference_objects.pluck(:target_status_id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue