v1.18.x
barisusakli 9 years ago
parent b948e031f6
commit 07af4d10e7

@ -31,6 +31,7 @@
"digest.day": "day",
"digest.week": "week",
"digest.month": "month",
"digest.subject": "Digest for %1",
"notif.chat.subject": "New chat message received from %1",
"notif.chat.cta": "Click here to continue the conversation",

@ -1,17 +1,16 @@
"use strict";
var async = require('async'),
winston = require('winston'),
nconf = require('nconf'),
db = require('../database'),
meta = require('../meta'),
user = require('../user'),
topics = require('../topics'),
batch = require('../batch'),
plugins = require('../plugins'),
emailer = require('../emailer'),
utils = require('../../public/src/utils');
var async = require('async');
var winston = require('winston');
var nconf = require('nconf');
var db = require('../database');
var meta = require('../meta');
var user = require('../user');
var topics = require('../topics');
var plugins = require('../plugins');
var emailer = require('../emailer');
var utils = require('../../public/src/utils');
(function(Digest) {
Digest.execute = function(interval) {
@ -100,7 +99,7 @@ var async = require('async'),
}
emailer.send('digest', userObj.uid, {
subject: '[' + meta.config.title + '] Digest for ' + now.getFullYear()+ '/' + (now.getMonth()+1) + '/' + now.getDate(),
subject: '[' + meta.config.title + '] [[email:digest.subject, ' + (now.getFullYear()+ '/' + (now.getMonth()+1) + '/' + now.getDate()) + ']]',
username: userObj.username,
userslug: userObj.userslug,
url: nconf.get('url'),

Loading…
Cancel
Save