Skip to content

Commit 0f42f2d

Browse files
fix(dav): add missing search_supports_creation_time and search_supports_upload_time to Capabilities return type
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
1 parent 386240f commit 0f42f2d

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

apps/dav/lib/Capabilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ public function __construct(
1818
}
1919

2020
/**
21-
* @return array{dav: array{chunking: string, public_shares_chunking: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
21+
* @return array{dav: array{chunking: string, public_shares_chunking: bool, search_supports_creation_time: bool, search_supports_upload_time: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
2222
*/
2323
public function getCapabilities() {
2424
$capabilities = [
2525
'dav' => [
2626
'chunking' => '1.0',
2727
'public_shares_chunking' => true,
28+
'search_supports_creation_time' => true,
2829
'search_supports_upload_time' => true,
2930
]
3031
];

apps/dav/openapi.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"type": "object",
3131
"required": [
3232
"chunking",
33-
"public_shares_chunking"
33+
"public_shares_chunking",
34+
"search_supports_creation_time",
35+
"search_supports_upload_time"
3436
],
3537
"properties": {
3638
"chunking": {
@@ -39,6 +41,12 @@
3941
"public_shares_chunking": {
4042
"type": "boolean"
4143
},
44+
"search_supports_creation_time": {
45+
"type": "boolean"
46+
},
47+
"search_supports_upload_time": {
48+
"type": "boolean"
49+
},
4250
"bulkupload": {
4351
"type": "string"
4452
},

apps/files/src/components/FileEntry/FileEntryPreview.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
<FavoriteIcon v-once />
4040
</span>
4141

42+
<!-- Recently created icon -->
43+
<span v-else-if="isRecentView && isRecentlyCreated" class="files-list__row-icon-recently-created">
44+
<RecentlyCreatedIcon v-once />
45+
</span>
46+
4247
<OverlayIcon :is="fileOverlay"
4348
v-if="fileOverlay"
4449
class="files-list__row-icon-overlay files-list__row-icon-overlay--file" />
@@ -70,6 +75,7 @@ import PlayCircleIcon from 'vue-material-design-icons/PlayCircle.vue'
7075
7176
import CollectivesIcon from './CollectivesIcon.vue'
7277
import FavoriteIcon from './FavoriteIcon.vue'
78+
import RecentlyCreatedIcon from './RecentlyCreatedIcon.vue'
7379
7480
import { isLivePhoto } from '../../services/LivePhotos'
7581
import { useUserConfigStore } from '../../store/userconfig.ts'

openapi.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,9 @@
14841484
"type": "object",
14851485
"required": [
14861486
"chunking",
1487-
"public_shares_chunking"
1487+
"public_shares_chunking",
1488+
"search_supports_creation_time",
1489+
"search_supports_upload_time"
14881490
],
14891491
"properties": {
14901492
"chunking": {
@@ -1493,6 +1495,12 @@
14931495
"public_shares_chunking": {
14941496
"type": "boolean"
14951497
},
1498+
"search_supports_creation_time": {
1499+
"type": "boolean"
1500+
},
1501+
"search_supports_upload_time": {
1502+
"type": "boolean"
1503+
},
14961504
"bulkupload": {
14971505
"type": "string"
14981506
},

0 commit comments

Comments
 (0)