aboutsummaryrefslogtreecommitdiff
path: root/actions/comments/add.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-21 14:50:23 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-21 14:50:23 +0000
commitf1ba6ec14130a5480653745b22de6a001112bddb (patch)
tree2ec0fba80900655965b1c6d88bf4aaa7c22e39a6 /actions/comments/add.php
parent59f01de10c6a581c074889b96fbe4698ccd47309 (diff)
downloadelgg-f1ba6ec14130a5480653745b22de6a001112bddb.tar.gz
elgg-f1ba6ec14130a5480653745b22de6a001112bddb.tar.bz2
New river code added to allow user comment to be pulled out and displayed
git-svn-id: http://code.elgg.org/elgg/trunk@3490 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/comments/add.php')
-rw-r--r--actions/comments/add.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/comments/add.php b/actions/comments/add.php
index 80478b9ad..0f0658837 100644
--- a/actions/comments/add.php
+++ b/actions/comments/add.php
@@ -22,8 +22,8 @@
if ($entity = get_entity($entity_guid)) {
// If posting the comment was successful, say so
- if ($entity->annotate('generic_comment',$comment_text,$entity->access_id, $_SESSION['guid'])) {
-
+ $annotation = create_annotation($entity->guid, 'generic_comment', $comment_text, "", $_SESSION['guid'], $entity->access_id);
+ if ($annotation) {
if ($entity->owner_guid != $_SESSION['user']->getGUID())
notify_user($entity->owner_guid, $_SESSION['user']->getGUID(), elgg_echo('generic_comment:email:subject'),
sprintf(
@@ -36,10 +36,9 @@
$_SESSION['user']->getURL()
)
);
-
system_message(elgg_echo("generic_comment:posted"));
//add to river
- add_to_river('annotation/annotate','comment',$_SESSION['user']->guid,$entity->guid);
+ add_to_river('annotation/annotate','comment',$_SESSION['user']->guid,$entity->guid, "", 0, $annotation);
} else {