mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client, server: merge nearby pool posts into regular post serialization
Can still be cleaned up some more. Need to compare speed of the get_around query vs nearby pool posts.
This commit is contained in:
@ -16,9 +16,9 @@ class PoolNavigatorControl extends events.EventTarget {
|
||||
views.replaceContent(
|
||||
this._hostNode,
|
||||
template({
|
||||
pool: poolPostNearby.pool,
|
||||
parameters: { query: `pool:${poolPostNearby.pool.id}` },
|
||||
linkClass: misc.makeCssName(poolPostNearby.pool.category, "pool"),
|
||||
pool: poolPostNearby,
|
||||
parameters: { query: `pool:${poolPostNearby.id}` },
|
||||
linkClass: misc.makeCssName(poolPostNearby.category, "pool"),
|
||||
canViewPosts: api.hasPrivilege("posts:view"),
|
||||
canViewPools: api.hasPrivilege("pools:view"),
|
||||
firstPost: poolPostNearby.firstPost,
|
||||
|
Reference in New Issue
Block a user