mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-21 14:23:04 +00:00
Fix streaming API double-JSON-encoding status IDs for deletes (#5069)
This commit is contained in:
parent
3f3de38075
commit
909a6d4661
|
@ -264,7 +264,7 @@ const startWorker = (workerId) => {
|
|||
const transmit = () => {
|
||||
const now = new Date().getTime();
|
||||
const delta = now - queued_at;
|
||||
const encodedPayload = typeof payload === 'number' ? payload : JSON.stringify(payload);
|
||||
const encodedPayload = typeof payload === 'object' ? JSON.stringify(payload) : payload;
|
||||
|
||||
log.silly(req.requestId, `Transmitting for ${req.accountId}: ${event} ${encodedPayload} Delay: ${delta}ms`);
|
||||
output(event, encodedPayload);
|
||||
|
|
Loading…
Reference in a new issue