diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-12 21:25:37 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-12 21:25:37 -0700 |
commit | 2c96ad77396b0df2be481c4f90cc61ebaa83bc75 (patch) | |
tree | 7dc885cfadade7dbabf2645eae8117aef1042253 /mod/redir.php | |
parent | 19661d4c2599c25f8bcf536932e888a27e3663e1 (diff) | |
download | volse-hubzilla-2c96ad77396b0df2be481c4f90cc61ebaa83bc75.tar.gz volse-hubzilla-2c96ad77396b0df2be481c4f90cc61ebaa83bc75.tar.bz2 volse-hubzilla-2c96ad77396b0df2be481c4f90cc61ebaa83bc75.zip |
tag each side of the duplex
Diffstat (limited to 'mod/redir.php')
-rw-r--r-- | mod/redir.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/redir.php b/mod/redir.php index 688e516ab..5c8849eca 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -10,10 +10,16 @@ function redir_init(&$a) { if(! count($r)) goaway($a->get_baseurl()); - $dfrn_id = $r[0]['issued-id']; - if((! $dfrn_id) && ($r[0]['duplex'])) - $dfrn_id = $r[0]['dfrn-id']; + $dfrn_id = $orig_id = $r[0]['issued-id']; + if($r[0]['duplex'] && $r[0]['issued-id']) { + $orig_id = $r[0]['issued-id']; + $dfrn_id = '1:' . $orig_id; + } + if($r[0]['duplex'] && $r[0]['dfrn-id']) { + $orig_id = $r[0]['dfrn-id']; + $dfrn_id = '0:' . $orig_id; + } q("INSERT INTO `profile_check` ( `uid`, `dfrn_id`, `expire`) VALUES( %d, '%s', %d )", intval($_SESSION['uid']), |