Merge pull request #4863 from h3poteto/fix/in_reply_to

fix: Set in_reply_to id when replying
This commit is contained in:
AkiraFukushima 2024-03-03 22:37:06 +09:00 committed by GitHub
commit 0c32704e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ export default function Compose(props: Props) {
const post = async () => {
if (body.length === 0) return
let options = { visibility: visibility }
if (props.in_reply_to) {
options = Object.assign({}, options, {
in_reply_to_id: props.in_reply_to.id
})
}
if (cw) {
options = Object.assign({}, options, {
spoiler_text: spoiler