[verified] fix Nextcloud comment action loading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user