XMPP invitation landing page, without javascript
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index b8a2b5b..b7a0024 100644
--- a/index.php
+++ b/index.php
@@ -20,6 +20,9 @@
}
// TODO: Better invitation type detection.
$action = $lang->chat;
+ if ( str_contains($uri, '?join') ) {
+ $action = $lang->muc;
+ }
$name = ucfirst(explode("@", substr($uri, 5))[0]);
function t($template) {
GLOBAL $name;