Created Codestriker topic at:
http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=7591243&action=view
User: sits
Date: 05/06/13 15:30:14
Modified: lib/Codestriker/Action SubmitNewComment.pm
Log:
If a user has submitted a comment, they have effectively viewed the
topic at that time, so update the metric count for that user. As
suggested by Jason.
Index: SubmitNewComment.pm
===================================================================
RCS file:
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/SubmitNewComment.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SubmitNewComment.pm 5 May 2005 09:35:26 -0000 1.7
+++ SubmitNewComment.pm 13 Jun 2005 22:30:11 -0000 1.8
@@ -60,6 +60,9 @@
# Retrieve the appropriate topic details.
my $topic = Codestriker::Model::Topic->new($topicid);
+ # Fire the topic listener to indicate that the user has viewed the topic.
+ Codestriker::TopicListeners::Manager::topic_viewed($email, $topic);
+
# Create the comment in the database.
my $comment = Codestriker::Model::Comment->new();
$comment->create($topicid, $line, $fn, $new,
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits