jdev - 2022-09-02


  1. MattJ

    adx: https://xmpp.org/extensions/xep-0355.html

  2. MattJ

    https://modules.prosody.im/mod_delegation.html

  3. goffi

    XEP-0442 is actually MAM to retrieve pubsub items, not the same as MAM for <message/>.

  4. 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

  5. MattJ

    I think we had discussed possibly having search.jabber.network provide badges at some point

  6. MattJ

    I can't see that it's implemented though

  7. Link Mauve

    flow, Prosody has mod_muc_badge.

  8. MattJ

    I didn't suggest that as I suspect conference.igniterealtime.org isn't running Prosody (but you never know!)

  9. Link Mauve

    Ah right.

  10. MattJ

    flow, <img src="https://search.jabber.network/api/1.0/badge?address=smack@conference.igniterealtime.org">

  11. flow

    \o/

  12. flow

    the placement of the participant counter, 7 in this case, seems a bit off

  13. flow

    but better than nothing :)

  14. Martin

    Floating average as the s.j.n also uses?

  15. MattJ

    flow, https://github.com/horazont/muchopper/blob/main/muchopper/web/templates/badge.svg?short_path=9e9799f

  16. Martin

    Ah, the placement, not the counter itself. *facepalm*

  17. Link Mauve

    I quite dislike the text@textLength render, at least in Firefox.

  18. Link Mauve

    It seems to assume a specific character width which is quite wrong with most text.

  19. Link Mauve

    When I remove this attribute, the spacing between characters becomes much nicer.

  20. 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.

  21. 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

  22. 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.