Fix: 投稿がメディアを持っているかの判定条件で、Rubyのコードを通さないよう改善 (#338)

This commit is contained in:
KMY(雪あすか) 2023-12-09 10:05:50 +09:00 committed by GitHub
parent 6a680bad9a
commit dccc7c9b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,7 +302,7 @@ class Status < ApplicationRecord
alias sign? distributable? alias sign? distributable?
def with_media? def with_media?
ordered_media_attachments.any? media_attachments.any?
end end
def expired? def expired?