diff options
author | Reverite <github@reverite.sh> | 2019-10-28 15:15:33 -0400 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-10-28 15:15:33 -0400 |
commit | 1150110d50d9060fc325825c6770e7ef773ebcff (patch) | |
tree | 816e549592c184ffe6f545e7def2f785517be0c0 /app/lib/activitypub/activity.rb | |
parent | 205debc43d841afaa1b2ed7dfd05a6d1b6d9d5e0 (diff) | |
parent | 00793a86bc52e4cb37318e42ea4ceb37a896c727 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/lib/activitypub/activity.rb')
-rw-r--r-- | app/lib/activitypub/activity.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index a4a9baaee..5cd48a6ae 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -153,6 +153,14 @@ class ActivityPub::Activity fetch_remote_original_status end + def follow_request_from_object + @follow_request ||= FollowRequest.find_by(target_account: @account, uri: object_uri) unless object_uri.nil? + end + + def follow_from_object + @follow ||= Follow.find_by(target_account: @account, uri: object_uri) unless object_uri.nil? + end + def fetch_remote_original_status if object_uri.start_with?('http') return if ActivityPub::TagManager.instance.local_uri?(object_uri) |