fix: Set in_reply_to id when replying
This commit is contained in:
parent
2eda27cdb7
commit
bebc771003
@ -104,6 +104,11 @@ export default function Compose(props: Props) {
|
|||||||
const post = async () => {
|
const post = async () => {
|
||||||
if (body.length === 0) return
|
if (body.length === 0) return
|
||||||
let options = { visibility: visibility }
|
let options = { visibility: visibility }
|
||||||
|
if (props.in_reply_to) {
|
||||||
|
options = Object.assign({}, options, {
|
||||||
|
in_reply_to_id: props.in_reply_to.id
|
||||||
|
})
|
||||||
|
}
|
||||||
if (cw) {
|
if (cw) {
|
||||||
options = Object.assign({}, options, {
|
options = Object.assign({}, options, {
|
||||||
spoiler_text: spoiler
|
spoiler_text: spoiler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user