Remove extra media attachments and support raw array

This commit is contained in:
KMY 2023-04-22 17:10:11 +09:00
parent 004129dfbb
commit 7e125b276f
6 changed files with 4 additions and 17 deletions

View file

@ -294,14 +294,6 @@ class Status < ApplicationRecord
end
end
def ordered_media_attachments_original_mastodon
ordered_media_attachments.take(4)
end
def ordered_media_attachments_extra
ordered_media_attachments.drop(4).take(4)
end
def replies_count
status_stat&.replies_count || 0
end