aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-13 14:12:58 +0200
committerMax Kostikov <max@kostikov.co>2019-04-13 14:12:58 +0200
commited902fdb703103944494e5c70ae354087c2208ad (patch)
treed0791b5dc506273fafa5a94b450e802616f09305 /Zotlabs/Module
parent509067391b9e2b167827a7b999cb5ef455ac68d6 (diff)
downloadvolse-hubzilla-ed902fdb703103944494e5c70ae354087c2208ad.tar.gz
volse-hubzilla-ed902fdb703103944494e5c70ae354087c2208ad.tar.bz2
volse-hubzilla-ed902fdb703103944494e5c70ae354087c2208ad.zip
Update photo usage only for thumbnails
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Profile_photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index ab3f997bd..9f1928e52 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -372,7 +372,7 @@ class Profile_photo extends \Zotlabs\Web\Controller {
$edited = datetime_convert();
- $x = q("UPDATE photo SET photo_usage = %d, edited = '%s' WHERE uid = %d AND resource_id = '%s'",
+ $x = q("UPDATE photo SET photo_usage = %d, edited = '%s' WHERE uid = %d AND resource_id = '%s' AND imgscale > 0",
intval(PHOTO_PROFILE),
dbescdate($edited),
intval(local_channel()),