[verified] fix Nextcloud comment action loading

This commit is contained in:
2026-09-19 08:29:09 +00:00
parent 1206e8d332
commit 56df1251b9
7 changed files with 23 additions and 8 deletions
+3 -1
View File
@@ -19,7 +19,7 @@ npm test
npm run build
```
The production entry is generated as `js/korean_comments_action-main.mjs`. `Util::addInitScript(Application::APP_ID, 'main')` resolves that app-prefixed asset.
The production entry is generated as `js/korean_comments_action-main.mjs`. The listener therefore calls `Util::addInitScript(Application::APP_ID, Application::APP_ID . '-main')`; passing only `'main'` would incorrectly resolve the nonexistent `js/main.mjs`.
## Deployment commands (not run during this investigation)
@@ -29,6 +29,8 @@ Copy the app directory to `/data/nextcloud/app/custom_apps/korean_comments_actio
php occ app:enable korean_comments_action
```
The app declares the `filesystem` type so its Files event listener is registered early. When upgrading from a build that lacked this type, disable and re-enable the app once so Nextcloud refreshes the persisted app type before restarting the app container.
Disable/rollback with:
```bash