fixed undefined property error
This commit is contained in:
parent
338e9be540
commit
34c552703a
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ async function main() {
|
|||
roomId === process.env.MATRIX_ROOM_ID &&
|
||||
event['content'] &&
|
||||
['т', 'н'].includes(event['content']['body'].split('\n').at(-1).trim()) &&
|
||||
event['content']['m.relates_to'] &&
|
||||
event['content']['m.relates_to']['m.in_reply_to']
|
||||
) {
|
||||
const post = await db.post.findUnique({
|
||||
|
|
Loading…
Reference in a new issue