Add support for fediverse:creator OpenGraph tag (#30398)
This commit is contained in:
1 parent
4a77e477ee
commit
128987eded
11 files changed
+105
-15
No files matched your search
@@ -8,6 +8,8 @@ class REST::PreviewCardSerializer < ActiveModel::Serializer
|
||||
:provider_url, :html, :width, :height,
|
||||
:image, :image_description, :embed_url, :blurhash, :published_at
|
||||
|
||||
has_one :author_account, serializer: REST::AccountSerializer, if: -> { object.author_account.present? }
|
||||
|
||||
def url
|
||||
object.original_url.presence || object.url
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user