mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'internal-relay-push' into 'main'
InternalRelay: fix event distribution See merge request soapbox-pub/ditto!187
This commit is contained in:
commit
fae289486c
1 changed files with 4 additions and 2 deletions
|
|
@ -53,10 +53,12 @@ export class InternalRelay implements NRelay {
|
||||||
) as { key: 'domain'; value: string } | undefined)?.value;
|
) as { key: 'domain'; value: string } | undefined)?.value;
|
||||||
|
|
||||||
if (domain === event.author_domain) {
|
if (domain === event.author_domain) {
|
||||||
return machina.push(purifyEvent(event));
|
machina.push(purifyEvent(event));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return machina.push(purifyEvent(event));
|
machina.push(purifyEvent(event));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue