fix erroneous 'reply target is nonexistent' errors when using the user profile mention button

This commit is contained in:
Laura Hausmann 2024-09-30 23:57:07 +02:00
parent 92d3cd4d4a
commit 0b53b63797
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -901,7 +901,7 @@ const postStatus = ({
form.append('poll[options][]', option)
})
}
if (inReplyToStatusId) {
if (inReplyToStatusId && typeof inReplyToStatusId === 'string') {
form.append('in_reply_to_id', inReplyToStatusId)
}
if (quoteId) {