forked from FoundKeyGang/FoundKey
client: check quoteId for canPost computation
fixes FoundKeyGang/FoundKey#334 Changelog: Fixed
This commit is contained in:
parent
ca257d7d0c
commit
a45908c1cb
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ const maxTextLength = $computed((): number => {
|
|||
|
||||
const canPost = $computed((): boolean => {
|
||||
return !posting &&
|
||||
(1 <= textLength || 1 <= files.length || !!poll || !!props.renote) &&
|
||||
(1 <= textLength || 1 <= files.length || !!poll || !!props.renote || !!quoteId) &&
|
||||
(textLength <= maxTextLength) &&
|
||||
(!poll || poll.choices.length >= 2);
|
||||
});
|
||||
|
@ -573,7 +573,7 @@ async function post() {
|
|||
text: text === '' ? undefined : text,
|
||||
fileIds: files.length > 0 ? files.map(f => f.id) : undefined,
|
||||
replyId: props.reply ? props.reply.id : undefined,
|
||||
renoteId: props.renote ? props.renote.id : quoteId ? quoteId : undefined,
|
||||
renoteId: props.renote?.id ?? quoteId ?? undefined,
|
||||
channelId: props.channel ? props.channel.id : undefined,
|
||||
poll,
|
||||
cw: useCw ? cw || '' : undefined,
|
||||
|
|
Loading…
Reference in a new issue