projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2997fe1
)
ActivityPub: Fallback for unhandled outgoing activities.
author
lain
<lain@soykaf.club>
Sun, 18 Feb 2018 14:20:03 +0000
(15:20 +0100)
committer
lain
<lain@soykaf.club>
Sun, 18 Feb 2018 14:20:03 +0000
(15:20 +0100)
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 fc04cc9a119db51ee10581d4bee71010be908b97..076bd2ea8bac10f0cb01e4d1aeb6da15471c9996 100644
(file)
--- a/
lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/
lib/pleroma/web/activity_pub/transmogrifier.ex
@@
-114,7
+114,7
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier do
{:ok, data}
end
- def prepare_outgoing(%{"type" => type} = data)
when type in ["Follow", "Accept", "Like", "Announce"]
do
+ def prepare_outgoing(%{"type" => type} = data) do
data = data
|> Map.put("@context", "https://www.w3.org/ns/activitystreams")