about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormayaeh <mayaeh@marimo-net.org>2019-09-17 17:06:43 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-09-17 10:06:43 +0200
commit0e5b9e3ba0ddc8061ad57f71924fdbfb981f42a0 (patch)
treed4ab6b620ed24cf8bb86e95342dc753c45ee4e6a /app/models
parent38dc51b2d68e3e03f429419f7318e868fa24c49d (diff)
Fix the sample account icon of Profile directory to local only (#11872)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/tag.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb
index 4e77c404d..b52b9bc9f 100644
--- a/app/models/tag.rb
+++ b/app/models/tag.rb
@@ -20,7 +20,7 @@
 class Tag < ApplicationRecord
   has_and_belongs_to_many :statuses
   has_and_belongs_to_many :accounts
-  has_and_belongs_to_many :sample_accounts, -> { searchable.discoverable.popular.limit(3) }, class_name: 'Account'
+  has_and_belongs_to_many :sample_accounts, -> { local.discoverable.popular.limit(3) }, class_name: 'Account'
 
   has_many :featured_tags, dependent: :destroy, inverse_of: :tag
   has_one :account_tag_stat, dependent: :destroy