Merge remote-tracking branch 'origin/master' into develop
commit
1ce448f2a1
@ -1,14 +1,14 @@
|
||||
{
|
||||
"figure-x": "Figure %1",
|
||||
"error-events-per-day": "<code>%1</code> events per day",
|
||||
"error.404": "404 Not Found",
|
||||
"error.503": "503 Service Unavailable",
|
||||
"manage-error-log": "Manage Error Log",
|
||||
"error.404": "ارور 404 یافت نشد",
|
||||
"error.503": "ارور 503 سرویس دردسترس نیست",
|
||||
"manage-error-log": "مدیریت Error Log",
|
||||
"export-error-log": "Export Error Log (CSV)",
|
||||
"clear-error-log": "Clear Error Log",
|
||||
"route": "Route",
|
||||
"count": "Count",
|
||||
"no-routes-not-found": "Hooray! No 404 errors!",
|
||||
"clear404-confirm": "Are you sure you wish to clear the 404 error logs?",
|
||||
"clear404-success": "\"404 Not Found\" errors cleared"
|
||||
"clear-error-log": "پاک کردن Error Log",
|
||||
"route": "مسیر",
|
||||
"count": "شمارش",
|
||||
"no-routes-not-found": "ایول! بدون ارور 404 !",
|
||||
"clear404-confirm": "آیا از پاک کردن ارور های 404 اطمینان دارید؟",
|
||||
"clear404-success": "ارور های 404 پاک شدند"
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var db = require('../../database');
|
||||
|
||||
module.exports = {
|
||||
name: 'Add default settings for notification delivery types',
|
||||
timestamp: Date.UTC(2018, 1, 14),
|
||||
method: function (callback) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
db.getObject('config', next);
|
||||
},
|
||||
function (config, next) {
|
||||
db.setObject('config', {
|
||||
notificationType_upvote: config.notificationType_upvote || 'notification',
|
||||
'notificationType_new-topic': config['notificationType_new-topic'] || 'notification',
|
||||
'notificationType_new-reply': config['notificationType_new-reply'] || config.sendPostNotifications || 'notification',
|
||||
notificationType_follow: config.notificationType_follow || 'notification',
|
||||
'notificationType_new-chat': config['notificationType_new-chat'] || config.sendChatNotifications || 'notification',
|
||||
'notificationType_group-invite': config['notificationType_group-invite'] || 'notification',
|
||||
}, next);
|
||||
},
|
||||
], callback);
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue