Skip to content

Commit

Permalink
changed hashtag visibility to public,unlisted
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Oct 18, 2021
1 parent 69af519 commit d01ff89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Status < ApplicationRecord
scope :without_replies, -> { where('statuses.reply = FALSE OR statuses.in_reply_to_account_id = statuses.account_id') }
scope :without_reblogs, -> { where('statuses.reblog_of_id IS NULL') }
scope :with_public_visibility, -> { where(visibility: :public) }
scope :with_hashtag_visibility, -> { where(visibility: :public).or(where(visibility: :unlisted)).or(where(visibility: :private)).or(where(visibility: :direct)) }
scope :with_hashtag_visibility, -> { where(visibility: :public).or(where(visibility: :unlisted)) }
scope :tagged_with, ->(tag_ids) { joins(:statuses_tags).where(statuses_tags: { tag_id: tag_ids }) }
scope :in_chosen_languages, ->(account) { where(language: nil).or where(language: account.chosen_languages) }
scope :excluding_silenced_accounts, -> { left_outer_joins(:account).where(accounts: { silenced_at: nil }) }
Expand Down

0 comments on commit d01ff89

Please sign in to comment.