Added activity feed

This commit is contained in:
2018-10-31 14:27:48 +09:00
parent 8e1578f2cb
commit 97c8f99499
14 changed files with 93 additions and 19 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.Creator().ID)
Postable(thread.ToPostable(), user, "", thread.Creator().ID)
each post in posts
Postable(post.ToPostable(), user, thread.Creator().ID)
Postable(post.ToPostable(), user, "", thread.Creator().ID)
//- Reply
if user != nil