mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Hotfix for tag problems.
This commit is contained in:
parent
7e0ce32f4d
commit
0e9bd6d148
1 changed files with 8 additions and 1 deletions
|
@ -79,7 +79,14 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
|
|||
mentions = activity.recipients |> get_mentions
|
||||
|
||||
categories = (activity.data["object"]["tag"] || [])
|
||||
|> Enum.map(fn (tag) -> {:category, [term: to_charlist(tag)], []} end)
|
||||
|> Enum.map(fn (tag) ->
|
||||
if is_binary(tag) do
|
||||
{:category, [term: to_charlist(tag)], []}
|
||||
else
|
||||
nil
|
||||
end
|
||||
end)
|
||||
|> Enum.filter(&(&1))
|
||||
|
||||
emoji_links = get_emoji_links(activity.data["object"]["emoji"] || %{})
|
||||
|
||||
|
|
Loading…
Reference in a new issue