projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118bf6e
)
Ensure SimplePolicy's tags in string representation don't trip up the object validator
author
Mark Felder
<feld@FreeBSD.org>
Mon, 14 Sep 2020 22:06:42 +0000
(17:06 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Mon, 14 Sep 2020 22:06:42 +0000
(17:06 -0500)
lib/pleroma/web/activity_pub/transmogrifier.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/transmogrifier.ex
b/lib/pleroma/web/activity_pub/transmogrifier.ex
index af4384213bf48c5558eb6b675ec32360c028adf0..8fe430644de3c23eff23492e73d97fcf8a9f0d60 100644
(file)
--- a/
lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/
lib/pleroma/web/activity_pub/transmogrifier.ex
@@
-309,7
+309,7
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier do
def fix_emoji(%{"tag" => tags} = object) when is_list(tags) do
emoji =
tags
- |> Enum.filter(fn data -> data["type"] == "Emoji" and data["icon"] end)
+ |> Enum.filter(fn data ->
is_map(data) and
data["type"] == "Emoji" and data["icon"] end)
|> Enum.reduce(%{}, fn data, mapping ->
name = String.trim(data["name"], ":")