Add published_at attribute to preview cards (#26153)

This commit is contained in:
Eugen Rochko
2023-07-25 13:40:35 +02:00
committed by GitHub
parent 49d2e8979f
commit 7bd8ef355c
5 changed files with 225 additions and 221 deletions

View File

@ -15,8 +15,4 @@ class REST::PreviewCardSerializer < ActiveModel::Serializer
def html
Sanitize.fragment(object.html, Sanitize::Config::MASTODON_OEMBED)
end
def published_at
object.created_at
end
end