Include title of entry in comment notifications in inbox.

        Patch by afuna. 

diffs (13 lines):

diff -r d8c2bd7e43c3 -r 1d87598d83a2 cgi-bin/LJ/Event/JournalNewComment.pm
--- a/cgi-bin/LJ/Event/JournalNewComment.pm     Mon Nov 02 09:29:31 2009 +0000
+++ b/cgi-bin/LJ/Event/JournalNewComment.pm     Mon Nov 02 09:37:45 2009 +0000
@@ -259,7 +259,8 @@ sub as_html {
     my $pu = LJ::ljuser($comment->poster);
     my $url = $comment->url;
 
-    my $in_text = '<a href="' . $entry->url . '">an entry</a>';
+    my $entry_subject = $entry->subject_text || "an entry";
+    my $in_text = '<a href="' . $entry->url . "\">$entry_subject</a>";
     my $subject = $comment->subject_text ? ' "' . $comment->subject_text . '"' 
: '';
 
     my $poster = $comment->poster ? "by $pu" : '';
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to