From 3bba599133270e64c0c39d5076e65b0904e335d2 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 10 Jun 2026 14:37:04 -0700 Subject: [PATCH] Fix info.xml schema, purge empty dirs, update URLs --- INSTALL.md | 2 +- appinfo/info.xml | 10 ++++------ lib/Service/TalkService.php | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index d94165a..2bda7a1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -48,7 +48,7 @@ zip -r ../ncdiscdhook.zip . ```bash cd /path/to/nextcloud/apps -git clone https://github.com/your-org/ncdiscordhook.git +git clone https://github.com/Mr-Newlove/nc_bot_webhooks.git # or copy the directory manually: # cp -r /path/to/ncdiscordhook /path/to/nextcloud/apps/ncdiscordhook ``` diff --git a/appinfo/info.xml b/appinfo/info.xml index b237f10..980380a 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -6,9 +6,10 @@ Discord webhook bridge for Nextcloud Talk with image support Accepts Discord webhook-style JSON payloads and posts them into Nextcloud Talk rooms, preserving image attachments. Each room gets its own webhook URL with an auth token for security. 1.0.0 - agpl - Kyle + AGPL-3.0-or-later + Kyle NCdiscordhook + integration @@ -22,8 +23,5 @@ OCA\NCdiscordhook\Settings\Admin - integration - - https://github.com/your-org/ncdiscordhook/issues - https://github.com/your-org/ncdiscordhook + https://github.com/Mr-Newlove/nc_bot_webhooks/issues diff --git a/lib/Service/TalkService.php b/lib/Service/TalkService.php index 76a3354..acb2a53 100644 --- a/lib/Service/TalkService.php +++ b/lib/Service/TalkService.php @@ -431,7 +431,7 @@ class TalkService { // Clean up empty subdirectories foreach ($folder->getDirectoryListing() as $node) { if ($node instanceof Folder && $node->getFolderInfo() === null) { - // Folder is empty, check if parent has content + $node->delete(); } }