mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix potential duplicate handling of quote accept/reject/delete (#37537)
This commit is contained in:
parent
ba0609bbaf
commit
6698901d57
3 changed files with 4 additions and 4 deletions
|
|
@ -51,9 +51,9 @@ class Quote < ApplicationRecord
|
|||
|
||||
def reject!
|
||||
if accepted?
|
||||
update!(state: :revoked)
|
||||
update!(state: :revoked, approval_uri: nil)
|
||||
elsif !revoked?
|
||||
update!(state: :rejected)
|
||||
update!(state: :rejected, approval_uri: nil)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue