Skip to content

Commit e37358b

Browse files
ClearlyClaireGargron
authored andcommitted
Fix code referencing wrong class (mastodon#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.
1 parent 3db3c10 commit e37358b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/activitypub/activity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def follow_request_from_object
158158
end
159159

160160
def follow_from_object
161-
@follow ||= Follow.find_by(target_account: @account, uri: object_uri) unless object_uri.nil?
161+
@follow ||= ::Follow.find_by(target_account: @account, uri: object_uri) unless object_uri.nil?
162162
end
163163

164164
def fetch_remote_original_status

0 commit comments

Comments
 (0)