Order attachments by creation date

This commit is contained in:
silverpill 2023-03-27 20:50:18 +00:00
parent 462da87e9b
commit 8cfb2318a2
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fixed error in emoji update SQL query. - Fixed error in emoji update SQL query.
- Restart stalled background jobs. - Restart stalled background jobs.
- Order attachments by creation date.
## [1.18.0] - 2023-03-21 ## [1.18.0] - 2023-03-21

View file

@ -391,6 +391,7 @@ pub const RELATED_ATTACHMENTS: &str =
"ARRAY( "ARRAY(
SELECT media_attachment SELECT media_attachment
FROM media_attachment WHERE post_id = post.id FROM media_attachment WHERE post_id = post.id
ORDER BY media_attachment.created_at
) AS attachments"; ) AS attachments";
pub const RELATED_MENTIONS: &str = pub const RELATED_MENTIONS: &str =