[feat] authorname

This commit is contained in:
kwaroran
2023-07-29 12:32:55 +09:00
parent f7ab75f344
commit 166743a375
2 changed files with 4 additions and 3 deletions

View File

@@ -20,8 +20,8 @@
<div class="p-6 max-w-full bg-darkbg rounded-md flex flex-col gap-4 w-2xl overflow-y-auto">
<div class="w-full flex flex-col">
<h1 class="text-2xl font-bold max-w-full overflow-hidden whitespace-nowrap text-ellipsis">{openedData.name}</h1>
{#if openedData.creatorName}
<span class="text-gray-500">{openedData.creatorName}</span>
{#if openedData.authorname}
<span class="text-borderc">Made by {openedData.authorname}</span>
{/if}
<div class="flex justify-start gap-4 mt-4">
<img class="h-36 w-36 rounded-md object-top object-cover" alt={openedData.name} src={`${hubURL}/resource/` + openedData.img}>

View File

@@ -556,7 +556,7 @@ export async function shareRisuHub(char:character, arg:{
img: Buffer.from(img).toString('base64'),
resources: resources,
token: get(DataBase)?.account?.token,
anon: arg.anon,
username: arg.anon ? '' : (get(DataBase)?.account?.id),
apiver: 3
})
})
@@ -589,6 +589,7 @@ export type hubType = {
creatorName?:string
hot:number
license:string
authorname?:string
}
export async function getRisuHub(arg?:{