feat: complete v0.3 reading and discovery experience
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { db } from "@/lib/db";
|
||||
|
||||
export function notify(userId: number, actorId: number, postId: number, type: "comment" | "reaction", message: string) {
|
||||
if (userId === actorId) return;
|
||||
db.prepare("INSERT INTO notifications(user_id,actor_id,post_id,type,message) VALUES(?,?,?,?,?)").run(userId, actorId, postId, type, message);
|
||||
}
|
||||
Reference in New Issue
Block a user