aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-01 05:46:51 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-01 05:46:51 -0700
commit3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e (patch)
tree641803dc59dcd8440e252e5133424fde2a835636 /mod/dfrn_confirm.php
parenta4a46d82df14d5bcc6812a8e2b9f24eb78141e4e (diff)
downloadvolse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.gz
volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.bz2
volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.zip
set frequency of poll per contact, other misc fixes (photo now has contact-id)
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index ca6afca8b..0298e76a5 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -91,10 +91,11 @@ function dfrn_confirm_post(&$a) {
$hash = hash('md5',uniqid(mt_rand(),true));
- $r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`,
+ $r = q("INSERT INTO `photo` ( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`,
`height`, `width`, `data`, `scale` )
- VALUES ( %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 4 )",
+ VALUES ( %d, %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 4 )",
intval($local_uid),
+ intval($dfrn_record),
dbesc($hash),
datetime_convert(),
datetime_convert(),
@@ -107,10 +108,11 @@ function dfrn_confirm_post(&$a) {
$photo_failure = true;
$img->scaleImage(80);
- $r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`,
+ $r = q("INSERT INTO `photo` ( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`,
`height`, `width`, `data`, `scale` )
- VALUES ( %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 5 )",
+ VALUES ( %d, %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 5 )",
intval($local_uid),
+ intval($dfrn_record),
dbesc($hash),
datetime_convert(),
datetime_convert(),