My partner has their own Nextcloud instance on their own server, and they're sharing their photos with me using the federated shares system that Nextcloud provides.
Using the generate-all command, previews for files shared in this manner are generated just fine. However, when a file in a share is changed, or an entirely new share is added, no new previews seem to be generated using the pre-generate command.
After some investigation, it seems that no entry about the newly added/changed file is even added into the oc_preview_generation table, which explains why no previews are being generated. Though I can't be sure, since I have little experience with the Nextcloud API, it seems like the NodeWrittenEvent that the preview generator listens to isn't being fired for files in federated shares.
My partner has their own Nextcloud instance on their own server, and they're sharing their photos with me using the federated shares system that Nextcloud provides.
Using the
generate-all
command, previews for files shared in this manner are generated just fine. However, when a file in a share is changed, or an entirely new share is added, no new previews seem to be generated using thepre-generate
command.After some investigation, it seems that no entry about the newly added/changed file is even added into the
oc_preview_generation
table, which explains why no previews are being generated. Though I can't be sure, since I have little experience with the Nextcloud API, it seems like theNodeWrittenEvent
that the preview generator listens to isn't being fired for files in federated shares.