]> cat aescling's git repositories - mastodon.git/commitdiff
Fix NameError on ActivityPub::FetchFeaturedCollectionService (#17326)
authorJeong Arm <kjwonmail@gmail.com>
Wed, 19 Jan 2022 03:08:46 +0000 (12:08 +0900)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 03:08:46 +0000 (04:08 +0100)
Related: #16954

app/services/activitypub/fetch_featured_collection_service.rb

index 9fce478c14b5cadc27f76788acbcf3bfe5472dfc..780741feb3afbba5e76992338dc5af1b9d092b5c 100644 (file)
@@ -48,6 +48,6 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
   end
 
   def local_follower
-    @local_follower ||= account.followers.local.without_suspended.first
+    @local_follower ||= @account.followers.local.without_suspended.first
   end
 end