mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +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);
|
||||
|
@@ -19,7 +19,7 @@ export default class PostMentionedNotification extends Notification {
|
||||
content() {
|
||||
const notification = this.props.notification;
|
||||
const auc = notification.additionalUnreadCount();
|
||||
const user = notification.sender();
|
||||
const user = notification.fromUser();
|
||||
|
||||
return app.translator.transChoice('flarum-mentions.forum.notifications.post_mentioned_text', auc + 1, {
|
||||
user,
|
||||
|
@@ -12,7 +12,7 @@ export default class UserMentionedNotification extends Notification {
|
||||
}
|
||||
|
||||
content() {
|
||||
const user = this.props.notification.sender();
|
||||
const user = this.props.notification.fromUser();
|
||||
|
||||
return app.translator.trans('flarum-mentions.forum.notifications.user_mentioned_text', {user});
|
||||
}
|
||||
|
Reference in New Issue
Block a user