mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
fix: ignore if post boosted by relay is local
This commit is contained in:
parent
e70d99be57
commit
389427af27
1 changed files with 2 additions and 1 deletions
|
@ -472,7 +472,8 @@ export default async (
|
|||
.map((relay) => new URL(relay.inbox).host)
|
||||
.includes(note.userHost);
|
||||
|
||||
if (boostedByRelay && data.renote) {
|
||||
if (boostedByRelay && data.renote && data.renote.userHost) {
|
||||
/* A relay boosted a remote post. */
|
||||
// Use Redis transaction for atomicity
|
||||
const key = `publishedNote:${data.renote.id}`;
|
||||
await redisClient.watch(key);
|
||||
|
|
Loading…
Reference in a new issue