Add group own post to group timeline
This commit is contained in:
parent
acb22de646
commit
2d5a103176
1 changed files with 6 additions and 4 deletions
|
@ -88,11 +88,13 @@ module AccountAssociations
|
|||
visibility = [:public, :unlisted]
|
||||
visibility.push(:private) if account&.following?(self)
|
||||
|
||||
scope = Status.where(id:
|
||||
Status.where(account_id: id)
|
||||
scope = Status.unscoped
|
||||
.where(id:
|
||||
Status.reorder(nil)
|
||||
.where(account_id: id)
|
||||
.where(visibility: visibility)
|
||||
.select(:reblog_of_id)
|
||||
)
|
||||
.select('CASE reblog_of_id WHEN NULL THEN id ELSE reblog_of_id END')
|
||||
)
|
||||
scope = scope.where.not(account_id: account.excluded_from_timeline_account_ids) unless account.nil?
|
||||
scope
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue