forked from FoundKeyGang/FoundKey
.js
This commit is contained in:
parent
889a890ac5
commit
41c87074e6
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import config from '@/config/index.js';
|
||||||
import { User } from '@/models/entities/user.js';
|
import { User } from '@/models/entities/user.js';
|
||||||
import { Users, Followings } from '@/models/index.js';
|
import { Users, Followings } from '@/models/index.js';
|
||||||
import { Not, IsNull } from 'typeorm';
|
import { Not, IsNull } from 'typeorm';
|
||||||
import { publishInternalEvent } from './stream';
|
import { publishInternalEvent } from '@/services/stream.js';
|
||||||
|
|
||||||
export async function doPostSuspend(user: { id: User['id']; host: User['host'] }) {
|
export async function doPostSuspend(user: { id: User['id']; host: User['host'] }) {
|
||||||
publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: true });
|
publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: true });
|
||||||
|
|
|
@ -6,7 +6,7 @@ import config from '@/config/index.js';
|
||||||
import { User } from '@/models/entities/user.js';
|
import { User } from '@/models/entities/user.js';
|
||||||
import { Users, Followings } from '@/models/index.js';
|
import { Users, Followings } from '@/models/index.js';
|
||||||
import { Not, IsNull } from 'typeorm';
|
import { Not, IsNull } from 'typeorm';
|
||||||
import { publishInternalEvent } from './stream';
|
import { publishInternalEvent } from '@/services/stream.js';
|
||||||
|
|
||||||
export async function doPostUnsuspend(user: User) {
|
export async function doPostUnsuspend(user: User) {
|
||||||
publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: false });
|
publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: false });
|
||||||
|
|
Loading…
Reference in a new issue