Fix code referencing wrong class (#12263)

For some reason, I have seen this only triggered here:
https://circleci.com/gh/tootsuite/mastodon/98324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-link

But Follow.find_by referenced the ActivityPub::Activity::Follow class
instead of the model class.
lolsob-rspec
ThibG 2019-11-04 13:02:27 +01:00 committed by Eugen Rochko
parent 572d9863ab
commit e1cc25c4d4
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class ActivityPub::Activity
end end
def follow_from_object def follow_from_object
@follow ||= Follow.find_by(target_account: @account, uri: object_uri) unless object_uri.nil? @follow ||= ::Follow.find_by(target_account: @account, uri: object_uri) unless object_uri.nil?
end end
def fetch_remote_original_status def fetch_remote_original_status