mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-04 12:46:44 -06: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'
|
||
|
})
|
||
|
};
|
||
|
});
|