aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-20 16:13:18 -0800
committerfriendica <info@friendica.com>2015-01-20 16:13:18 -0800
commitee3eee425c92b37fba5a7035d8e9ec0b0b563d0b (patch)
treed999bde3128a6a8c514388d318d3a2f68635aa41 /include/network.php
parent6f11f20992c88ff48a55929e94d9003fcc437062 (diff)
downloadvolse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.tar.gz
volse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.tar.bz2
volse-hubzilla-ee3eee425c92b37fba5a7035d8e9ec0b0b563d0b.zip
that should take care of the bitfields in hubloc
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php
index 170b77d7d..8082d0217 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1113,7 +1113,7 @@ function discover_by_webbie($webbie) {
if(! $r) {
- $r = q("insert into hubloc ( hubloc_guid, hubloc_hash, hubloc_addr, hubloc_network, hubloc_url, hubloc_host, hubloc_callback, hubloc_updated, hubloc_flags ) values ('%s','%s','%s','%s','%s','%s','%s','%s', %d)",
+ $r = q("insert into hubloc ( hubloc_guid, hubloc_hash, hubloc_addr, hubloc_network, hubloc_url, hubloc_host, hubloc_callback, hubloc_updated, hubloc_primary ) values ('%s','%s','%s','%s','%s','%s','%s','%s', 1)",
dbesc($guid),
dbesc($addr),
dbesc($addr),
@@ -1121,8 +1121,7 @@ function discover_by_webbie($webbie) {
dbesc(trim($diaspora_base,'/')),
dbesc($hostname),
dbesc($notify),
- dbescdate(datetime_convert()),
- intval(HUBLOC_FLAGS_PRIMARY)
+ dbescdate(datetime_convert())
);
}
$photos = import_profile_photo($vcard['photo'],$addr);