File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,19 @@ public function createCardFromUser(IUser $user) {
6060
6161 $ publish = false ;
6262
63+ if ($ image !== null && isset ($ userData [AccountManager::PROPERTY_AVATAR ])) {
64+ $ userData [AccountManager::PROPERTY_AVATAR ]['value ' ] = true ;
65+ }
66+
6367 foreach ($ userData as $ property => $ value ) {
6468
6569 $ shareWithTrustedServers =
6670 $ value ['scope ' ] === AccountManager::VISIBILITY_CONTACTS_ONLY ||
6771 $ value ['scope ' ] === AccountManager::VISIBILITY_PUBLIC ;
6872
6973 $ emptyValue = !isset ($ value ['value ' ]) || $ value ['value ' ] === '' ;
70- $ noImage = $ image === null ;
7174
72- if ($ shareWithTrustedServers && ( !$ emptyValue || ! $ noImage ) ) {
75+ if ($ shareWithTrustedServers && !$ emptyValue ) {
7376 $ publish = true ;
7477 switch ($ property ) {
7578 case AccountManager::PROPERTY_DISPLAYNAME :
You can’t perform that action at this time.
0 commit comments