Merge pull request #60459 from nextcloud/backport/60360/stable34

[stable34] fix(appstore): do not offer rating apps not on appstore
This commit is contained in:
Andy Scherzinger 2026-05-29 09:15:02 +02:00 committed by GitHub
commit 7c7900f82b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4 additions and 6 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(() => {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long