File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
apps/files_trashbin/lib/Sabre Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ class TrashbinPlugin extends ServerPlugin {
4141 public const TRASHBIN_ORIGINAL_LOCATION = '{http://nextcloud.org/ns}trashbin-original-location ' ;
4242 public const TRASHBIN_DELETION_TIME = '{http://nextcloud.org/ns}trashbin-deletion-time ' ;
4343 public const TRASHBIN_TITLE = '{http://nextcloud.org/ns}trashbin-title ' ;
44+ public const TRASHBIN_DELETED_BY_ID = '{http://nextcloud.org/ns}trashbin-deleted-by-id ' ;
45+ public const TRASHBIN_DELETED_BY_DISPLAY_NAME = '{http://nextcloud.org/ns}trashbin-deleted-by-display-name ' ;
4446
4547 /** @var Server */
4648 private $ server ;
@@ -83,6 +85,14 @@ public function propFind(PropFind $propFind, INode $node) {
8385 return $ node ->getDeletionTime ();
8486 });
8587
88+ $ propFind ->handle (self ::TRASHBIN_DELETED_BY_ID , function () use ($ node ) {
89+ return $ node ->getDeletedBy ()?->getUID();
90+ });
91+
92+ $ propFind ->handle (self ::TRASHBIN_DELETED_BY_DISPLAY_NAME , function () use ($ node ) {
93+ return $ node ->getDeletedBy ()?->getDisplayName();
94+ });
95+
8696 $ propFind ->handle (FilesPlugin::SIZE_PROPERTYNAME , function () use ($ node ) {
8797 return $ node ->getSize ();
8898 });
You can’t perform that action at this time.
0 commit comments