mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-06 04:51:11 +02:00
Merge branch 'fix/reply-count' into 'develop'
fix: Replying to a post sometimes doesn't increase post's reply count Co-authored-by: Lhcfl <Lhcfl@outlook.com> See merge request firefish/firefish!10764
This commit is contained in:
commit
fbd980aeb8
|
@ -278,7 +278,6 @@ useNoteCapture({
|
|||
note,
|
||||
isDeletedRef: isDeleted,
|
||||
onReplied: (replyNote) => {
|
||||
note.value.repliesCount += 1;
|
||||
repliesPagingComponent.value?.append(replyNote);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -21,6 +21,7 @@ export function useNoteCapture(props: {
|
|||
|
||||
switch (type) {
|
||||
case "replied": {
|
||||
note.value.repliesCount += 1;
|
||||
if (props.onReplied) {
|
||||
const { id: createdId } = body;
|
||||
const replyNote = await os.api("notes/show", {
|
||||
|
|
Loading…
Reference in a new issue