diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 19:23:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 19:23:42 +0900 |
| commit | a6abcd1aa5edca98d8cc2b974cc63b06b3dd75bf (patch) | |
| tree | 72bcff64b3916caf20396d10535bf541d0ccd9aa /src/remote | |
| parent | wip (diff) | |
| download | sharkey-a6abcd1aa5edca98d8cc2b974cc63b06b3dd75bf.tar.gz sharkey-a6abcd1aa5edca98d8cc2b974cc63b06b3dd75bf.tar.bz2 sharkey-a6abcd1aa5edca98d8cc2b974cc63b06b3dd75bf.zip | |
wip
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/act/create.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/act/create.ts b/src/remote/activitypub/act/create.ts index 80afb61bd7..7d5a9d427a 100644 --- a/src/remote/activitypub/act/create.ts +++ b/src/remote/activitypub/act/create.ts @@ -78,7 +78,7 @@ export default async (actor, activity): Promise<void> => { let reply = null; if ('inReplyTo' in note && note.inReplyTo != null) { - const inReplyToPost = await Post.findOne({ uri: note.id || note }); + const inReplyToPost = await Post.findOne({ uri: note.inReplyTo.id || note.inReplyTo }); if (inReplyToPost) { reply = inReplyToPost; } else { |