diff options
author | Friendika <info@friendika.com> | 2011-10-31 20:39:04 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-31 20:39:04 -0700 |
commit | d4644d73392f335a3cc488fbd8935068a567edcf (patch) | |
tree | 1fe123926d95305a19c1999ab6f01232a9d43583 /include/poller.php | |
parent | d5ce13ee12f6d9fcebf905213b66938fb1ceb06c (diff) | |
download | volse-hubzilla-d4644d73392f335a3cc488fbd8935068a567edcf.tar.gz volse-hubzilla-d4644d73392f335a3cc488fbd8935068a567edcf.tar.bz2 volse-hubzilla-d4644d73392f335a3cc488fbd8935068a567edcf.zip |
name change continued, social graph tools and stuctures, fix for spanish province name
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php index a19f0716f..f81e879b4 100644 --- a/include/poller.php +++ b/include/poller.php @@ -298,6 +298,13 @@ function poller_run($argv, $argc){ if((intval($res->status) != 0) || (! strlen($res->challenge)) || (! strlen($res->dfrn_id))) continue; + if(((float) $res->dfrn_version > 2.21) && ($contact['poco'] == '')) { + q("update contact set poco = '%s' where id = %d limit 1", + dbesc(str_replace('/profile/','/poco/', $contact['url'])), + intval($contact['id']) + ); + } + $postvars = array(); $sent_dfrn_id = hex2bin((string) $res->dfrn_id); |