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

Joshua Goins <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/tokodon/-/commit/84e88b
                   |                            |907ef50fc42edc2fbb9a1ce71dc
                   |                            |5f7cd58
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Joshua Goins <[email protected]> ---
Git commit 84e88b907ef50fc42edc2fbb9a1ce71dc5f7cd58 by Joshua Goins, on behalf
of Asish Kumar.
Committed on 11/11/2026 at 13:52.
Pushed by redstrate into branch 'master'.

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.

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/84e88b907ef50fc42edc2fbb9a1ce71dc5f7cd58

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

Reply via email to