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
|
```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
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user