diff --git a/apps/appstore/lib/Controller/ApiController.php b/apps/appstore/lib/Controller/ApiController.php index fb91cf04e116e..1ea6aa1073084 100644 --- a/apps/appstore/lib/Controller/ApiController.php +++ b/apps/appstore/lib/Controller/ApiController.php @@ -478,7 +478,6 @@ private function getAppsForCategory(string $requestedCategory = ''): array { 'active' => $this->appManager->isEnabledForUser($app['id']), 'needsDownload' => !$existsLocally, 'groups' => $groups, - 'fromAppStore' => true, 'appstoreData' => $app, ]; } diff --git a/apps/appstore/src/actions/actionInteract.ts b/apps/appstore/src/actions/actionInteract.ts index 452eadbf22a4c..901b3d2fdebb7 100644 --- a/apps/appstore/src/actions/actionInteract.ts +++ b/apps/appstore/src/actions/actionInteract.ts @@ -17,7 +17,7 @@ export const actionsInteract: AppAction[] = [ inline: false, label: () => t('appstore', 'Rate the app'), enabled(app: IAppstoreApp | IAppstoreExApp) { - return !!app.fromAppStore + return !app.shipped }, href(app: IAppstoreApp | IAppstoreExApp) { return `https://apps.nextcloud.com/apps/${encodeURIComponent(app.id)}#comments` diff --git a/apps/appstore/src/apps.d.ts b/apps/appstore/src/apps.d.ts index b645ed873076f..555ad045f33e3 100644 --- a/apps/appstore/src/apps.d.ts +++ b/apps/appstore/src/apps.d.ts @@ -69,7 +69,6 @@ interface IAppInfoData { * It is not available for non-appstore apps. */ interface IAppstoreMetadata { - fromAppStore: true /** List of appstore release information (e.g. changelog) */ releases: IAppstoreAppRelease[] /** The overall rating of the app */ diff --git a/apps/appstore/src/components/BadgeAppScore.vue b/apps/appstore/src/components/BadgeAppScore.vue index 44e13e813a952..71cb644616a17 100644 --- a/apps/appstore/src/components/BadgeAppScore.vue +++ b/apps/appstore/src/components/BadgeAppScore.vue @@ -15,7 +15,7 @@ const { app } = defineProps<{ app: IAppstoreApp | IAppstoreExApp }>() -const isShown = computed(() => app.ratingNumOverall && app.ratingNumOverall > 5) +const isShown = computed(() => !app.shipped && app.ratingNumOverall && app.ratingNumOverall > 5) const score = computed(() => app.ratingOverall ?? 4) const title = computed(() => {