nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
455 stars 57 forks source link

Federated shares seem to be ignored #248

Open Ellpeck opened 3 years ago

Ellpeck commented 3 years ago

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.