fix: preserve user figures in avatar imager
This commit is contained in:
1 parent
49185dd7a9
commit
4a6fcd050e
5 files changed
+12
-251
No files matched your search
+1
-3
@@ -1,11 +1,9 @@
|
||||
import { getNewFormatFigure } from "@/lib/figure-convert";
|
||||
import { getAvatarUrl } from "@/lib/imager";
|
||||
import type { AvatarOptions } from "@/types/admin";
|
||||
|
||||
/** Build a Habbo avatar-imager URL for a figure string. */
|
||||
export function avatarImageUrl(look: string, opts: AvatarOptions = {}): string {
|
||||
const figure = getNewFormatFigure(look);
|
||||
return getAvatarUrl(figure, opts);
|
||||
return getAvatarUrl(look, opts);
|
||||
}
|
||||
|
||||
/** URL-safe slug from a title (lowercase, ascii, hyphenated). */
|
||||
|
||||
Reference in new issue
Block a user