Skip to content

Commit

Permalink
fix: buggy mastodon profile. (#87)
Browse files Browse the repository at this point in the history
Fix double links and descriptions in the members card and saving profile
deleting mastodon username bugs
  • Loading branch information
kimlimjustin committed Jul 1, 2024
1 parent e6a2946 commit 3c6701b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/routes/auth/v1/account/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@
</div>
</label>

<input type="hidden" name="mastodon_username" bind:value={mastodon_username} />

<button class="variant-filled btn mt-4"> Save </button>
</form>
</main>
Expand Down
13 changes: 0 additions & 13 deletions src/routes/u/[username]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,6 @@
{printWorkCompensation(profile.work_compensation)}
</div>
{/if}
{#if profile.links}
{#each profile.links as link}
<a class="variant-ghost btn" href={link.url}>
{link.label || link.url}
</a>
{/each}
{/if}
{#if profile.bio}
<div>
<pre
class="mt-2 text-wrap rounded-lg bg-surface-300 p-3 font-sans text-base dark:bg-surface-900">{profile.bio}</pre>
</div>
{/if}
{#if profile.mastodon_server && profile.username}
<a
class="variant-ghost btn"
Expand Down

0 comments on commit 3c6701b

Please sign in to comment.