Commit 9f9b4102 authored by mgabdev's avatar mgabdev

Updated status.rb replies scopes to check in_reply_to_id

• Updated:
- status.rb replies scopes to check in_reply_to_id instead of reply
parent 483f8fb8
......@@ -89,8 +89,8 @@ class Status < ApplicationRecord
scope :remote, -> { where(local: false).or(where.not(uri: nil)) }
scope :local, -> { where(local: true).or(where(uri: nil)) }
scope :only_replies, -> { where('statuses.reply = TRUE') }
scope :without_replies, -> { where('statuses.reply = FALSE') }
scope :only_replies, -> { where('statuses.in_reply_to_id IS NOT NULL') }
scope :without_replies, -> { where('statuses.in_reply_to_id IS NULL') }
scope :without_reblogs, -> { where('statuses.reblog_of_id IS NULL') }
scope :with_public_visibility, -> { where(visibility: :public) }
scope :tagged_with, ->(tag) { joins(:statuses_tags).where(statuses_tags: { tag_id: tag }) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment