mirror of
https://github.com/funamitech/mastodon
synced 2024-11-23 22:57:05 +09:00
Fix notification push notifications not including the author's username (#32254)
This commit is contained in:
parent
ebdeac0731
commit
1f720366e9
@ -516,6 +516,7 @@
|
|||||||
"notification.label.private_reply": "Private reply",
|
"notification.label.private_reply": "Private reply",
|
||||||
"notification.label.reply": "Reply",
|
"notification.label.reply": "Reply",
|
||||||
"notification.mention": "Mention",
|
"notification.mention": "Mention",
|
||||||
|
"notification.mentioned_you": "{name} mentioned you",
|
||||||
"notification.moderation-warning.learn_more": "Learn more",
|
"notification.moderation-warning.learn_more": "Learn more",
|
||||||
"notification.moderation_warning": "You have received a moderation warning",
|
"notification.moderation_warning": "You have received a moderation warning",
|
||||||
"notification.moderation_warning.action_delete_statuses": "Some of your posts have been removed.",
|
"notification.moderation_warning.action_delete_statuses": "Some of your posts have been removed.",
|
||||||
|
@ -6,6 +6,12 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
const { defineMessages } = require('react-intl');
|
||||||
|
|
||||||
|
const messages = defineMessages({
|
||||||
|
mentioned_you: { id: 'notification.mentioned_you', defaultMessage: '{name} mentioned you' },
|
||||||
|
});
|
||||||
|
|
||||||
const filtered = {};
|
const filtered = {};
|
||||||
const filenames = fs.readdirSync(path.resolve(__dirname, '../locales'));
|
const filenames = fs.readdirSync(path.resolve(__dirname, '../locales'));
|
||||||
|
|
||||||
@ -20,7 +26,7 @@ filenames.forEach(filename => {
|
|||||||
'notification.favourite': full['notification.favourite'] || '',
|
'notification.favourite': full['notification.favourite'] || '',
|
||||||
'notification.follow': full['notification.follow'] || '',
|
'notification.follow': full['notification.follow'] || '',
|
||||||
'notification.follow_request': full['notification.follow_request'] || '',
|
'notification.follow_request': full['notification.follow_request'] || '',
|
||||||
'notification.mention': full['notification.mention'] || '',
|
'notification.mention': full[messages.mentioned_you.id] || '',
|
||||||
'notification.reblog': full['notification.reblog'] || '',
|
'notification.reblog': full['notification.reblog'] || '',
|
||||||
'notification.poll': full['notification.poll'] || '',
|
'notification.poll': full['notification.poll'] || '',
|
||||||
'notification.status': full['notification.status'] || '',
|
'notification.status': full['notification.status'] || '',
|
||||||
|
Loading…
Reference in New Issue
Block a user