diff --git a/README.md b/README.md index 031a6fab..fa63c95b 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Memories is a photo management app for Nextcloud with advanced features includin - **✏️ Edit Metadata**: Edit Exif dates on photos quickly and easily. - **📦 Archive**: Store photos you don't want to see in your timeline in a separate folder. - **📷 RAW Support**: View RAW photos from your camera with the [Camera RAW Previews](https://apps.nextcloud.com/apps/camerarawpreviews) app. +- **🫱🏻‍🫲🏻 External Sharing**: Share photos and videos with people outside of your Nextcloud instance. - **⚡️ Fast**: Memories is extremely fast. Period. More details below. To get an idea of what memories looks and feels like, check out the [public demo](https://memories-demo.radialapps.com/apps/memories/). Note that the demo is read-only and may be slow since it runs in a low-end free tier VM provided by [Oracle Cloud](https://www.oracle.com/cloud/free/). Photo credits go to [Unsplash](https://unsplash.com/) (for individual credits, refer to each folder). diff --git a/appinfo/info.xml b/appinfo/info.xml index 408da216..548e267e 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -19,6 +19,7 @@ Memories is a photo management app for Nextcloud with advanced features includin - **✏️ Edit Metadata**: Edit Exif dates on photos quickly and easily. - **📦 Archive**: Store photos you don't want to see in your timeline in a separate folder. - **📷 RAW Support**: View RAW photos from your camera with the [Camera RAW Previews](https://apps.nextcloud.com/apps/camerarawpreviews) app. +- **🫱🏻‍🫲🏻 External Sharing**: Share photos and videos with people outside of your Nextcloud instance. - **⚡️ Fast**: Memories is extremely fast. Period. To get an idea of what memories looks and feels like, check out the [public demo](https://memories-demo.radialapps.com/apps/memories/). Note that the demo is read-only and may be slow since it runs in a low-end free tier VM provided by [Oracle Cloud](https://www.oracle.com/cloud/free/). Photo credits go to [Unsplash](https://unsplash.com/) (for individual credits, refer to each folder). diff --git a/lib/Db/AddMissingIndices.php b/lib/Db/AddMissingIndices.php index 828904e8..67b64422 100644 --- a/lib/Db/AddMissingIndices.php +++ b/lib/Db/AddMissingIndices.php @@ -13,7 +13,7 @@ class AddMissingIndices * @param SchemaWrapper $schema Schema wrapper * @param null|Connection $connection Connection to db */ - public static function run(SchemaWrapper &$schema, $connection) + public static function run(SchemaWrapper $schema, $connection) { // Should migrate at end $shouldMigrate = false; diff --git a/src/services/Viewer.ts b/src/services/Viewer.ts index 35c0cfcf..dd24c8d1 100644 --- a/src/services/Viewer.ts +++ b/src/services/Viewer.ts @@ -65,9 +65,14 @@ export class ViewerManager { return; } + // Check viewer > 2.0.0 + const viewerVersion: string = globalThis.OCA.Viewer.version; + const viewerMajor = Number(viewerVersion.split(".")[0]); + // Open Nextcloud viewer globalThis.OCA.Viewer.open({ fileInfo: fInfo, + path: viewerMajor < 2 ? fInfo.filename : undefined, // Only specify path upto Nextcloud 24 list: fileInfos, // file list canLoop: false, // don't loop onClose: () => {