Skip to content

Commit 2451f65

Browse files
authored
Merge pull request #30316 from nextcloud/backport/30266/stable22
[stable22] Fix share owner not being displayed in sharing tab
2 parents e5a6584 + b4e238f commit 2451f65

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

apps/files_sharing/js/dist/files_sharing_tab.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/src/views/SharingTab.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ export default {
293293
// interval update
294294
this.expirationInterval = setInterval(this.updateExpirationSubtitle, 10000, share)
295295
}
296+
} else if (this.fileInfo && this.fileInfo.shareOwnerId !== undefined ? this.fileInfo.shareOwnerId !== OC.currentUser : false) {
297+
// Fallback to compare owner and current user.
298+
this.sharedWithMe = {
299+
displayName: this.fileInfo.shareOwner,
300+
title: t(
301+
'files_sharing',
302+
'Shared with you by {owner}',
303+
{ owner: this.fileInfo.shareOwner },
304+
undefined,
305+
{ escape: false }
306+
),
307+
user: this.fileInfo.shareOwnerId,
308+
}
296309
}
297310
},
298311

0 commit comments

Comments
 (0)