mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-28 17:07:16 +00:00
Add external flag for apps without owner
Expose an `external` property in AppSummary (toAppSummary in RecommendedAppsService.ts) to mark apps that are not owned by a Puter user. The flag is set when `owner_user_id` is null or an empty string, allowing clients to identify origin-bootstrapped/external apps.
This commit is contained in:
@@ -74,5 +74,8 @@ function toAppSummary(
|
||||
godmode: Boolean(app.godmode),
|
||||
maximize_on_start: Boolean(app.maximize_on_start),
|
||||
index_url: app.index_url,
|
||||
// An app with no owner isn't owned by a Puter user — it's an
|
||||
// "external" (origin-bootstrapped) app.
|
||||
external: app.owner_user_id == null || app.owner_user_id === '',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user