diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-06-24 06:52:17 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-06-27 13:37:35 +0000 |
commit | bd479606ba2b645db46ef5312f06323534cfd9c9 (patch) | |
tree | 0c0d634f14a92b36c62976cf5ffcfad2a7e088a8 | |
parent | c42f28b82c01423d05b85514797bf3bce692628d (diff) | |
download | pleroma-bd479606ba2b645db46ef5312f06323534cfd9c9.tar.gz |
utils: make_create_data: add support for Article objects
-rw-r--r-- | lib/pleroma/web/activity_pub/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 64329b710..8b41a3bec 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -128,7 +128,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do Inserts a full object if it is contained in an activity. """ def insert_full_object(%{"object" => %{"type" => type} = object_data}) - when is_map(object_data) and type in ["Note"] do + when is_map(object_data) and type in ["Article", "Note"] do with {:ok, _} <- Object.create(object_data) do :ok end |