Use HasCreator and HasEditor mixins

This commit is contained in:
2018-04-08 12:01:18 +02:00
parent 48b26f090c
commit 33636dad8e
8 changed files with 32 additions and 15 deletions

View File

@ -3,10 +3,10 @@ component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User)
#thread.thread(data-id=thread.ID)
.posts
Postable(thread.ToPostable(), user, thread.Author().ID)
Postable(thread.ToPostable(), user, thread.Creator().ID)
each post in posts
Postable(post.ToPostable(), user, thread.Author().ID)
Postable(post.ToPostable(), user, thread.Creator().ID)
// Reply
if user != nil