utils: make_create_data: add support for Article objects
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 24 Jun 2018 06:52:17 +0000 (06:52 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 27 Jun 2018 13:37:35 +0000 (13:37 +0000)
lib/pleroma/web/activity_pub/utils.ex

index 64329b710080362bbf6b4c30e8903e8efda00ff0..8b41a3becbb26cad7af645d8bd6480316bd2a8c0 100644 (file)
@@ -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