lots of fixes - most recent photo updates for contacts

This commit is contained in:
Mike Macgirvin 2010-08-08 21:03:08 -07:00
commit d11c1c63c0
15 changed files with 231 additions and 47 deletions

View file

@ -375,7 +375,7 @@ function photos_post(&$a) {
$dups = false;
$item_hash = random_string();
$uri = "urn:X-dfrn:" . $a->get_hostname() . ':' . $profile_uid . ':' . $item_hash;
$uri = "urn:X-dfrn:" . $a->get_hostname() . ':' . $_SESSION['uid'] . ':' . $item_hash;
$r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' LIMIT 1",
dbesc($uri));