aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-02 00:19:04 -0700
committerfriendica <info@friendica.com>2012-11-02 00:19:04 -0700
commit83cf11dd956c0fbb84c1c50c643b43a3824dc6da (patch)
tree72ef390c3529b82698cc1d2466109a32bdedf4f3 /include/zot.php
parent37653a376085e7f155ec101b937583f5d08012cc (diff)
downloadvolse-hubzilla-83cf11dd956c0fbb84c1c50c643b43a3824dc6da.tar.gz
volse-hubzilla-83cf11dd956c0fbb84c1c50c643b43a3824dc6da.tar.bz2
volse-hubzilla-83cf11dd956c0fbb84c1c50c643b43a3824dc6da.zip
fixed the hash, now onward & upward
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index ef4b64e4a..2f11eb299 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -188,7 +188,7 @@ function zot_register_hub($arr) {
function import_xchan_from_json($j) {
- $xchan_hash = base64url_encode(hash('whirlpool',$j->quid . $j->guid_sig, true));
+ $xchan_hash = base64url_encode(hash('whirlpool',$j->guid . $j->guid_sig, true));
$import_photos = false;
// FIXME - verify the signature
@@ -196,6 +196,7 @@ function import_xchan_from_json($j) {
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($xchan_hash)
);
+
if($r) {
if($r[0]['xchan_photo_date'] != $j->photo_updated)
$update_photos = true;