mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-30 01:43:03 +00:00
Fix bug
This commit is contained in:
parent
ebc2cca0b4
commit
c9ee737078
1 changed files with 2 additions and 1 deletions
|
@ -188,6 +188,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
// 通知
|
// 通知
|
||||||
if (isLocalUser(data.reply._user)) {
|
if (isLocalUser(data.reply._user)) {
|
||||||
nm.push(data.reply.userId, 'reply');
|
nm.push(data.reply.userId, 'reply');
|
||||||
|
publishUserStream(data.reply.userId, 'reply', noteObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +210,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
}
|
}
|
||||||
|
|
||||||
// Publish event
|
// Publish event
|
||||||
if (!user._id.equals(data.renote.userId)) {
|
if (!user._id.equals(data.renote.userId) && isLocalUser(data.renote._user)) {
|
||||||
publishUserStream(data.renote.userId, 'renote', noteObj);
|
publishUserStream(data.renote.userId, 'renote', noteObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue