Send Delete activity on suspend (#5165)
* Send Delete Person activity * Delete activityの後にフォロー解除する * アカウント削除でもDelete activity
This commit is contained in:
parent
ef44eda69e
commit
9c4e64b7b5
5 changed files with 81 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import deleteFollowing from '../../../../services/following/delete';
|
|||
import { Users, Followings } from '../../../../models';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { insertModerationLog } from '../../../../services/insert-moderation-log';
|
||||
import { doPostSuspend } from '../../../../services/suspend-user';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
|
|
@ -51,7 +52,10 @@ export default define(meta, async (ps, me) => {
|
|||
targetId: user.id,
|
||||
});
|
||||
|
||||
unFollowAll(user);
|
||||
(async () => {
|
||||
await doPostSuspend(user).catch(e => {});
|
||||
await unFollowAll(user).catch(e => {});
|
||||
})();
|
||||
});
|
||||
|
||||
async function unFollowAll(follower: User) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue