aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-03 17:29:07 -0800
committerfriendica <info@friendica.com>2012-01-03 17:29:07 -0800
commit969cd145ce0e717399dbfff6cbc1a45342206e1a (patch)
tree0cb293580fa177c9fd2c089104b46a9840d34db1 /include/items.php
parentc583d1620955b8d170b8cbf7a106cefeecad56c8 (diff)
downloadvolse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.tar.gz
volse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.tar.bz2
volse-hubzilla-969cd145ce0e717399dbfff6cbc1a45342206e1a.zip
suggestion notifications
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 7f003ab57..9f006306f 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1788,7 +1788,18 @@ function local_delivery($importer,$data) {
intval(0)
);
- // TODO - send email notify (which may require a new notification preference)
+ notification(array(
+ 'type' => NOTIFY_SUGGEST,
+ 'notify_flags' => $importer['notify-flags'],
+ 'language' => $importer['language'],
+ 'to_name' => $importer['username'],
+ 'to_email' => $importer['email'],
+ 'item' => $fsugg,
+ 'link' => $a->get_baseurl() . '/notifications/intros',
+ 'source_name' => $importer['name'],
+ 'source_link' => $importer['url'],
+ 'source_photo' => $importer['photo']
+ ));
return 0;
}