feat: admin notifications

This commit is contained in:
gosangam
2026-06-16 14:48:29 +05:30
parent 0cf6df5942
commit f96e7dd2f1
3 changed files with 24 additions and 5 deletions
@@ -49,6 +49,7 @@ type IncomingEvent = {
actor_name?: string;
actor_handle?: string;
actor_avatar_url?: string | null;
body?: string | null;
};
function messageFor(e: IncomingEvent): string {
@@ -69,6 +70,8 @@ function messageFor(e: IncomingEvent): string {
return `${who} replied to your comment`;
case "comment_mention":
return `${who} mentioned you in a comment`;
case "admin_message":
return e.body || "A message from Prabhupāda Says";
default:
return "You have a new notification";
}