server: add doc for createFollowRequest

This commit is contained in:
Norm 2022-12-22 16:54:55 -05:00
parent a3354904af
commit 549302e9c0
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -7,6 +7,12 @@ import { Blockings, FollowRequests, Users } from '@/models/index.js';
import { genId } from '@/misc/gen-id.js';
import { createNotification } from '@/services/create-notification.js';
/**
* Make a follow request from `follower` to `followee`.
* @param follower User making the follow request
* @param followee User to make the follow request to
* @param requestId Follow request ID
*/
export async function createFollowRequest(follower: User, followee: User, requestId?: string): Promise<void> {
if (follower.id === followee.id) return;