aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-03 16:00:52 -0700
committerFriendika <info@friendika.com>2011-11-03 16:00:52 -0700
commit014c91431e7796f9c5394efaae507837fe5c168b (patch)
treea940fa1c864a65052afebd83254cb9fb65daef08 /mod
parent4f4b03367aafc8efd36cf73ecab58cdd26802757 (diff)
downloadvolse-hubzilla-014c91431e7796f9c5394efaae507837fe5c168b.tar.gz
volse-hubzilla-014c91431e7796f9c5394efaae507837fe5c168b.tar.bz2
volse-hubzilla-014c91431e7796f9c5394efaae507837fe5c168b.zip
ignore suggestions
Diffstat (limited to 'mod')
-rw-r--r--mod/suggest.php23
1 files changed, 21 insertions, 2 deletions
diff --git a/mod/suggest.php b/mod/suggest.php
index 2d2a32938..aedf3fd46 100644
--- a/mod/suggest.php
+++ b/mod/suggest.php
@@ -3,6 +3,24 @@
require_once('include/socgraph.php');
require_once('include/contact_widgets.php');
+
+function suggest_init(&$a) {
+ if(! local_user())
+ return;
+
+ if(x($_GET,'ignore') && intval($_GET['ignore'])) {
+ q("insert into gcign ( uid, gcid ) values ( %d, %d ) ",
+ intval(local_user()),
+ intval($_GET['ignore'])
+ );
+ }
+
+}
+
+
+
+
+
function suggest_content(&$a) {
$o = '';
@@ -25,7 +43,7 @@ function suggest_content(&$a) {
return $o;
}
- $tpl = get_markup_template('common_friends.tpl');
+ $tpl = get_markup_template('suggest_friends.tpl');
foreach($r as $rr) {
@@ -33,7 +51,8 @@ function suggest_content(&$a) {
'$url' => $rr['url'],
'$name' => $rr['name'],
'$photo' => $rr['photo'],
- '$tags' => ''
+ '$ignlnk' => $a->get_baseurl() . '/suggest?ignore=' . $rr['id'],
+ '$ignore' => t('Ignore/Hide')
));
}