Merge remote-tracking branch 'parent/main' into upstream-20240422
This commit is contained in:
commit
44f4a93430
100 changed files with 770 additions and 441 deletions
|
@ -59,11 +59,13 @@ class Announcement < ApplicationRecord
|
|||
end
|
||||
|
||||
def statuses
|
||||
@statuses ||= if status_ids.nil?
|
||||
[]
|
||||
else
|
||||
Status.where(id: status_ids).distributable_visibility_for_anonymous
|
||||
end
|
||||
@statuses ||= begin
|
||||
if status_ids.nil?
|
||||
[]
|
||||
else
|
||||
Status.with_includes.distributable_visibility_for_anonymous.where(id: status_ids)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue