aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/appinfo
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-03-02 21:33:02 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2024-03-07 22:40:30 +0100
commitfa14daf9680bc0697376d966af4c4c79fa294934 (patch)
tree8a9d340ca9ef1c0e74edea4f414b3dec269df85a /apps/updatenotification/appinfo
parentd9d3448e237abbf6ba676cacb985ef43cf6d4b41 (diff)
downloadnextcloud-server-fa14daf9680bc0697376d966af4c4c79fa294934.tar.gz
nextcloud-server-fa14daf9680bc0697376d966af4c4c79fa294934.zip
feat(updatenotification): Add notification for users when apps are updated
* Open app changelog dialog when available (webui) * Fallback to open changelog page for mobile clients Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/updatenotification/appinfo')
-rw-r--r--apps/updatenotification/appinfo/info.xml4
-rw-r--r--apps/updatenotification/appinfo/routes.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/updatenotification/appinfo/info.xml b/apps/updatenotification/appinfo/info.xml
index 0df6ca8310f..dc150962786 100644
--- a/apps/updatenotification/appinfo/info.xml
+++ b/apps/updatenotification/appinfo/info.xml
@@ -3,8 +3,8 @@
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>updatenotification</id>
<name>Update notification</name>
- <summary>Displays update notifications for Nextcloud and provides the SSO for the updater.</summary>
- <description>Displays update notifications for Nextcloud and provides the SSO for the updater.</description>
+ <summary>Displays update notifications for Nextcloud, app updates, and provides the SSO for the updater.</summary>
+ <description>Displays update notifications for Nextcloud, app updates, and provides the SSO for the updater.</description>
<version>1.19.0</version>
<licence>agpl</licence>
<author>Lukas Reschke</author>
diff --git a/apps/updatenotification/appinfo/routes.php b/apps/updatenotification/appinfo/routes.php
index c6b823fd5ff..63f4e9c4971 100644
--- a/apps/updatenotification/appinfo/routes.php
+++ b/apps/updatenotification/appinfo/routes.php
@@ -27,8 +27,11 @@ return [
'routes' => [
['name' => 'Admin#createCredentials', 'url' => '/credentials', 'verb' => 'GET'],
['name' => 'Admin#setChannel', 'url' => '/channel', 'verb' => 'POST'],
+ // Fallback app changelog information for mobile clients
+ ['name' => 'Changelog#showChangelog', 'url' => '/changelog/{app}', 'verb' => 'GET'],
],
'ocs' => [
['name' => 'API#getAppList', 'url' => '/api/{apiVersion}/applist/{newVersion}', 'verb' => 'GET', 'requirements' => ['apiVersion' => '(v1)']],
+ ['name' => 'API#getAppChangelogEntry', 'url' => '/api/{apiVersion}/changelog/{appId}', 'verb' => 'GET', 'requirements' => ['apiVersion' => '(v1)']],
],
];