mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix image URLs being wrong
This commit is contained in:
parent
e4f82e2fa9
commit
78734dc8d5
|
|
@ -39,7 +39,7 @@ export const getAvatarUrl = (user: User, config: Config) => {
|
|||
config.defaults.avatar ||
|
||||
`https://api.dicebear.com/8.x/${config.defaults.placeholder_style}/svg?seed=${user.username}`
|
||||
);
|
||||
return getUrl(user.avatar, config);
|
||||
return user.avatar;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -49,7 +49,7 @@ export const getAvatarUrl = (user: User, config: Config) => {
|
|||
*/
|
||||
export const getHeaderUrl = (user: User, config: Config) => {
|
||||
if (!user.header) return config.defaults.header;
|
||||
return getUrl(user.header, config);
|
||||
return user.header;
|
||||
};
|
||||
|
||||
export const getFromRequest = async (req: Request): Promise<AuthData> => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue