mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 06:06:45 +00:00
Fix linting issues
This commit is contained in:
parent
52e78d2192
commit
9776a5dbdf
|
@ -726,7 +726,7 @@ const startWorker = async (workerId) => {
|
||||||
// If the payload already contains the `filtered` property, it means
|
// If the payload already contains the `filtered` property, it means
|
||||||
// that filtering has been applied on the ruby on rails side, as
|
// that filtering has been applied on the ruby on rails side, as
|
||||||
// such, we don't need to construct or apply the filters in streaming:
|
// such, we don't need to construct or apply the filters in streaming:
|
||||||
if (Object.prototype.hasOwnProperty.call(payload, "filtered")) {
|
if (Object.prototype.hasOwnProperty.call(payload, 'filtered')) {
|
||||||
transmit(event, payload);
|
transmit(event, payload);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -813,7 +813,7 @@ const startWorker = async (workerId) => {
|
||||||
results.push({
|
results.push({
|
||||||
filter: cachedFilter.filter,
|
filter: cachedFilter.filter,
|
||||||
keyword_matches,
|
keyword_matches,
|
||||||
status_matches: null
|
status_matches: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -828,7 +828,7 @@ const startWorker = async (workerId) => {
|
||||||
// filtered: https://docs.joinmastodon.org/entities/Status/#filtered
|
// filtered: https://docs.joinmastodon.org/entities/Status/#filtered
|
||||||
transmit(event, {
|
transmit(event, {
|
||||||
...payload,
|
...payload,
|
||||||
filtered: filter_results
|
filtered: filter_results,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
transmit(event, payload);
|
transmit(event, payload);
|
||||||
|
|
Loading…
Reference in a new issue