return calendar node name as push topic
This commit is contained in:
parent
c9d4285af4
commit
5e24706796
1 changed files with 7 additions and 6 deletions
|
@ -27,12 +27,13 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace OCA\DavPush\Dav;
|
namespace OCA\DavPush\Dav;
|
||||||
|
|
||||||
|
use OCA\DavPush\Transport\TransportManager;
|
||||||
|
|
||||||
use OCP\IUser;
|
use OCP\IUser;
|
||||||
use OCP\IUserSession;
|
use OCP\IUserSession;
|
||||||
|
|
||||||
use OCP\AppFramework\Db\DoesNotExistException;
|
use OCP\AppFramework\Db\DoesNotExistException;
|
||||||
use OCA\DAV\Connector\Sabre\Node;
|
use OCA\DAV\CalDAV\Calendar;
|
||||||
use OCA\DavPush\Transport\TransportManager;
|
|
||||||
|
|
||||||
use Sabre\DAV\INode;
|
use Sabre\DAV\INode;
|
||||||
use Sabre\DAV\PropFind;
|
use Sabre\DAV\PropFind;
|
||||||
|
@ -61,9 +62,9 @@ class ServiceDetectionPlugin extends ServerPlugin {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (!($node instanceof Node)) {
|
if (!($node instanceof Calendar)) {
|
||||||
// return;
|
return;
|
||||||
//}
|
}
|
||||||
|
|
||||||
$propFind->handle(
|
$propFind->handle(
|
||||||
self::PROPERTY_PUSH_TRANSPORTS,
|
self::PROPERTY_PUSH_TRANSPORTS,
|
||||||
|
@ -101,7 +102,7 @@ class ServiceDetectionPlugin extends ServerPlugin {
|
||||||
|
|
||||||
// return "test-return-push";
|
// return "test-return-push";
|
||||||
//},
|
//},
|
||||||
"test-return-push-topic"
|
$node->getName()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue