Simplify the og:image and og:description code in stream_entries/show (#1934)
This commit is contained in:
@ -110,6 +110,10 @@ class Status < ApplicationRecord
|
||||
results
|
||||
end
|
||||
|
||||
def non_sensitive_with_media?
|
||||
!sensitive? && media_attachments.any?
|
||||
end
|
||||
|
||||
class << self
|
||||
def as_home_timeline(account)
|
||||
where(account: [account] + account.following)
|
||||
|
Reference in New Issue
Block a user