mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 06:58:58 +00:00
MastoAPI: Also return text_url in attachments.
This commit is contained in:
parent
7f3ce5c1a0
commit
6258c6b6b3
|
@ -73,6 +73,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
url: href,
|
url: href,
|
||||||
remote_url: href,
|
remote_url: href,
|
||||||
preview_url: href,
|
preview_url: href,
|
||||||
|
text_url: href,
|
||||||
type: type
|
type: type
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -71,7 +71,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
||||||
type: "image",
|
type: "image",
|
||||||
url: "someurl",
|
url: "someurl",
|
||||||
remote_url: "someurl",
|
remote_url: "someurl",
|
||||||
preview_url: "someurl"
|
preview_url: "someurl",
|
||||||
|
text_url: "someurl"
|
||||||
}
|
}
|
||||||
|
|
||||||
assert expected == StatusView.render("attachment.json", %{attachment: object})
|
assert expected == StatusView.render("attachment.json", %{attachment: object})
|
||||||
|
|
Loading…
Reference in a new issue