summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/ap/show.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-03-15 00:23:24 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-03-15 00:23:24 +0900
commit56eb896a03068b32469be4ce4dd0dceb8c4a2b4f (patch)
tree07ac43cef3c98fc39620dd887a3452f3afaaff49 /src/server/api/endpoints/ap/show.ts
parentFix hashtag style (diff)
downloadsharkey-56eb896a03068b32469be4ce4dd0dceb8c4a2b4f.tar.gz
sharkey-56eb896a03068b32469be4ce4dd0dceb8c4a2b4f.tar.bz2
sharkey-56eb896a03068b32469be4ce4dd0dceb8c4a2b4f.zip
Accept Article object (#4499)
Diffstat (limited to 'src/server/api/endpoints/ap/show.ts')
-rw-r--r--src/server/api/endpoints/ap/show.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts
index 861c8bce2e..7f4afa1f6e 100644
--- a/src/server/api/endpoints/ap/show.ts
+++ b/src/server/api/endpoints/ap/show.ts
@@ -103,7 +103,7 @@ async function fetchAny(uri: string) {
};
}
- if (['Note', 'Question'].includes(object.type)) {
+ if (['Note', 'Question', 'Article'].includes(object.type)) {
const note = await createNote(object.id);
return {
type: 'Note',