mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-19 09:20:30 +01:00
d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
9 lines
369 B
TypeScript
9 lines
369 B
TypeScript
import { fetchMeta } from './fetch-meta.js';
|
|
import { ILocalUser } from '@/models/entities/user.js';
|
|
import { Users } from '@/models/index.js';
|
|
|
|
export async function fetchProxyAccount(): Promise<ILocalUser | null> {
|
|
const meta = await fetchMeta();
|
|
if (meta.proxyAccountId == null) return null;
|
|
return await Users.findOneOrFail(meta.proxyAccountId) as ILocalUser;
|
|
}
|