aboutsummaryrefslogtreecommitdiffstats
path: root/mod/redir.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2010-12-26 08:18:10 +0100
committerroot <root@diekershoff.homeunix.net>2010-12-26 08:18:10 +0100
commit3208d6afcbcf6e74ca5d0ac30be1559327e00bf9 (patch)
treec940d0870729dbeb70845a96f36a6a15926dd9f2 /mod/redir.php
parentc6a93d5cec05e9282b2f2d26fdfbc93175ed2b06 (diff)
parent10dda88684331366b10967981e661acf5b229ac6 (diff)
downloadvolse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.tar.gz
volse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.tar.bz2
volse-hubzilla-3208d6afcbcf6e74ca5d0ac30be1559327e00bf9.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/redir.php')
-rw-r--r--mod/redir.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/redir.php b/mod/redir.php
index cc58b9cd1..ac21aa17e 100644
--- a/mod/redir.php
+++ b/mod/redir.php
@@ -6,7 +6,7 @@ function redir_init(&$a) {
goaway($a->get_baseurl());
$cid = $a->argv[1];
- $r = q("SELECT `network`, `issued-id`, `dfrn-id`, `duplex`, `poll` FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($cid),
intval(local_user())
);
@@ -36,8 +36,9 @@ function redir_init(&$a) {
intval(time() + 45)
);
+ logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
+
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
-// . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile');
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec);
}