Commiting
This commit is contained in:
@@ -4,8 +4,8 @@ class OEmbedSerializer < ActiveModel::Serializer
|
||||
include RoutingHelper
|
||||
include ActionView::Helpers::TagHelper
|
||||
|
||||
attributes :type, :version, :title, :author_name,
|
||||
:author_url, :provider_name, :provider_url,
|
||||
attributes :type, :version, :title
|
||||
:provider_name, :provider_url,
|
||||
:cache_age, :html, :width, :height
|
||||
|
||||
def type
|
||||
@@ -16,14 +16,6 @@ class OEmbedSerializer < ActiveModel::Serializer
|
||||
'1.0'
|
||||
end
|
||||
|
||||
def author_name
|
||||
object.account.display_name.presence || object.account.username
|
||||
end
|
||||
|
||||
def author_url
|
||||
short_account_url(object.account)
|
||||
end
|
||||
|
||||
def provider_name
|
||||
Rails.configuration.x.local_domain
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user