Преглед изворни кода

Merge pull request #235 from jml/master

Properly encode author in comments
Kyle Fuller пре 10 година
родитељ
комит
259710ba00
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pelican_comment_system/comment.py

+ 1 - 1
pelican_comment_system/comment.py

@@ -15,7 +15,7 @@ class Comment(Content):
 		self.id = id
 		self.replies = []
 		self.avatar = avatar
-		self.title = "Posted by:  " + str(metadata['author'])
+		self.title = "Posted by:  {}".format(metadata['author'])
 
 	def addReply(self, comment):
 		self.replies.append(comment)