-
MattJ
adx: https://xmpp.org/extensions/xep-0355.html
-
MattJ
https://modules.prosody.im/mod_delegation.html
-
goffi
XEP-0442 is actually MAM to retrieve pubsub items, not the same as MAM for <message/>.
-
flow
anyone aware of an alternative to JC's inverse MUC badges (for e.g., github READMEs)? Smack uses https://inverse.chat/badge.svg?room=smack@conference.igniterealtime.org but that appears to be broken since a while
-
MattJ
I think we had discussed possibly having search.jabber.network provide badges at some point
-
MattJ
I can't see that it's implemented though
-
Link Mauve
flow, Prosody has mod_muc_badge.
-
MattJ
I didn't suggest that as I suspect conference.igniterealtime.org isn't running Prosody (but you never know!)
-
Link Mauve
Ah right.
-
MattJ
flow, <img src="https://search.jabber.network/api/1.0/badge?address=smack@conference.igniterealtime.org">
-
flow
\o/
-
flow
the placement of the participant counter, 7 in this case, seems a bit off
-
flow
but better than nothing :)
-
Martin
Floating average as the s.j.n also uses?
-
MattJ
flow, https://github.com/horazont/muchopper/blob/main/muchopper/web/templates/badge.svg?short_path=9e9799f
-
Martin
Ah, the placement, not the counter itself. *facepalm*
-
Link Mauve
I quite dislike the text@textLength render, at least in Firefox.
-
Link Mauve
It seems to assume a specific character width which is quite wrong with most text.
-
Link Mauve
When I remove this attribute, the spacing between characters becomes much nicer.
-
Link Mauve
But of course, aside from JavaScript (and even then?) there is no way to adapt the background width to the rendered text width.
-
Zash
Multiply by something that ought to give some margins, then cry when people stuff in a 300 code point emoji sequence that turns into a single glyph
-
Link Mauve
The one solution I could see, would be to run something like harfbuzz on the server, get the extents, and then generate the SVG hoping the client will use the same font as you did.