aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-31 20:39:04 -0700
committerFriendika <info@friendika.com>2011-10-31 20:39:04 -0700
commitd4644d73392f335a3cc488fbd8935068a567edcf (patch)
tree1fe123926d95305a19c1999ab6f01232a9d43583 /include/poller.php
parentd5ce13ee12f6d9fcebf905213b66938fb1ceb06c (diff)
downloadvolse-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.php7
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);