Howto enable old gallery in 19.0.2

At previous version I manage to enable old gallery with
sudo -u www-data php /var/www/nextcloud/occ app:enable gallery

Is there any way to enable it to newest version?

Problem is that new photos app does not support public shares for photo folders. Also old shared links wont work with it. Looks also that foru threads consediring this are closed. For me it looks that photos is just trash and users and developers know it but someone wants mute all conversasion of that topic.

Now I find some old conversations and I manage to glue solution for this. For future notice to people who also need make gallery great again:

First you need replace
/apps/gallery/js/vendor/dompurify/src/purify.js
with this:
https://raw.githubusercontent.com/cure53/DOMPurify/1.0.11/dist/purify.js

And then edit this
/var/www/nextcloud/apps/gallery/appinfo/info.xml
and bump that max-version to 666 or something suitable version.
and then
sudo -u www-data php /var/www/nextcloud/occ app:enable gallery

After that it can (or not) take some minutes that nc will reindex images.

ps. If you believe that they will not make that Photos usable before version 666 you can use 999 :wink:

Hi, thanks for this, I tried it on nextcloud 20.0.4, but an error keep show up in the log everytime I open gallery app: “Exception: The owner has placed a restriction or the storage location is unavailable”. I can’t find anything online, do I have to do something else?

EDIT: I solved it, I just rescanned files with: occ files:scan --all