mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 08:32:23 +01:00
fix: display resources from fediverse in chronological order, fix #483
This commit is contained in:
parent
5f0728eb3e
commit
6026f5b1ca
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ const eventController = {
|
|||
},
|
||||
{ model: Event, required: false, as: 'parent', attributes: ['id', 'recurrent', 'is_visible', 'start_datetime'] },
|
||||
],
|
||||
order: [[Resource, 'id', 'DESC']],
|
||||
order: [[Resource, 'id', 'ASC']],
|
||||
})
|
||||
} catch (e) {
|
||||
log.error('[EVENT]', e)
|
||||
|
@ -885,7 +885,7 @@ const eventController = {
|
|||
where,
|
||||
attributes: {
|
||||
exclude: [
|
||||
'likes', 'boost', 'userId', 'createdAt', 'resources', 'placeId', 'image_path', 'ap_object', 'ap_id',
|
||||
'likes', 'boost', 'userId', 'createdAt', 'resources', 'placeId', 'image_path', 'ap_object', 'ap_id',
|
||||
...(!include_parent ? ['recurrent']: []),
|
||||
...(!include_unconfirmed ? ['is_visible']: []),
|
||||
...(!include_description ? ['description']: [])
|
||||
|
|
Loading…
Reference in a new issue