server: use named export for createFollowRequest

This commit is contained in:
Norm 2022-12-22 16:45:25 -05:00
parent 28f65bebfc
commit a3354904af
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ import { getActiveWebhooks } from '@/misc/webhook-cache.js';
import { registerOrFetchInstanceDoc } from '../register-or-fetch-instance-doc.js';
import Logger from '../logger.js';
import { createNotification } from '../create-notification.js';
import createFollowRequest from './requests/create.js';
import { createFollowRequest } from './requests/create.js';
const logger = new Logger('following/create');

View file

@ -7,7 +7,7 @@ import { Blockings, FollowRequests, Users } from '@/models/index.js';
import { genId } from '@/misc/gen-id.js';
import { createNotification } from '@/services/create-notification.js';
export default async function(follower: { id: User['id']; host: User['host']; uri: User['host']; inbox: User['inbox']; sharedInbox: User['sharedInbox']; }, followee: { id: User['id']; host: User['host']; uri: User['host']; inbox: User['inbox']; sharedInbox: User['sharedInbox']; }, requestId?: string) {
export async function createFollowRequest(follower: User, followee: User, requestId?: string): Promise<void> {
if (follower.id === followee.id) return;
// check blocking