mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Change API behavior of reblogs wrt. quotes for consistency (#36559)
This commit is contained in:
parent
3bf99b8a4a
commit
4b42fe6aba
4 changed files with 28 additions and 4 deletions
|
|
@ -168,9 +168,9 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
|
||||
def quote_approval
|
||||
{
|
||||
automatic: object.quote_policy_as_keys(:automatic),
|
||||
manual: object.quote_policy_as_keys(:manual),
|
||||
current_user: object.quote_policy_for_account(current_user&.account),
|
||||
automatic: object.proper.quote_policy_as_keys(:automatic),
|
||||
manual: object.proper.quote_policy_as_keys(:manual),
|
||||
current_user: object.proper.quote_policy_for_account(current_user&.account),
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue