Order attachments by creation date
This commit is contained in:
parent
462da87e9b
commit
8cfb2318a2
2 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
- Restart stalled background jobs.
|
||||
- Order attachments by creation date.
|
||||
|
||||
## [1.18.0] - 2023-03-21
|
||||
|
||||
|
|
|
@ -391,6 +391,7 @@ pub const RELATED_ATTACHMENTS: &str =
|
|||
"ARRAY(
|
||||
SELECT media_attachment
|
||||
FROM media_attachment WHERE post_id = post.id
|
||||
ORDER BY media_attachment.created_at
|
||||
) AS attachments";
|
||||
|
||||
pub const RELATED_MENTIONS: &str =
|
||||
|
|
Loading…
Reference in a new issue