Final changes (hopefully) for adding posts to profile
This commit is contained in:
parent
f6e5b6da08
commit
7743a01925
@ -13,4 +13,4 @@ component PostableList(postables []arn.Postable)
|
||||
.post-likes= len(post.Likes())
|
||||
a.post-tool.post-permalink.ajax(href=post.Link(), title="Permalink")
|
||||
Icon("link")
|
||||
a.post-link.side-note.title.ajax(href="/posts/" + post.ID())= post.Title()
|
||||
a.post-link.side-note.ajax(href=post.Link())= post.Title()
|
||||
|
@ -21,6 +21,7 @@ func GetPostsByUser(ctx *aero.Context) string {
|
||||
|
||||
posts := user.Posts()
|
||||
arn.SortPostsLatestLast(posts)
|
||||
|
||||
var postables []arn.Postable
|
||||
|
||||
if len(posts) >= postLimit {
|
||||
|
@ -46,7 +46,6 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
|
||||
if len(posts) > maxPosts {
|
||||
posts = posts[:maxPosts]
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
return ctx.HTML(components.Profile(viewUser, user, animeList, threads, posts))
|
||||
|
Loading…
Reference in New Issue
Block a user