From: William Pitcock Date: Sun, 24 Jun 2018 06:52:17 +0000 (+0000) Subject: utils: make_create_data: add support for Article objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=bd479606ba2b645db46ef5312f06323534cfd9c9;p=akkoma utils: make_create_data: add support for Article objects --- 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