mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
1f12d5ff89
commit
ad78694652
1 changed files with 2 additions and 1 deletions
|
@ -977,6 +977,7 @@ const eventController = {
|
||||||
const page = Number(req.query.page) || 0
|
const page = Number(req.query.page) || 0
|
||||||
const older = req.query.older || false
|
const older = req.query.older || false
|
||||||
|
|
||||||
|
const show_federated = helpers.queryParamToBool(req.query.show_federated, false)
|
||||||
const show_multidate = settings.allow_multidate_event && helpers.queryParamToBool(req.query.show_multidate, true)
|
const show_multidate = settings.allow_multidate_event && helpers.queryParamToBool(req.query.show_multidate, true)
|
||||||
const show_recurrent = settings.allow_recurrent_event && helpers.queryParamToBool(req.query.show_recurrent, settings.recurrent_event_visible)
|
const show_recurrent = settings.allow_recurrent_event && helpers.queryParamToBool(req.query.show_recurrent, settings.recurrent_event_visible)
|
||||||
|
|
||||||
|
@ -991,7 +992,7 @@ const eventController = {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
events = await eventController._select({
|
events = await eventController._select({
|
||||||
start, end, query, places, tags, show_recurrent, show_multidate, limit, page, older
|
start, end, query, places, tags, show_recurrent, show_multidate, limit, page, older, show_federated
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue