media proxy: good enough wip
This commit is contained in:
parent
9d1c0ec18d
commit
5f35fdcf5d
7 changed files with 101 additions and 8 deletions
|
|
@ -6,7 +6,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter do
|
|||
data = object.data
|
||||
url = List.first(data["url"])
|
||||
%{
|
||||
url: url["href"],
|
||||
url: url["href"] |> Pleroma.Web.MediaProxy.url(),
|
||||
mimetype: url["mediaType"],
|
||||
id: data["uuid"],
|
||||
oembed: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue