Bug 469593 - Website links are resolved inside code blocks
Summary: Website links are resolved inside code blocks
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: 23.08.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-10 18:31 UTC by Akseli Lahtinen
Modified: 2024-03-05 14:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screnshot of the code block trying to resolve a website link (26.30 KB, image/png)
2023-05-10 18:31 UTC, Akseli Lahtinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Akseli Lahtinen 2023-05-10 18:31:16 UTC
Created attachment 158839 [details]
Screnshot of the code block trying to resolve a website link

SUMMARY

When having a codeblock with a link to a website, Neochat tries to resolve it and adds html tags.

You can test it with this codeblock for example:

```cmake

find_package(raylib QUIET)
if (NOT raylib_FOUND)
    include(FetchContent)
    FetchContent_Declare(
            raylib
            GIT_REPOSITORY https://github.com/raysan5/raylib.git
            GIT_TAG 4.5.0
    )
    FetchContent_MakeAvailable(raylib)
endif ()
```

STEPS TO REPRODUCE
1. Copy the above codeblock
2. Paste it in chat and send it

OBSERVED RESULT
Website link gets <a href... etc tags around it

EXPECTED RESULT
No extra items would be added

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.14-300.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 1 Justin Zobel 2023-08-05 14:29:28 UTC
I can't reproduce this issue with 23.07.80, can you please confirm the issues still exists?
Comment 2 Bug Janitor Service 2023-08-20 03:45:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-09-04 03:45:23 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 Konrad H 2024-03-05 14:41:16 UTC
This issue persists for me on neochat 23.08.5 (Arch Linux), I can reproduce it as simple as sending a message containing "`https://example.com`", which is then displayed as a message that reads <a href="http://example.com">http://example.com</a>.

The same message shows fine on Element, so this appears to merely be a display bug.

Happy to provide further debug info as needed.
Comment 5 Tobias Fella 2024-03-05 14:49:18 UTC
This is fixed in 24.02