aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-09 14:28:41 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-09 14:28:41 +0200
commit04935f139d924514b066a3cbe3a544102090de59 (patch)
tree116cbb9bff65d5a776d913cefc25bd5ad0c6f09b /include/channel.php
parent52284623631515b5e0792074f5334c67e6158ec5 (diff)
downloadvolse-hubzilla-04935f139d924514b066a3cbe3a544102090de59.tar.gz
volse-hubzilla-04935f139d924514b066a3cbe3a544102090de59.tar.bz2
volse-hubzilla-04935f139d924514b066a3cbe3a544102090de59.zip
fix xchan_query() for anon comments
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index 296f84c7b..5f87e587c 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2748,7 +2748,7 @@ function anon_identity_init($reqvars) {
$photo = z_root() . '/' . get_default_profile_photo(300);
$photos = import_xchan_photo($photo,$hash);
- $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'unknown' ",
+ $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_guid = '%s' and xchan_hash = '%s' and xchan_network = 'anon' ",
dbesc(datetime_convert()),
dbesc($photos[0]),
dbesc($photos[1]),