mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-28 05:28:41 +09:00
23 lines
351 B
TypeScript
23 lines
351 B
TypeScript
import define from '../../define';
|
|
import { MutedNotes } from '../../../../models';
|
|
|
|
export const meta = {
|
|
tags: ['account'],
|
|
|
|
requireCredential: true as const,
|
|
|
|
kind: 'read:account',
|
|
|
|
params: {
|
|
}
|
|
};
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
return {
|
|
count: await MutedNotes.count({
|
|
userId: user.id,
|
|
reason: 'word'
|
|
})
|
|
};
|
|
});
|