mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
closed #2429
This commit is contained in:
@@ -9,19 +9,18 @@ var winston = require('winston'),
|
||||
|
||||
module.exports = function(User) {
|
||||
User.startJobs = function() {
|
||||
|
||||
new cronJob('0 0 17 * * *', function() {
|
||||
winston.verbose('[user.startJobs] Digest job (daily) scheduled.');
|
||||
winston.verbose('[user.startJobs] Digest job (daily) started.');
|
||||
User.digest.execute('day');
|
||||
}, null, true);
|
||||
|
||||
new cronJob('0 0 17 * * 0', function() {
|
||||
winston.verbose('[user.startJobs] Digest job (weekly) scheduled.');
|
||||
winston.verbose('[user.startJobs] Digest job (weekly) started.');
|
||||
User.digest.execute('week');
|
||||
}, null, true);
|
||||
|
||||
new cronJob('0 0 17 1 * *', function() {
|
||||
winston.verbose('[user.startJobs] Digest job (monthly) scheduled.');
|
||||
winston.verbose('[user.startJobs] Digest job (monthly) started.');
|
||||
User.digest.execute('month');
|
||||
}, null, true);
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<!-- IF recent.length -->
|
||||
<!-- BEGIN recent -->
|
||||
<li style="text-decoration: none; list-style-type: none; padding-bottom: 0.5em;">
|
||||
<a href="{url}/topic/{recent.slug}"><img style="vertical-align: middle; width: 16px; height: 16px; padding-right: 1em;" src="{recent.teaser.user.picture}" title="{recent.teaser.user.username}" />{recent.title}</a>
|
||||
<a href="{url}/topic/{recent.slug}"><img style="vertical-align: middle; width: 16px; height: 16px; padding-right: 1em;" src="<!-- IF recent.teaser -->{recent.teaser.user.picture}<!-- ELSE -->{recent.user.picture}<!-- ENDIF recent.teaser -->" title="<!-- IF recent.teaser -->{recent.teaser.user.username}<!-- ELSE -->{recent.user.username}<!-- ENDIF recent.teaser -->" />{recent.title}</a>
|
||||
</li>
|
||||
<!-- END recent -->
|
||||
<!-- ELSE -->
|
||||
|
||||
Reference in New Issue
Block a user