[seam-commits] Seam SVN: r7476 - trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/feeds.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Feb 26 01:58:34 EST 2008
Author: christian.bauer at jboss.com
Date: 2008-02-26 01:58:34 -0500 (Tue, 26 Feb 2008)
New Revision: 7476
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/feeds/WikiCommentFeedEntryManager.java
Log:
JBSEAM-2673, use given name as feedentry name for anonymous user comments
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/feeds/WikiCommentFeedEntryManager.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/feeds/WikiCommentFeedEntryManager.java 2008-02-26 06:31:00 UTC (rev 7475)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/feeds/WikiCommentFeedEntryManager.java 2008-02-26 06:58:34 UTC (rev 7476)
@@ -20,7 +20,7 @@
fe.setLink(wikiURLRenderer.renderURL(comment, true));
fe.setTitle(getFeedEntryTitle(comment));
- fe.setAuthor(comment.getCreatedBy().getFullname());
+ fe.setAuthor(comment.getCreatedBy().getFullname() != null ? comment.getCreatedBy().getFullname() : comment.getFromUserName());
fe.setUpdatedDate(fe.getPublishedDate());
// Do NOT use text/html, the fabulous Sun "Rome" software will
@@ -36,7 +36,7 @@
fe.setLink(wikiURLRenderer.renderURL(comment, true));
fe.setTitle(Messages.instance().get("lacewiki.label.comment.FeedEntryTitlePrefix") + " " + comment.getSubject());
- fe.setAuthor(comment.getCreatedBy().getFullname());
+ fe.setAuthor(comment.getCreatedBy().getFullname() != null ? comment.getCreatedBy().getFullname() : comment.getFromUserName());
fe.setUpdatedDate(comment.getLastModifiedOn());
fe.setDescriptionValue(getCommentDescription(comment));
More information about the seam-commits
mailing list