mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix mention link
This commit is contained in:
1 parent
d11070ff4f
commit
080040579f
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.13.6",
|
||||
"version": "3.13.7",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -240,7 +240,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
||||
const uids = Object.keys(await user.getList(domainId, Array.from(targets))).map((i) => +i);
|
||||
const msg = JSON.stringify({
|
||||
message: 'User {0} mentioned you in {1:link}',
|
||||
params: [this.user.uname, this.request.path],
|
||||
params: [this.user.uname, `/d/${domainId}${this.request.path}`],
|
||||
});
|
||||
for (const uid of uids) {
|
||||
message.send(1, uid, msg, message.FLAG_RICHTEXT | message.FLAG_UNREAD);
|
||||
@@ -259,7 +259,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
||||
const uids = Object.keys(await user.getList(domainId, Array.from(targets))).map((i) => +i);
|
||||
const msg = JSON.stringify({
|
||||
message: 'User {0} mentioned you in {1:link}',
|
||||
params: [this.user.uname, this.request.path],
|
||||
params: [this.user.uname, `/d/${domainId}${this.request.path}`],
|
||||
});
|
||||
for (const uid of uids) {
|
||||
message.send(1, uid, msg, message.FLAG_RICHTEXT | message.FLAG_UNREAD);
|
||||
|
||||
Reference in new issue
Block a user