diff options
author | friendica <info@friendica.com> | 2012-01-03 20:26:20 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-03 20:26:20 -0800 |
commit | fc7d0360bb059bf87c5c531a2bfd5bcee3aef3f6 (patch) | |
tree | 091edb45d73b6bf79534a5d6fbda144b4d81ddf5 /mod | |
parent | 8e6c02cda383b7655ef7c045a1c9cb2c63541b60 (diff) | |
download | volse-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 'mod')
-rw-r--r-- | mod/dfrn_request.php | 4 | ||||
-rw-r--r-- | mod/item.php | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index a96860403..aa14bc473 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -580,7 +580,9 @@ function dfrn_request_content(&$a) { 'link' => $a->get_baseurl() . '/notifications/intros', 'source_name' => ((strlen(stripslashes($r[0]['name']))) ? stripslashes($r[0]['name']) : t('[Name Withheld]')), 'source_link' => $r[0]['url'], - 'source_photo' => $r[0]['photo'] + 'source_photo' => $r[0]['photo'], + 'verb' => ACTIVITY_REQ_FRIEND, + 'otype' => 'intro' )); } diff --git a/mod/item.php b/mod/item.php index ece92f0f3..c4e66ebeb 100644 --- a/mod/item.php +++ b/mod/item.php @@ -691,7 +691,9 @@ function item_post(&$a) { 'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id, 'source_name' => $datarray['author-name'], 'source_link' => $datarray['author-link'], - 'source_photo' => $datarray['author-avatar'] + 'source_photo' => $datarray['author-avatar'], + 'verb' => ACTIVITY_POST, + 'otype' => 'item' )); } @@ -731,7 +733,9 @@ function item_post(&$a) { 'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id, 'source_name' => $datarray['author-name'], 'source_link' => $datarray['author-link'], - 'source_photo' => $datarray['author-avatar'] + 'source_photo' => $datarray['author-avatar'], + 'verb' => ACTIVITY_POST, + 'otype' => 'item' )); } } |