52774bbe64
* wip * wip * wip * Update index.ts * Update gen-openapi-spec.ts * Update api.ja-JP.md * Fix * Improve doc * Update gen-openapi-spec.ts * Update redoc.html * Improve doc * Update gen-openapi-spec.ts * Improve doc * Update CHANGELOG.md
24 lines
370 B
TypeScript
24 lines
370 B
TypeScript
import User from '../../../../models/user';
|
|
import define from '../../define';
|
|
|
|
export const meta = {
|
|
tags: ['account', 'following'],
|
|
|
|
requireCredential: true,
|
|
|
|
kind: 'account-write',
|
|
|
|
params: {
|
|
}
|
|
};
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
await User.update({ _id: user._id }, {
|
|
$set: {
|
|
pendingReceivedFollowRequestsCount: 0
|
|
}
|
|
});
|
|
|
|
return;
|
|
});
|