mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Amend Pull Request #21
This commit is contained in:
@@ -455,7 +455,7 @@ System.register('flarum/mentions/addMentionedByList', ['flarum/extend', 'flarum/
|
|||||||
'span',
|
'span',
|
||||||
{ className: 'Post-mentionedBy-summary' },
|
{ className: 'Post-mentionedBy-summary' },
|
||||||
icon('reply'),
|
icon('reply'),
|
||||||
app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (replies[0].data.relationships.user.data.id === app.session.user.data.id ? '_self' : '') + '_text', names.length, {
|
app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (replies[0].user() === app.session.user ? '_self' : '') + '_text', names.length, {
|
||||||
count: names.length,
|
count: names.length,
|
||||||
users: punctuateSeries(names)
|
users: punctuateSeries(names)
|
||||||
})
|
})
|
||||||
|
@@ -116,7 +116,7 @@ export default function addMentionedByList() {
|
|||||||
<div className="Post-mentionedBy" config={config}>
|
<div className="Post-mentionedBy" config={config}>
|
||||||
<span className="Post-mentionedBy-summary">
|
<span className="Post-mentionedBy-summary">
|
||||||
{icon('reply')}
|
{icon('reply')}
|
||||||
{app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (replies[0].data.relationships.user.data.id === app.session.user.data.id ? '_self' : '') + '_text', names.length, {
|
{app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (replies[0].user() === app.session.user ? '_self' : '') + '_text', names.length, {
|
||||||
count: names.length,
|
count: names.length,
|
||||||
users: punctuateSeries(names)
|
users: punctuateSeries(names)
|
||||||
})}
|
})}
|
||||||
|
Reference in New Issue
Block a user