Progress
This commit is contained in:
@@ -104,7 +104,8 @@ class MediaAttachment < ApplicationRecord
|
||||
|
||||
validates :account, presence: true
|
||||
validates :description, length: { maximum: 420 }, if: :local?
|
||||
|
||||
validates :file, presence: true, if: :local?
|
||||
|
||||
scope :attached, -> { where.not(status_id: nil).or(where.not(scheduled_status_id: nil)) }
|
||||
scope :unattached, -> { where(status_id: nil, scheduled_status_id: nil) }
|
||||
scope :local, -> { where(remote_url: '') }
|
||||
|
||||
@@ -351,7 +351,7 @@ class Status < ApplicationRecord
|
||||
apply_timeline_filters(query, account, local_only)
|
||||
end
|
||||
|
||||
def as_tag_timeline(tag, account = nil, local_only = false)
|
||||
def as_tag_timeline(tag, account = nil, local_only = true)
|
||||
query = timeline_scope(local_only).tagged_with(tag).without_replies
|
||||
|
||||
apply_timeline_filters(query, account, local_only)
|
||||
|
||||
Reference in New Issue
Block a user