mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
fix replacements crashing on delivering poll votes
Some checks failed
/ test-build (push) Has been cancelled
Some checks failed
/ test-build (push) Has been cancelled
This commit is contained in:
parent
4bc55eb6c9
commit
ebe2ff0e21
1 changed files with 20 additions and 18 deletions
|
@ -41,6 +41,7 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
||||||
if (
|
if (
|
||||||
["Create", "Update"].includes(job.data.content.type)
|
["Create", "Update"].includes(job.data.content.type)
|
||||||
&& job.data.content.object.type === "Note"
|
&& job.data.content.object.type === "Note"
|
||||||
|
&& job.data.content.object.content
|
||||||
) {
|
) {
|
||||||
const obj = job.data.content.object;
|
const obj = job.data.content.object;
|
||||||
const patchSrcContent = shouldPatchText(obj.source.content);
|
const patchSrcContent = shouldPatchText(obj.source.content);
|
||||||
|
@ -55,6 +56,7 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
await request(job.data.user, job.data.to, job.data.content);
|
await request(job.data.user, job.data.to, job.data.content);
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
|
Loading…
Reference in a new issue