Browse Source

feat: use display name if it exists

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
b1081c2c81
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/lib/components/chat/Messages.svelte

+ 5 - 1
src/lib/components/chat/Messages.svelte

@@ -325,7 +325,11 @@
 				</div>
 				{#if selectedModelfile.user}
 					<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
-						By <a href="https://ollamahub.com/">@{selectedModelfile.user.username}</a>
+						By <a href="https://ollamahub.com/"
+							>{selectedModelfile.user.name
+								? selectedModelfile.user.name
+								: `@${selectedModelfile.user.username}`}</a
+						>
 					</div>
 				{/if}
 			{:else}