Improvement of the RSS export with the addition of the image as a logo if it exists - Issue #1653

This commit is contained in:
Laurent GAY
2025-07-02 15:37:39 +02:00
committed by setop
parent fc41d3c4bd
commit 289128dbdb
3 changed files with 108 additions and 1 deletions

View File

@@ -163,6 +163,18 @@ defmodule Mobilizon.Service.Export.Feed do
|> Entry.content({:cdata, description}, type: "html")
|> Entry.published(event.publish_at || event.inserted_at)
entry =
if is_nil(event.picture) do
entry
else
entry
|> Entry.link(event.picture.file.url,
rel: "enclosure",
type: event.picture.file.content_type,
length: event.picture.file.size
)
end
# Add tags
entry =
event.tags