forked from FoundKeyGang/FoundKey
server: use named export for createFollowRequest
This commit is contained in:
parent
28f65bebfc
commit
a3354904af
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue