mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: fix discussion display
This commit is contained in:
1 parent
3986abac7b
commit
d93520490e
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.32.3",
|
||||
"version": "2.32.4",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -187,7 +187,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
||||
if (drdoc.reply) uids.push(...drdoc.reply.map((drrdoc) => drrdoc.owner));
|
||||
}
|
||||
const udict = await user.getList(domainId, uids);
|
||||
if (!dsdoc.view) {
|
||||
if (!dsdoc?.view) {
|
||||
await Promise.all([
|
||||
discussion.inc(domainId, did, 'views', 1),
|
||||
discussion.setStatus(domainId, did, this.user._id, { view: true }),
|
||||
|
||||
Reference in new issue
Block a user