v3: added a chatbox
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
khannurien
2026-06-29 20:25:10 +00:00
parent f171027673
commit 6c4f410d9b
35 changed files with 1800 additions and 152 deletions

View File

@@ -132,6 +132,7 @@ function notificationLink(n: Notification): string {
return `/dumps/${d.dumpId}#comment-${d.contextId}`;
}
if (d.contextType === "dump") return `/dumps/${d.contextId}`;
if (d.contextType === "chat") return `/?chat=open`;
return `/playlists/${d.contextId}`;
}
}
@@ -212,7 +213,11 @@ function notificationContent(n: Notification): React.ReactNode {
case "user_mentioned": {
const d = data as UserMentionedData;
const where = d.contextTitle ||
(d.contextType === "comment" ? t`a comment` : t`a post`);
(d.contextType === "comment"
? t`a comment`
: d.contextType === "chat"
? t`the chat`
: t`a post`);
return (
<Trans>
<strong>{d.mentionerUsername}</strong>