Allow admins to delete posts

This commit is contained in:
dtonon 2026-05-26 15:49:38 +01:00
parent 3bc2031866
commit 2f6ea767d1
21 changed files with 683 additions and 208 deletions

View file

@ -34,6 +34,10 @@ export function getChatMessage(id: string): ChatMessageData | undefined {
return messages.find((m) => m.id === id);
}
export function removeChatMessage(id: string) {
messages = messages.filter((m) => m.id !== id);
}
async function loadProfile(pubkey: string) {
if (profiles[pubkey]) return;
try {