aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2021-01-22 03:21:26 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2021-01-22 03:21:26 +0000
commit42e495df2b8d72365e22f8be708051130bc81973 (patch)
treec6fbf1b52c22a26f9ea0ac227102754c83f40913 /lib
parentd8860eaee46c9bc0a079e90dfb008c54923d7330 (diff)
parent80ccdb56f623be21b3ec5b78fc55cee57bee1d2b (diff)
downloadpleroma-42e495df2b8d72365e22f8be708051130bc81973.tar.gz
Merge branch 'fix/tag-urls' into 'develop'
Make tag urls absolute See merge request pleroma/pleroma!3272
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index cd1a85088..2cd6732fe 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -491,7 +491,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)
- |> Enum.map(&%{name: &1, url: "/tag/#{URI.encode(&1)}"})
+ |> Enum.map(&%{name: &1, url: "#{Pleroma.Web.base_url()}/tag/#{URI.encode(&1)}"})
end
def build_tags(_), do: []