Added thread title to activities

This commit is contained in:
Eduard Urbach 2019-09-16 08:35:21 +09:00
parent bb16c126c1
commit f92c84ac35
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -10,7 +10,10 @@ component Postable(post arn.Postable, user *arn.User, includeReplies bool, showP
a(href=post.Creator().Link())= post.Creator().Nick
if showParent
if post.GetParentType() == "User"
if post.TypeName() == "Thread"
span in
a(href=post.Link())= post.TitleByUser(user)
else if post.GetParentType() == "User"
if post.GetParentID() != post.Creator().ID
span to
a(href=post.Parent().Link())= post.Parent().TitleByUser(user)