From a53f01bacca156390799c94912264675fe0e47d8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 14 Apr 2018 08:03:15 +0000 Subject: [PATCH] Update the "photo" and "thumb" field in the "profile" table --- src/Model/Contact.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 644662e4ec..eeecac1465 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -220,6 +220,11 @@ class Contact extends BaseObject // Update the public contact as well dba::update('contact', $fields, ['uid' => 0, 'nurl' => $self['nurl']]); + + // Update the profile + $fields = ['photo' => System::baseUrl() . '/photo/profile/' .$uid . '.jpg', + 'thumb' => System::baseUrl() . '/photo/avatar/' . $uid .'.jpg']; + dba::update('profile', $fields, ['uid' => $uid, 'is-default' => true]); } }