Remove instance variables from helper usage (#24203)
This commit is contained in:
parent
e1b4eeb636
commit
0a5f0a8b20
19 changed files with 53 additions and 45 deletions
|
@ -22,7 +22,7 @@ class ActivityPub::Activity::Update < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def update_status
|
||||
return reject_payload! if invalid_origin?(object_uri)
|
||||
return reject_payload! if non_matching_uri_hosts?(@account.uri, object_uri)
|
||||
|
||||
@status = Status.find_by(uri: object_uri, account_id: @account.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue