mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #30314 from nextcloud/backport/30266/stable21
This commit is contained in:
commit
f31369af13
3 changed files with 15 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -291,6 +291,19 @@ export default {
|
|||
// interval update
|
||||
this.expirationInterval = setInterval(this.updateExpirationSubtitle, 10000, share)
|
||||
}
|
||||
} else if (this.fileInfo && this.fileInfo.shareOwnerId !== undefined ? this.fileInfo.shareOwnerId !== OC.currentUser : false) {
|
||||
// Fallback to compare owner and current user.
|
||||
this.sharedWithMe = {
|
||||
displayName: this.fileInfo.shareOwner,
|
||||
title: t(
|
||||
'files_sharing',
|
||||
'Shared with you by {owner}',
|
||||
{ owner: this.fileInfo.shareOwner },
|
||||
undefined,
|
||||
{ escape: false }
|
||||
),
|
||||
user: this.fileInfo.shareOwnerId,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue