From 1b1c4ff940fbd6569d3ce5f2be4aaef2158a6ce1 Mon Sep 17 00:00:00 2001 From: Skye Date: Thu, 29 Dec 2022 19:09:01 +0900 Subject: [PATCH] also send misskey quote data --- app/serializers/activitypub/note_serializer.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index 28122393c2..c86aecaea1 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -12,6 +12,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer :conversation attribute :quote_uri, if: -> { object.quote? } + attribute :misskey_quote, key: :_misskey_quote, if: -> { object.quote? } attribute :content attribute :content_map, if: :language? @@ -156,6 +157,8 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer ActivityPub::TagManager.instance.uri_for(object.quote) if object.quote? end + alias misskey_quote quote_uri + def local? object.account.local? end