From e2c3841d0dbcf95e299c98f2f46d721d6a059579 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Fri, 7 May 2021 17:03:27 +0100 Subject: [PATCH] Add user profile picture to capabilities (#1694) --- .../unreleased/improve-user-profile-picture-capability.md | 7 +++++++ internal/http/services/owncloud/ocs/data/capabilities.go | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/improve-user-profile-picture-capability.md diff --git a/changelog/unreleased/improve-user-profile-picture-capability.md b/changelog/unreleased/improve-user-profile-picture-capability.md new file mode 100644 index 0000000000..97a0138932 --- /dev/null +++ b/changelog/unreleased/improve-user-profile-picture-capability.md @@ -0,0 +1,7 @@ +Enhancement: User profile picture capability + +Based on feedback in the new ownCloud web frontend we want to omit trying to render +user avatars images / profile pictures based on the backend capabilities. Now the +OCS communicates a corresponding value. + +https://github.com/cs3org/reva/pull/1694 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 8028030e55..dc9e4b7815 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -160,7 +160,8 @@ type CapabilitiesFilesSharingPublicExpireDate struct { // CapabilitiesFilesSharingUser TODO document type CapabilitiesFilesSharingUser struct { - SendMail ocsBool `json:"send_mail" xml:"send_mail" mapstructure:"send_mail"` + SendMail ocsBool `json:"send_mail" xml:"send_mail" mapstructure:"send_mail"` + ProfilePicture ocsBool `json:"profile_picture" xml:"profile_picture" mapstructure:"profile_picture"` } // CapabilitiesFilesSharingUserEnumeration TODO document