@lanodan @tusooa @helene I got a simple implementation working on my instance :hehe:
https://ilja.space/notice/ANG5xglClJo1DCLTSC
This is the object https://recipes.ilja.space/recipe/vegan-brownies.json
Admittedly, the way it's done is really just a hack and really just aimed at this specific case
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index dc56c4d2c..c86288e78 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -359,6 +359,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do def handle_incoming(data, options \\ []) + def handle_incoming(%{"object" => %{"type" => [coretype, _]} = object} = data, options) do + handle_incoming(data |> Map.put("object", object |> Map.put("type", coretype)), options) + end + # Flag objects are placed ahead of the ID check because Mastodon 2.8 and earlier send them # with nil ID. def handle_incoming(%{"type" => "Flag", "object" => objects, "actor" => actor} = data, _options) doGNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.