Send Delete activity on suspend (#5165)

* Send Delete Person activity

* Delete activityの後にフォロー解除する

* アカウント削除でもDelete activity
This commit is contained in:
MeiMei 2019-07-18 02:03:28 +09:00 committed by syuilo
parent ef44eda69e
commit 9c4e64b7b5
5 changed files with 81 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import { ID } from '../../../../misc/cafy-id';
import define from '../../define';
import { Users } from '../../../../models';
import { insertModerationLog } from '../../../../services/insert-moderation-log';
import { doPostUnsuspend } from '../../../../services/unsuspend-user';
export const meta = {
desc: {
@ -40,4 +41,6 @@ export default define(meta, async (ps, me) => {
insertModerationLog(me, 'unsuspend', {
targetId: user.id,
});
doPostUnsuspend(user);
});