projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate Pleroma.Web.base_url/0
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
status_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 792197a4a4b49ccd85f70df99ada329c7f859e88..e8de1ed28c4973db335f8875124828c4823bd999 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/status_view.ex
@@
-180,7
+180,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
media_attachments: reblogged[:media_attachments] || [],
mentions: mentions,
tags: reblogged[:tags] || [],
media_attachments: reblogged[:media_attachments] || [],
mentions: mentions,
tags: reblogged[:tags] || [],
- application: build_application(activity_object.data["
application
"]),
+ application: build_application(activity_object.data["
generator
"]),
language: nil,
emojis: [],
pleroma: %{
language: nil,
emojis: [],
pleroma: %{
@@
-254,7
+254,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
content_html =
content
content_html =
content
- |> HTML.get_cached_scrubbed_html_for_activity(
+ |>
Activity.
HTML.get_cached_scrubbed_html_for_activity(
User.html_filter_policy(opts[:for]),
activity,
"mastoapi:content"
User.html_filter_policy(opts[:for]),
activity,
"mastoapi:content"
@@
-262,7
+262,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
content_plaintext =
content
content_plaintext =
content
- |> HTML.get_cached_stripped_html_for_activity(
+ |>
Activity.
HTML.get_cached_stripped_html_for_activity(
activity,
"mastoapi:content"
)
activity,
"mastoapi:content"
)
@@
-345,7
+345,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
poll: render(PollView, "show.json", object: object, for: opts[:for]),
mentions: mentions,
tags: build_tags(tags),
poll: render(PollView, "show.json", object: object, for: opts[:for]),
mentions: mentions,
tags: build_tags(tags),
- application: build_application(object.data["
application
"]),
+ application: build_application(object.data["
generator
"]),
language: nil,
emojis: build_emojis(object.data["emoji"]),
pleroma: %{
language: nil,
emojis: build_emojis(object.data["emoji"]),
pleroma: %{
@@
-485,7
+485,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusView do
def build_tags(object_tags) when is_list(object_tags) do
object_tags
|> Enum.filter(&is_binary/1)
def build_tags(object_tags) when is_list(object_tags) do
object_tags
|> Enum.filter(&is_binary/1)
- |> Enum.map(&%{name: &1, url: "#{Pleroma.Web.
base_
url()}/tag/#{URI.encode(&1)}"})
+ |> Enum.map(&%{name: &1, url: "#{Pleroma.Web.
Endpoint.
url()}/tag/#{URI.encode(&1)}"})
end
def build_tags(_), do: []
end
def build_tags(_), do: []