aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-03 20:47:04 -0700
committerfriendica <info@friendica.com>2012-05-03 20:47:04 -0700
commit15542a8690701b403ed7e7bf56d82d1511cfbd63 (patch)
tree31585d2b68e671c12204076d16b288d4e65ab958 /include
parentf2d3039aeddb3689dd5b966d7c1d788cc0508fee (diff)
downloadvolse-hubzilla-15542a8690701b403ed7e7bf56d82d1511cfbd63.tar.gz
volse-hubzilla-15542a8690701b403ed7e7bf56d82d1511cfbd63.tar.bz2
volse-hubzilla-15542a8690701b403ed7e7bf56d82d1511cfbd63.zip
yet another bug in remote_friends_in_common
Diffstat (limited to 'include')
-rw-r--r--include/contact_widgets.php2
-rw-r--r--include/socgraph.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index bf3a86958..4dab6a53e 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -143,7 +143,7 @@ function common_friends_visitor_widget($profile_uid) {
$cid = $zcid = 0;
if(can_write_wall($a,$profile_uid))
- $cid = local_user();
+ $cid = remote_user();
else {
if(get_my_url()) {
$r = q("select id from contact where nurl = '%s' and uid = %d limit 1",
diff --git a/include/socgraph.php b/include/socgraph.php
index a67b3d9e3..b7c4ccc71 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -176,6 +176,7 @@ function count_common_friends($uid,$cid) {
intval($cid)
);
+// logger("count_common_friends: $uid $cid {$r[0]['total']}");
if(count($r))
return $r[0]['total'];
return 0;