Fix info.xml schema, purge empty dirs, update URLs
This commit is contained in:
+1
-1
@@ -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
|
||||
```
|
||||
|
||||
+4
-6
@@ -6,9 +6,10 @@
|
||||
<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>
|
||||
<version>1.0.0</version>
|
||||
<licence>agpl</licence>
|
||||
<author>Kyle</author>
|
||||
<licence>AGPL-3.0-or-later</licence>
|
||||
<author homepage="https://github.com/Mr-Newlove/nc_bot_webhooks/kyle">Kyle</author>
|
||||
<namespace>NCdiscordhook</namespace>
|
||||
<category>integration</category>
|
||||
|
||||
<dependencies>
|
||||
<nextcloud min-version="28" max-version="33"/>
|
||||
@@ -22,8 +23,5 @@
|
||||
<admin>OCA\NCdiscordhook\Settings\Admin</admin>
|
||||
</settings>
|
||||
|
||||
<category>integration</category>
|
||||
|
||||
<bugs-url>https://github.com/your-org/ncdiscordhook/issues</bugs-url>
|
||||
<source>https://github.com/your-org/ncdiscordhook</source>
|
||||
<bugs>https://github.com/Mr-Newlove/nc_bot_webhooks/issues</bugs>
|
||||
</info>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user