mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-17 10:21:31 +00:00
fix tests
This commit is contained in:
parent
143bdba1b5
commit
b911bbbd8e
@ -30,6 +30,10 @@ const maintainPinnedPosts = (params) => {
|
||||
}
|
||||
|
||||
const maintainGroupPinnedPosts = (params) => {
|
||||
// only show GroupPinnedPosts when Groups is selected
|
||||
if (!params.filter?.group) {
|
||||
return params
|
||||
}
|
||||
const pinnedPostFilter = { groupPinned: true, group: params.filter.group }
|
||||
if (isEmpty(params.filter)) {
|
||||
params.filter = { OR: [pinnedPostFilter, {}] }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user