fix: issue #7 with broken macro renderings for photo archive and tag cloud

This commit is contained in:
2026-07-05 14:11:12 +02:00
parent 28398b17f4
commit 8e60fe31a5
13 changed files with 503 additions and 41 deletions

View File

@@ -132,6 +132,12 @@ defmodule BDS.Media.Sidecars do
|> Media.changeset(attrs)
|> Repo.insert_or_update!()
Linking.restore_post_links(
project.id,
media.id,
DocumentFields.get(sidecar.fields, "linkedPostIds", [])
)
if Keyword.get(opts, :sync_search, true) do
:ok = Search.sync_media(media)
end