XMPP invitation landing page, without javascript
URIs: Support group chat uris
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | index.php | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,7 @@ For the JID romeo@xmpp.example, it will create the following page ([live example ## Supported URIs * [xmpp:romeo@xmpp.example](https://zachdecook.com/chat?romeo@xmpp.example) +* [xmpp:name@muc.example.com?join](https://zachdecook.com/chat?xmpp:name@muc.example.com?join) ## Design decisions @@ -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; |