Re: [prosody-dev] [PATCH] mod_muc_badge: If room has no title use localpart of room's jid (fixes #1767)

2022-08-04 Thread 'Kim Alvefur' via prosody-dev
On Wed, Aug 03, 2022 at 12:10:57AM +0200, Bernhard Geier wrote: Rooms may have a title/name, but they do not have to. A JID is enough. When trying to get the badge for a room without a title, mod_muc_badge throws a HTTP error 500 (with Lua 5.1) or shows a "nil" label in the SVG badge (with

[prosody-dev] [PATCH] mod_muc_badge: If room has no title use localpart of room's jid (fixes #1767)

2022-08-04 Thread Bernhard Geier
Rooms may have a title/name, but they do not have to. A JID is enough. When trying to get the badge for a room without a title, mod_muc_badge throws a HTTP error 500 (with Lua 5.1) or shows a "nil" label in the SVG badge (with Lua 5.2). This patch uses this JID's localpart if a room has no