chore: ba6959b8c1 のリモート対応
This commit is contained in:
parent
46f3736f44
commit
8e2be5e9a7
2 changed files with 11 additions and 6 deletions
|
|
@ -9,8 +9,13 @@ import { User } from '@/models/entities/user';
|
|||
import { Blockings, Users, FollowRequests, Followings, UserListJoinings, UserLists } from '@/models/index';
|
||||
import { perUserFollowingChart } from '@/services/chart/index';
|
||||
import { genId } from '@/misc/gen-id';
|
||||
import { IdentifiableError } from '@/misc/identifiable-error';
|
||||
|
||||
export default async function(blocker: User, blockee: User) {
|
||||
if (blockee.isAdmin || blockee.isModerator) {
|
||||
throw new IdentifiableError('e42b7890-5e4d-9d9c-d54b-cf4dd30adfb5');
|
||||
}
|
||||
|
||||
await Promise.all([
|
||||
cancelRequest(blocker, blockee),
|
||||
cancelRequest(blockee, blocker),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue