feat: admin notifications
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user