Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Pass the credentials to fetch the instance endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf committed Nov 6, 2023
1 parent 60b3d3b commit 63bd7ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/settings/SettingsAbout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script setup lang="js">
const content = (await $fetch(`https://${publicServer.value}/api/v1/instance/extended_description`)).content
const user = currentUser.value
const content = (await $fetch(`https://${publicServer.value}/api/v1/instance/extended_description`,
{ headers: { authorization: `Bearer ${user?.token}` } })).content
const instance = await useMastoClient().v2.instance.fetch()
const { t } = useI18n()
Expand Down

0 comments on commit 63bd7ae

Please sign in to comment.