diff options
author | friendica <info@friendica.com> | 2015-01-20 19:33:19 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-20 19:33:19 -0800 |
commit | 51848c619080e19cace647966a17eb9a1b42ca25 (patch) | |
tree | 6aee6c9487813051801cabbd2a4914528232d5b5 /mod/post.php | |
parent | ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b (diff) | |
download | volse-hubzilla-51848c619080e19cace647966a17eb9a1b42ca25.tar.gz volse-hubzilla-51848c619080e19cace647966a17eb9a1b42ca25.tar.bz2 volse-hubzilla-51848c619080e19cace647966a17eb9a1b42ca25.zip |
working through the xchan table to remove bitfields, mostly complete except for updating the updater
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/mod/post.php b/mod/post.php index 338cd71c0..15fd29607 100644 --- a/mod/post.php +++ b/mod/post.php @@ -260,23 +260,15 @@ function post_init(&$a) { $a->set_groups(init_groups_visitor($_SESSION['visitor_id'])); info(sprintf( t('Welcome %s. Remote authentication successful.'),$x[0]['xchan_name'])); logger('mod_zot: auth success from ' . $x[0]['xchan_addr']); - q("update hubloc set hubloc_status = (hubloc_status | %d ) where hubloc_id = %d ", - intval(HUBLOC_WORKS), - intval($x[0]['hubloc_id']) - ); - - } else { + } + else { if($test) { $ret['message'] .= 'auth failure. ' . print_r($_REQUEST,true) . print_r($j,true) . EOL; json_return_and_die($ret); } logger('mod_zot: magic-auth failure - not authenticated: ' . $x[0]['xchan_addr']); - q("update hubloc set hubloc_status = (hubloc_status | %d ) where hubloc_id = %d ", - intval(HUBLOC_RECEIVE_ERROR), - intval($x[0]['hubloc_id']) - ); } // FIXME - we really want to save the return_url in the session before we visit rmagic. @@ -675,9 +667,7 @@ function post_post(&$a) { intval($hub['hubloc_id']) ); } - q("update xchan set xchan_flags = (xchan_flags & ~%d) where (xchan_flags & %d)>0 and xchan_hash = '%s'", - intval(XCHAN_FLAGS_ORPHAN), - intval(XCHAN_FLAGS_ORPHAN), + q("update xchan set xchan_orphan = 0 where xchan_orphan = 1 and xchan_hash = '%s'", dbesc($hub['hubloc_hash']) ); } |