Fix info.xml schema, purge empty dirs, update URLs

This commit is contained in:
kyle
2026-06-10 14:37:04 -07:00
parent 640a3f4f27
commit 3bba599133
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ zip -r ../ncdiscdhook.zip .
```bash ```bash
cd /path/to/nextcloud/apps 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: # or copy the directory manually:
# cp -r /path/to/ncdiscordhook /path/to/nextcloud/apps/ncdiscordhook # cp -r /path/to/ncdiscordhook /path/to/nextcloud/apps/ncdiscordhook
``` ```
+4 -6
View File
@@ -6,9 +6,10 @@
<summary>Discord webhook bridge for Nextcloud Talk with image support</summary> <summary>Discord webhook bridge for Nextcloud Talk with image support</summary>
<description>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.</description> <description>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.</description>
<version>1.0.0</version> <version>1.0.0</version>
<licence>agpl</licence> <licence>AGPL-3.0-or-later</licence>
<author>Kyle</author> <author homepage="https://github.com/Mr-Newlove/nc_bot_webhooks/kyle">Kyle</author>
<namespace>NCdiscordhook</namespace> <namespace>NCdiscordhook</namespace>
<category>integration</category>
<dependencies> <dependencies>
<nextcloud min-version="28" max-version="33"/> <nextcloud min-version="28" max-version="33"/>
@@ -22,8 +23,5 @@
<admin>OCA\NCdiscordhook\Settings\Admin</admin> <admin>OCA\NCdiscordhook\Settings\Admin</admin>
</settings> </settings>
<category>integration</category> <bugs>https://github.com/Mr-Newlove/nc_bot_webhooks/issues</bugs>
<bugs-url>https://github.com/your-org/ncdiscordhook/issues</bugs-url>
<source>https://github.com/your-org/ncdiscordhook</source>
</info> </info>
+1 -1
View File
@@ -431,7 +431,7 @@ class TalkService {
// Clean up empty subdirectories // Clean up empty subdirectories
foreach ($folder->getDirectoryListing() as $node) { foreach ($folder->getDirectoryListing() as $node) {
if ($node instanceof Folder && $node->getFolderInfo() === null) { if ($node instanceof Folder && $node->getFolderInfo() === null) {
// Folder is empty, check if parent has content $node->delete();
} }
} }