mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Begin rebranding to Versia Server
This commit is contained in:
parent
06c65559d1
commit
c10da18182
58 changed files with 2377 additions and 242 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue