mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 19:13:09 +02:00
parent
65631525f6
commit
5eb02b4901
1 changed files with 9 additions and 1 deletions
|
@ -52,10 +52,18 @@ export default define(meta, async (ps, user) => {
|
||||||
$ne: user._id,
|
$ne: user._id,
|
||||||
$nin: hideUserIds
|
$nin: hideUserIds
|
||||||
},
|
},
|
||||||
|
visibility: 'public',
|
||||||
poll: {
|
poll: {
|
||||||
$exists: true,
|
$exists: true,
|
||||||
$ne: null
|
$ne: null
|
||||||
}
|
},
|
||||||
|
$or: [{
|
||||||
|
'poll.expiresAt': null
|
||||||
|
}, {
|
||||||
|
'poll.expiresAt': {
|
||||||
|
$gt: new Date()
|
||||||
|
}
|
||||||
|
}],
|
||||||
}, {
|
}, {
|
||||||
limit: ps.limit,
|
limit: ps.limit,
|
||||||
skip: ps.offset,
|
skip: ps.offset,
|
||||||
|
|
Loading…
Reference in a new issue