summaryrefslogtreecommitdiff
path: root/packages/frontend/src
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-11-02 22:02:54 +0000
committerdakkar <dakkar@thenautilus.net>2024-11-02 22:02:54 +0000
commitfa03c4cebeb5ef5dbd32b89328da2065d4a6e8d1 (patch)
treee4b63b5a0f498408e5fbd4c96bd1426a85390cbc /packages/frontend/src
parentmerge: Fix frontend TS configs (!725) (diff)
parentfix lint errors in FollowingEntityService.ts (diff)
downloadsharkey-fa03c4cebeb5ef5dbd32b89328da2065d4a6e8d1.tar.gz
sharkey-fa03c4cebeb5ef5dbd32b89328da2065d4a6e8d1.tar.bz2
sharkey-fa03c4cebeb5ef5dbd32b89328da2065d4a6e8d1.zip
merge: Respect user privacy settings in federation endpoints (resolves #712) (!652)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/652 Closes #712 Approved-by: Marie <github@yuugi.dev> Approved-by: dakkar <dakkar@thenautilus.net>
Diffstat (limited to 'packages/frontend/src')
-rw-r--r--packages/frontend/src/pages/instance-info.vue27
1 files changed, 18 insertions, 9 deletions
diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue
index bc3e93ad7d..a5e6e5ac33 100644
--- a/packages/frontend/src/pages/instance-info.vue
+++ b/packages/frontend/src/pages/instance-info.vue
@@ -194,6 +194,7 @@ import { getProxiedImageUrlNullable } from '@/scripts/media-proxy.js';
import { dateString } from '@/filters/date.js';
import MkTextarea from '@/components/MkTextarea.vue';
import MkInfo from '@/components/MkInfo.vue';
+import { $i } from '@/account.js';
const props = defineProps<{
host: string;
@@ -422,20 +423,28 @@ const headerTabs = computed(() => [{
key: 'users',
title: i18n.ts.users,
icon: 'ti ti-users',
-}, {
- key: 'following',
- title: i18n.ts.following,
- icon: 'ti ti-arrow-right',
-}, {
- key: 'followers',
- title: i18n.ts.followers,
- icon: 'ti ti-arrow-left',
-}, {
+}, ...getFollowingTabs(), {
key: 'raw',
title: 'Raw',
icon: 'ti ti-code',
}]);
+function getFollowingTabs() {
+ if (!$i) return [];
+ return [
+ {
+ key: 'following',
+ title: i18n.ts.following,
+ icon: 'ti ti-arrow-right',
+ },
+ {
+ key: 'followers',
+ title: i18n.ts.followers,
+ icon: 'ti ti-arrow-left',
+ },
+ ];
+}
+
definePageMetadata(() => ({
title: props.host,
icon: 'ti ti-server',