Fix Ruby linting for glitch-soc code
This commit is contained in:
parent
b041869887
commit
925d1ffde5
@ -375,19 +375,19 @@ class Status < ApplicationRecord
|
|||||||
|
|
||||||
# _from_me part does not require any timeline filters
|
# _from_me part does not require any timeline filters
|
||||||
query_from_me = where(account_id: account.id)
|
query_from_me = where(account_id: account.id)
|
||||||
.direct_visibility
|
.direct_visibility
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.order(id: :desc)
|
.order(id: :desc)
|
||||||
|
|
||||||
# _to_me part requires mute and block filter.
|
# _to_me part requires mute and block filter.
|
||||||
# FIXME: may we check mutes.hide_notifications?
|
# FIXME: may we check mutes.hide_notifications?
|
||||||
query_to_me = Status
|
query_to_me = Status
|
||||||
.direct_visibility
|
.direct_visibility
|
||||||
.joins(:mentions)
|
.joins(:mentions)
|
||||||
.where(mentions: { account_id: account.id })
|
.where(mentions: { account_id: account.id })
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.order('mentions.status_id DESC')
|
.order('mentions.status_id DESC')
|
||||||
.not_excluded_by_account(account)
|
.not_excluded_by_account(account)
|
||||||
|
|
||||||
if max_id.present?
|
if max_id.present?
|
||||||
query_from_me = query_from_me.where(id: ...max_id)
|
query_from_me = query_from_me.where(id: ...max_id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user