refactor: 🚚 Begin rebranding to Versia Server

This commit is contained in:
Jesse Wierzbinski 2024-08-19 15:16:01 +02:00
parent 64cef5c6d6
commit 771097d037
No known key found for this signature in database
58 changed files with 2377 additions and 242 deletions

View file

@ -11,7 +11,7 @@ export type LikeType = InferSelectModel<typeof Likes>;
/**
* Represents a Like entity in the database.
*/
export const likeToLysand = (like: LikeType): Like => {
export const likeToVersia = (like: LikeType): Like => {
return {
id: like.id,
// biome-ignore lint/suspicious/noExplicitAny: to be rewritten

View file

@ -114,14 +114,14 @@ export const getFromHeader = async (value: string): Promise<AuthData> => {
export const sendFollowAccept = async (follower: User, followee: User) => {
await follower.federateToUser(
followAcceptToLysand(follower, followee),
followAcceptToVersia(follower, followee),
followee,
);
};
export const sendFollowReject = async (follower: User, followee: User) => {
await follower.federateToUser(
followRejectToLysand(follower, followee),
followRejectToVersia(follower, followee),
followee,
);
};
@ -258,7 +258,7 @@ export const retrieveToken = async (
);
};
export const followRequestToLysand = (
export const followRequestToVersia = (
follower: User,
followee: User,
): Follow => {
@ -286,7 +286,7 @@ export const followRequestToLysand = (
};
};
export const followAcceptToLysand = (
export const followAcceptToVersia = (
follower: User,
followee: User,
): FollowAccept => {
@ -314,12 +314,12 @@ export const followAcceptToLysand = (
};
};
export const followRejectToLysand = (
export const followRejectToVersia = (
follower: User,
followee: User,
): FollowReject => {
return {
...followAcceptToLysand(follower, followee),
...followAcceptToVersia(follower, followee),
type: "FollowReject",
};
};