Can now get channels!

- Inject LoggerInterface across WebhookController, TalkService, and ImageCleanup
- Replace TalkService.getAvailableTalkRooms() OCS API calls with direct database queries
- Add getBaseUrl() helper to resolve localhost/SSRF constraints for internal API calls
- Update buildRichObject() to generate public link shares for file attachments
- Add saveBotPassword, debug, and debugTables endpoints to WebhookController
- Separate frontend assets (JS/CSS) from adminSettings template
- Add composer.json and autoload files for PSR-4 autoloading
- Update Admin settings to use TemplateResponse and register app icons
This commit is contained in:
kyle
2026-06-11 10:21:23 -07:00
parent 3bba599133
commit 3f51a8ca48
11 changed files with 832 additions and 360 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
// Generated autoload file for ncdiscordhook
// Provides PSR-4 autoloading for OCA\NCdiscordhook\
$baseDir = dirname(__DIR__);
spl_autoload_register(function ($class) use ($baseDir) {
// OCA\NCdiscordhook\ prefix
$prefix = 'OCA\\NCdiscordhook\\';
$prefixLen = strlen($prefix);
if (strncmp($class, $prefix, $prefixLen) !== 0) {
return;
}
$relativeClass = substr($class, $prefixLen);
$file = $baseDir . '/lib/' . str_replace('\\', '/', $relativeClass) . '.php';
if (file_exists($file)) {
require $file;
}
});
+10
View File
@@ -0,0 +1,10 @@
<?php
// autoload_psr4.php - generated manually for Nextcloud PSR-4 autoloading
$vendorDir = '';
$baseDir = dirname(__DIR__);
return [
'OCA\\NCdiscordhook\\' => [$baseDir . '/lib'],
];