浏览代码

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.
master^2
ThibG 4 年前
committed by Eugen Rochko
父节点
当前提交
e37358b3bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/lib/activitypub/activity.rb

+ 1
- 1
app/lib/activitypub/activity.rb 查看文件

@@ -158,7 +158,7 @@ class ActivityPub::Activity
end

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

def fetch_remote_original_status


正在加载...
取消
保存