aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-03 20:26:20 -0800
committerfriendica <info@friendica.com>2012-01-03 20:26:20 -0800
commitfc7d0360bb059bf87c5c531a2bfd5bcee3aef3f6 (patch)
tree091edb45d73b6bf79534a5d6fbda144b4d81ddf5 /include/items.php
parent8e6c02cda383b7655ef7c045a1c9cb2c63541b60 (diff)
downloadvolse-hubzilla-fc7d0360bb059bf87c5c531a2bfd5bcee3aef3f6.tar.gz
volse-hubzilla-fc7d0360bb059bf87c5c531a2bfd5bcee3aef3f6.tar.bz2
volse-hubzilla-fc7d0360bb059bf87c5c531a2bfd5bcee3aef3f6.zip
add verb and item to notifications to aid in localisation
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 9f006306f..a63468d92 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1798,7 +1798,9 @@ function local_delivery($importer,$data) {
'link' => $a->get_baseurl() . '/notifications/intros',
'source_name' => $importer['name'],
'source_link' => $importer['url'],
- 'source_photo' => $importer['photo']
+ 'source_photo' => $importer['photo'],
+ 'verb' => ACTIVITY_REQ_FRIEND,
+ 'otype' => 'intro'
));
return 0;
@@ -1847,6 +1849,8 @@ function local_delivery($importer,$data) {
'source_name' => $msg['from-name'],
'source_link' => $importer['url'],
'source_photo' => $importer['thumb'],
+ 'verb' => ACTIVITY_POST,
+ 'otype' => 'mail'
);
notification($notif_params);
@@ -2118,7 +2122,10 @@ function local_delivery($importer,$data) {
'source_name' => stripslashes($datarray['author-name']),
'source_link' => $datarray['author-link'],
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
- ? $importer['thumb'] : $datarray['author-avatar'])
+ ? $importer['thumb'] : $datarray['author-avatar']),
+ 'verb' => ACTIVITY_POST,
+ 'otype' => 'item'
+
));
}
@@ -2234,7 +2241,10 @@ function local_delivery($importer,$data) {
'source_name' => stripslashes($datarray['author-name']),
'source_link' => $datarray['author-link'],
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
- ? $importer['thumb'] : $datarray['author-avatar'])
+ ? $importer['thumb'] : $datarray['author-avatar']),
+ 'verb' => ACTIVITY_POST,
+ 'otype' => 'item'
+
));
break;