mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-02 16:58:11 +09:00
wip
This commit is contained in:
parent
2a80fdeafe
commit
a6abcd1aa5
@ -78,7 +78,7 @@ export default async (actor, activity): Promise<void> => {
|
|||||||
|
|
||||||
let reply = null;
|
let reply = null;
|
||||||
if ('inReplyTo' in note && note.inReplyTo != 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) {
|
if (inReplyToPost) {
|
||||||
reply = inReplyToPost;
|
reply = inReplyToPost;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user