fix(appstore): do not offer rating apps not on appstore

Shipped apps are no longer published to the appstore,
so it makes no sense to offer rating them.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-05-13 17:48:25 +02:00
parent 0a24ae518f
commit b441a77a1c
No known key found for this signature in database
GPG key ID: 7E849AE05218500F
4 changed files with 2 additions and 4 deletions

View file

@ -478,7 +478,6 @@ class ApiController extends OCSController {
'active' => $this->appManager->isEnabledForUser($app['id']),
'needsDownload' => !$existsLocally,
'groups' => $groups,
'fromAppStore' => true,
'appstoreData' => $app,
];
}

View file

@ -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`

View file

@ -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 */

View file

@ -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(() => {