diff --git a/src/pages/Group.svelte b/src/pages/Group.svelte index 56a67ec9..62fbe20e 100644 --- a/src/pages/Group.svelte +++ b/src/pages/Group.svelte @@ -23,6 +23,7 @@ let systemMembers: Group[] = []; let isMainDash = false; let isDeleted = false; + let notOwnSystem = false; const isPage = true; export let isPublic = true; @@ -45,7 +46,10 @@ async function fetchGroup() { try { group = await api().groups($params.id).get({auth: !isPublic}); - if (!isPublic && !group.privacy) throw new Error("This group does not belong to your system, did you mean to look up their public page?") + if (!isPublic && !group.privacy) { + notOwnSystem = true; + throw new Error("Group is not from own system."); + } err = ""; loading = false; memberLoading = true; @@ -101,10 +105,10 @@ } -{#if settings && settings.appearance.color_background} +{#if settings && settings.appearance.color_background && !notOwnSystem}
{/if} -{#if group && group.banner && ((settings && settings.appearance.banner_top))} +{#if group && group.banner && settings && settings.appearance.banner_top && !notOwnSystem}