Bug 496306 - Images are not rendering in blog posts cross-posted to discuss.kde.org
Summary: Images are not rendering in blog posts cross-posted to discuss.kde.org
Status: REPORTED
Alias: None
Product: discuss.kde.org
Classification: Websites
Component: General (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KDE Forum Administrators
URL: https://discuss.kde.org/t/conclusion-...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-15 15:42 UTC by Roke Julian Lockhart Beedell
Modified: 2024-11-15 22:17 UTC (History)
3 users (show)

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


Attachments
An archive-compressed version of a static representation of the issue. (1.88 MB, application/zip)
2024-11-15 15:42 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2024-11-15 15:42:48 UTC
Created attachment 175844 [details]
An archive-compressed version of a static representation of the issue.

SUMMARY
-------

Images are not rendering in blog posts cross-posted to [`discuss.kde.org`][1] (by [`thisweekinkdeapps`][2] and [`konqi`][3]).

[1]: https://discuss.kde.org/c/community/blogs/24
[2]: https://discuss.kde.org/u/thisweekinkdeapps/activity
[3]: https://discuss.kde.org/u/konqi/activity

STEPS TO REPRODUCE
------------------

Visit https://discuss.kde.org/t/conclusion-of-kde-and-google-summer-of-code-2024/25560?u=rokejulianlockhart.

OBSERVED RESULT
---------------

As the undermentioned demonstrate, the images are not rendering:

1. https://discuss.kde.org/t/conclusion-of-kde-and-google-summer-of-code-2024/25560/2?u=rokejulianlockhart
2. https://discuss.kde.org/t/krita-monthly-update-edition-20/25495/2?u=rokejulianlockhart
3. https://discuss.kde.org/t/this-week-in-kde-apps-adopt-an-app-kde-blogs/25328/2?u=rokejulianlockhart

This renders some articles nigh unreadable.

EXPECTED RESULT
---------------

The images should render inline, or, at least, fall back to URIs.

SOFTWARE/OS VERSIONS
--------------------

> ```YAML
> Operating System: Fedora Linux 41
> KDE Plasma Version: 6.2.3
> KDE Frameworks Version: 6.8.0
> Qt Version: 6.8.0
> Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
> Memory: 30.4 GiB of RAM
> Graphics Processor: AMD Radeon RX 5700
> Manufacturer: ASRock
> Product Name: X670E Taichi
> ```

ADDITIONAL INFORMATION
----------------------

I presume that these errors exist because this implementation is quite new, per https://invent.kde.org/websites/blogs-kde-org/-/issues/1#note_886803?
Comment 1 Roke Julian Lockhart Beedell 2024-11-15 15:43:47 UTC
(In reply to Roke Julian Lockhart Beedell from comment #0)
I presume that due to the age of https://bugs.kde.org/show_bug.cgi?id=372194#c1, it doesn't apply here?
Comment 2 Ben Cooksley 2024-11-15 17:42:58 UTC
Carl, any ideas who is running the Konqi bot?

The missing images aren't even linked - they're actually completely removed from the original material.
Comment 3 Phu H. Nguyen 2024-11-15 22:17:59 UTC
The issue is that links of those missing images are made as relative, so even though they show up fine on their original sites, when those posts containing those image links are passed to other sites via RSS, the "base URL" is different, and those relative links become invalid. And Discuss uses RSS feeds to get posts from other sites. You can also see the same missing images on planet.k.o.

Now, all those sites with missing images we are talking about here use the same Hugo RSS template. And that RSS template is still doing the (maybe) simplest way: it doesn't try to be smart and decide for the authors where they want their image links to be relative to, it just expects that image links are absolute, i.e. it keeps links the same with no modification. So, the solution here IMO is to fix the links on their source posts.