about summary refs log tree commit diff
path: root/index.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-06-06 19:04:18 +0000
committerZach DeCook <zachdecook@librem.one>2022-06-06 19:04:18 +0000
commit7c1b0f6ec2733ba82a89c1488618ec77d8a16067 (patch)
treee17b3d0517e237309c2f10dc61e5d26f07e9a0e5 /index.php
parentc17f50c068fe525529c8d01c5e85ce6b24bf9828 (diff)
downloadphp-xmpp-invitation-7c1b0f6ec2733ba82a89c1488618ec77d8a16067.tar.gz
URIs: Support group chat uris
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;