@@ -57,6 +57,10 @@ public class Comment extends BaseComment<Comment> {
return ContentQuery.me().findById(id);
}
+ public BigInteger getContentUserId(){
+ return this.getContent().getUserId();
+ }
+
public void setContent(Content content) {
this.content = content;
@@ -115,7 +115,7 @@
</#if>
</div>
<div class="rightContent">
- <p>${bean.author!}</p>
+ <p>${bean.author!}<#if bean?? && bean.user_id?? && bean.getContentUserId() == bean.user_id>(作者)</#if></p>
<span>
${bean.text!}<#if "draft" == bean.status!>(待审核)</#if>
</span>