summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-01-09 17:29:00 +0100
committerGeorg Ehrke <developer@georgehrke.com>2020-01-09 17:29:00 +0100
commit2f89f5fd13334506ee5f137697149a237f1c2919 (patch)
tree8d66f4ea3cdc94d600a7ebd62e433dab71912a98 /lib
parent31c74e87c88ecd8ac92e9cb40797162735cd25b1 (diff)
downloadnextcloud-server-2f89f5fd13334506ee5f137697149a237f1c2919.tar.gz
nextcloud-server-2f89f5fd13334506ee5f137697149a237f1c2919.zip
AppFetcher: Distinguish between fileName and endpointName
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php1
-rw-r--r--lib/private/App/AppStore/Fetcher/CategoryFetcher.php1
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php4
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index 456b07190fb..d6affe4f09b 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -68,6 +68,7 @@ class AppFetcher extends Fetcher {
);
$this->fileName = 'apps.json';
+ $this->endpointName = 'apps.json';
$this->compareVersion = $compareVersion;
$this->ignoreMaxVersion = true;
}
diff --git a/lib/private/App/AppStore/Fetcher/CategoryFetcher.php b/lib/private/App/AppStore/Fetcher/CategoryFetcher.php
index 904c401c153..7fd3969cd04 100644
--- a/lib/private/App/AppStore/Fetcher/CategoryFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/CategoryFetcher.php
@@ -53,5 +53,6 @@ class CategoryFetcher extends Fetcher {
$logger
);
$this->fileName = 'categories.json';
+ $this->endpointName = 'categories.json';
}
}
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index 76a37bfa7de..224ed7d1f0d 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -55,6 +55,8 @@ abstract class Fetcher {
/** @var string */
protected $fileName;
/** @var string */
+ protected $endpointName;
+ /** @var string */
protected $version;
/** @var string */
protected $channel;
@@ -219,6 +221,6 @@ abstract class Fetcher {
}
protected function getEndpoint(): string {
- return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->fileName;
+ return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->endpointName;
}
}