Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { NoteWatchings } from "../../models/index.js";
|
||||
import { genId } from "../../misc/gen-id.js";
|
||||
export default (async (me, note)=>{
|
||||
// 自分の投稿はwatchできない
|
||||
if (me === note.userId) {
|
||||
return;
|
||||
}
|
||||
await NoteWatchings.insert({
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
noteId: note.id,
|
||||
userId: me,
|
||||
noteUserId: note.userId
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user