mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
94228778c9
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import { User } from '@/models/entities/user.js';
|
|
import { NoteWatchings } from '@/models/index.js';
|
|
import { Note } from '@/models/entities/note.js';
|
|
|
|
export default async (me: User['id'], note: Note) => {
|
|
await NoteWatchings.delete({
|
|
noteId: note.id,
|
|
userId: me,
|
|
});
|
|
};
|