1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 12:40:40 +02:00

Database changes (#34)

* Implement database changes

* Split foreign keys in to their own migrations; rename pivot tables

* Use whereColumn

* Update core attribute names
This commit is contained in:
Toby Zerner
2018-09-17 04:20:16 +09:30
committed by Franz Liedke
parent f8ad54cb1f
commit 67c7b45dc8
13 changed files with 146 additions and 10 deletions

View File

@@ -126,7 +126,7 @@ export default function addComposerAutocomplete() {
if (discussion) {
discussion.posts()
.filter(post => post && post.contentType() === 'comment' && (!composerPost || post.number() < composerPost.number()))
.sort((a, b) => b.time() - a.time())
.sort((a, b) => b.createdAt() - a.createdAt())
.filter(post => {
const user = post.user();
return user && userMatches(user);