--- a/HelloForge/helloforge/model/wiki.py
+++ b/HelloForge/helloforge/model/wiki.py
@@ -11,7 +11,7 @@
from ming import schema as S
from ming import Field
-from pyforge.model import Artifact, Message
+from pyforge.model import Artifact, Message, User
wikiwords = [
(r'\b([A-Z]\w+[A-Z]+\w+)', r'<a href="../\1/">\1</a>'),
@@ -66,6 +66,11 @@
content = pattern.sub(replacement, content)
return content
+ @property
+ def author(self):
+ return User.m.get(_id=self.author_id)
+
+
def reply(self):
while True:
try: