improve: update commentvote

This commit is contained in:
Xylight committed 2024-02-26 17:03:36 -08:00
1 parent ee9dbf1071
commit d3168c1d1d
6 files changed
+82 -120

No files matched your search

+5 -6
View File
@@ -143,12 +143,11 @@ export async function markAsRead(
if (isSubmission(item)) item = contentItem(item)
if (item.type == 'post') {
return (
await getClient().markPostAsRead({
post_id: item.id,
read: read,
})
).post_view.read
getClient().markPostAsRead({
post_id: item.id,
read: read,
})
return read
}
return false
}