Commit 0e9bd6d1 authored by lain's avatar lain

Hotfix for tag problems.

parent 7e0ce32f
Pipeline #840 failed with stage
in 2 minutes and 27 seconds
......@@ -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"] || %{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment