aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-01 02:15:40 -0700
committerMario <mario@mariovavti.com>2017-11-01 12:13:21 +0100
commit12f33d2cd43502fb8ce7b3399a4c60e40c10f723 (patch)
treeea2ba25a44d332663b844011825e581587291e88 /include/zot.php
parent8467ecb1d7e71efb3d4fb016107b22a068642985 (diff)
downloadvolse-hubzilla-12f33d2cd43502fb8ce7b3399a4c60e40c10f723.tar.gz
volse-hubzilla-12f33d2cd43502fb8ce7b3399a4c60e40c10f723.tar.bz2
volse-hubzilla-12f33d2cd43502fb8ce7b3399a4c60e40c10f723.zip
Maria's profile photo issue, please push to master.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 37c3c1444..9bb25dd6f 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3649,6 +3649,7 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
$disallowed = array('id','aid','uid','guid');
foreach($arr['profile'] as $profile) {
+
$x = q("select * from profile where profile_guid = '%s' and uid = %d limit 1",
dbesc($profile['profile_guid']),
intval($channel['channel_id'])
@@ -3671,6 +3672,9 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
if(in_array($k,$disallowed))
continue;
+ if($profile['is_default'] && in_array($k,['photo','thumb']))
+ continue;
+
if($k === 'name')
$clean['fullname'] = $v;
elseif($k === 'with')