Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework

# Conflicts:
#	test/pleroma/web/mastodon_api/views/status_view_test.exs
This commit is contained in:
Ivan Tashkinov 2021-01-22 10:05:28 +03:00
commit 218c519606
3 changed files with 6 additions and 5 deletions

View file

@ -493,7 +493,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: []