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:
committed by
Franz Liedke
parent
f8ad54cb1f
commit
67c7b45dc8
@@ -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);
|
||||
|
Reference in New Issue
Block a user