From 385004df10d706fca1323763e84da6fd11968603 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 6 Jun 2022 20:07:54 +0000 Subject: URIs: Add Contact Invitation with IBR --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 6b37a18..a8d9195 100644 --- a/index.php +++ b/index.php @@ -19,6 +19,7 @@ $uri = "xmpp:" . $uri; } // TODO: Better invitation type detection. + $parsed = parse_url($uri); $action = $lang->chat; if ( str_contains($uri, '?join') ) { $action = $lang->muc; @@ -27,8 +28,9 @@ if ( str_contains($uri, "@") ) { $action = $lang->register_name; } + } elseif ( str_contains($parsed['query'], 'ibr=y') ) { + $action = $lang->ibr; } - $parsed = parse_url($uri); $name = explode("@", $parsed['path'])[0]; $server = explode("@", $parsed['path'])[1] ?? $name; function t($template) { -- cgit 1.4.1