Skip to content

Commit 1205440

Browse files
ClearlyClaireGargron
authored andcommitted
Fix filtering of favourited_by, reblogged_by, followers and following (mastodon#10447)
1 parent 62bafa2 commit 1205440

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Account < ApplicationRecord
9898
scope :tagged_with, ->(tag) { joins(:accounts_tags).where(accounts_tags: { tag_id: tag }) }
9999
scope :by_recent_status, -> { order(Arel.sql('(case when account_stats.last_status_at is null then 1 else 0 end) asc, account_stats.last_status_at desc')) }
100100
scope :popular, -> { order('account_stats.followers_count desc') }
101-
scope :without_blocking, ->(account) { account.nil? ? all : where.not(id: Block.where(target_account_id: account.id).pluck(&:account_id)) }
101+
scope :without_blocking, ->(account) { account.nil? ? all : where.not(id: Block.where(target_account_id: account.id).pluck(:account_id)) }
102102

103103
delegate :email,
104104
:unconfirmed_email,

0 commit comments

Comments
 (0)