Merge commit '55f59b4343' into kb_migration

This commit is contained in:
KMY 2023-04-09 09:28:58 +09:00
commit c459fcb78b
10 changed files with 34 additions and 15 deletions

View file

@ -290,6 +290,14 @@ 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