Show "to" when a user posts to a user
This commit is contained in:
parent
b13b337990
commit
f25501ca7d
@ -67,9 +67,12 @@ component ActivityConsumeAnimeText(activity *arn.ActivityConsumeAnime, user *arn
|
|||||||
|
|
||||||
component ActivityCreateMeta(activity *arn.ActivityCreate, user *arn.User)
|
component ActivityCreateMeta(activity *arn.ActivityCreate, user *arn.User)
|
||||||
if activity.ObjectType == "Post"
|
if activity.ObjectType == "Post"
|
||||||
if activity.Postable().GetParentType() != "User" || activity.Postable().GetParentID() != activity.CreatedBy
|
if activity.Postable().GetParentType() != "User"
|
||||||
span in
|
span in
|
||||||
a(href=activity.Postable().Parent().Link())= activity.Postable().Parent().TitleByUser(user)
|
a(href=activity.Postable().Parent().Link())= activity.Postable().Parent().TitleByUser(user)
|
||||||
|
else if activity.Postable().GetParentID() != activity.CreatedBy
|
||||||
|
span to
|
||||||
|
a(href=activity.Postable().Parent().Link())= activity.Postable().Parent().TitleByUser(user)
|
||||||
else if activity.ObjectType == "Thread"
|
else if activity.ObjectType == "Thread"
|
||||||
span in
|
span in
|
||||||
a(href=activity.Postable().Link())= activity.Postable().TitleByUser(user)
|
a(href=activity.Postable().Link())= activity.Postable().TitleByUser(user)
|
||||||
|
Loading…
Reference in New Issue
Block a user