Move default embed size knowledge into OEmbedSerializer (#31990)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Matt JankowskiandClaire authored and GitHub committed 2024-09-20 12:39:48 +00:00
1 parent 8afa3bb2fa
commit bdf83c353f
3 files changed
+6 -12

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ class Api::Web::EmbedsController < Api::Web::BaseController
return not_found if @status.hidden?
if @status.local?
render json: @status, serializer: OEmbedSerializer, width: 400
render json: @status, serializer: OEmbedSerializer
else
return not_found unless user_signed_in?