[dw-free] Deleted comments by anonymous users shows an error message in the inbox
[commit: http://hg.dwscoalition.org/dw-free/rev/fa9f14808dc5]
http://bugs.dwscoalition.org/show_bug.cgi?id=3685
Fix message when the comment was anonymous.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3685
Fix message when the comment was anonymous.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/Event/JournalNewComment.pm
-------------------------------------------------------------------------------- diff -r a1a1c6af9228 -r fa9f14808dc5 cgi-bin/LJ/Event/JournalNewComment.pm --- a/cgi-bin/LJ/Event/JournalNewComment.pm Thu May 19 14:28:57 2011 +0800 +++ b/cgi-bin/LJ/Event/JournalNewComment.pm Fri May 20 11:15:09 2011 +0800 @@ -261,7 +261,7 @@ return sprintf(qq{(Deleted comment to post from %s in %s: comment by %s in "%s")}, LJ::diff_ago_text( $entry->logtime_unix ), $journal->ljuser_display, - $comment->poster->ljuser_display, + $comment->poster ? $comment->poster->ljuser_display : "(Anonymous)", $entry_subject ) unless $comment && $comment->valid && !$comment->is_deleted; --------------------------------------------------------------------------------