From a89dc2819eeb6fb326934552954ca47e1cc61c6f Mon Sep 17 00:00:00 2001
From: Jonas Sulzer <jonas@violoncello.ch>
Date: Fri, 30 Nov 2018 09:51:48 +0100
Subject: add check for .well-known/webfinger

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
---
 src/App.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index c7c9355b..299d4c2e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -23,6 +23,11 @@
 				</p>
 			</form>
 		</template>
+		<template v-else-if="serverData.error">
+			<h2>{{ t('social', 'Social app setup') }}</h2>
+			<p>{{ t('social', '.well-known/webfinger isn\'t properly set up!') }}</p>
+			<p>{{ t('social', 'Social needs the .well-known auto discovery to be properly set up. If Nextcloud is not installed in the root of the domain it is often the case, that Nextcloud can\'t configure this automatically. To use Social the admin of this Nextcloud instance needs to manually configure the .well-known redirects: ') }}<a class="external_link" href="https://docs.nextcloud.com/server/15/go.php?to=admin-setup-well-known-URL" target="_blank" rel="noreferrer noopener">{{ t('social', 'Open Documentation') }} ↗</a></p>
+		</template>
 		<template v-else>
 			<p>{{ t('social', 'The social app requires to be setup by the server administrator.') }}</p>
 		</template>
@@ -57,6 +62,9 @@
 	#social-spacer a:focus {
 		border: none !important;
 	}
+	a.external_link {
+		text-decoration: underline;
+	}
 
 </style>
 
-- 
cgit v1.2.3

