https://bugs.kde.org/show_bug.cgi?id=523316

Joshua Goins <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/netw |https://invent.kde.org/netw
                   |ork/tokodon/-/commit/84e88b |ork/tokodon/-/commit/07a673
                   |907ef50fc42edc2fbb9a1ce71dc |c9e6bca620c60d4be4499651d8f
                   |5f7cd58                     |51ec696

--- Comment #3 from Joshua Goins <[email protected]> ---
Git commit 07a673c9e6bca620c60d4be4499651d8f51ec696 by Joshua Goins, on behalf
of Asish Kumar.
Committed on 11/11/2026 at 14:07.
Pushed by redstrate into branch 'release/26.12'.

Show notification text as plain text instead of raw post HTML

Post content and profile bios are HTML as delivered by the server, but
they were passed unchanged to KNotification::setText(). Notification
servers only understand a small markup subset, so markup such as <p> and
<a> was displayed literally in the popup for mentions, favorites, boosts,
follows and similar notifications.

Add TextHandler::notificationText(), which strips the HTML and escapes the
remaining text so characters like '<' and '&' are still displayed
literally, and use it for the post and bio bodies. Cover it with a test.
(cherry picked from commit 84e88b907ef50fc42edc2fbb9a1ce71dc5f7cd58)

M  +3    -2    src/account/notificationhandler.cpp
M  +22   -0    src/autotests/texthandlertest.cpp
M  +5    -0    src/utils/texthandler.cpp
M  +11   -0    src/utils/texthandler.h

https://invent.kde.org/network/tokodon/-/commit/07a673c9e6bca620c60d4be4499651d8f51ec696

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to