mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
Compare commits
23 Commits
normalize-
...
v1.18.7-be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7624af5769 | ||
|
|
00a6b05f89 | ||
|
|
b46dcd9243 | ||
|
|
1a375000a7 | ||
|
|
1f8f2e9168 | ||
|
|
edae9522b5 | ||
|
|
7ff2b7fbb1 | ||
|
|
22e74dc0bb | ||
|
|
27acf19325 | ||
|
|
0f29433baf | ||
|
|
ebe7f11d0b | ||
|
|
c248805165 | ||
|
|
830cddfb40 | ||
|
|
abbbc3d7c2 | ||
|
|
8593ea87e9 | ||
|
|
1d401329ee | ||
|
|
9e52236973 | ||
|
|
eff03e4b57 | ||
|
|
854c078b73 | ||
|
|
36653525bd | ||
|
|
0409403f5b | ||
|
|
839673d321 | ||
|
|
d220d1d461 |
@@ -138,6 +138,7 @@
|
||||
"disableEmailSubscriptions": 0,
|
||||
"emailConfirmInterval": 10,
|
||||
"removeEmailNotificationImages": 0,
|
||||
"sendValidationEmail": 1,
|
||||
"includeUnverifiedEmails": 0,
|
||||
"emailPrompt": 1,
|
||||
"inviteExpiration": 7,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "1.18.5",
|
||||
"version": "1.18.6",
|
||||
"homepage": "http://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -41,7 +41,7 @@
|
||||
"chart.js": "^2.9.4",
|
||||
"cli-graph": "^3.2.2",
|
||||
"clipboard": "^2.0.6",
|
||||
"colors": "^1.4.0",
|
||||
"colors": "1.4.0",
|
||||
"commander": "^7.1.0",
|
||||
"compare-versions": "3.6.0",
|
||||
"compression": "^1.7.4",
|
||||
@@ -89,7 +89,7 @@
|
||||
"nodebb-plugin-emoji": "^3.5.0",
|
||||
"nodebb-plugin-emoji-android": "2.0.5",
|
||||
"nodebb-plugin-markdown": "8.14.4",
|
||||
"nodebb-plugin-mentions": "3.0.2",
|
||||
"nodebb-plugin-mentions": "3.0.3",
|
||||
"nodebb-plugin-spam-be-gone": "0.7.11",
|
||||
"nodebb-rewards-essentials": "0.2.0",
|
||||
"nodebb-theme-lavender": "5.3.1",
|
||||
@@ -182,4 +182,4 @@
|
||||
"url": "https://github.com/barisusakli"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,8 @@
|
||||
"subscriptions.hour-help": "Please enter a number representing the hour to send scheduled email digests (e.g. <code>0</code> for midnight, <code>17</code> for 5:00pm). Keep in mind that this is the hour according to the server itself, and may not exactly match your system clock.<br /> The approximate server time is: <span id=\"serverTime\"></span><br /> The next daily digest is scheduled to be sent <span id=\"nextDigestTime\"></span>",
|
||||
"notifications.remove-images": "Remove images from email notifications",
|
||||
"require-email-address": "Require new users to specify an email address",
|
||||
"require-email-address-warning": "By default, users can opt-out of entering an email address. Enabling this option means they have to enter an email address in order to proceed with registration. <strong>It does not ensure user will enter a real email address, nor even an address they own.</strong>",
|
||||
"require-email-address-warning": "By default, users can opt-out of entering an email address by leaving the field blank. Enabling this option means they have to enter an email address in order to proceed with registration. <strong>It does not ensure user will enter a real email address, nor even an address they own.</strong>",
|
||||
"send-validation-email": "Send validation emails when an email is added or changed",
|
||||
"include-unverified-emails": "Send emails to recipients who have not explicitly confirmed their emails",
|
||||
"include-unverified-warning": "By default, users with emails associated with their account have already been verified, but there are situations where this is not the case (e.g. SSO logins, grandfathered users, etc). <strong>Enable this setting at your own risk</strong> – sending emails to unverified addresses may be a violation of regional anti-spam laws.",
|
||||
"prompt": "Prompt users to enter or confirm their emails",
|
||||
|
||||
@@ -285,7 +285,7 @@ define('forum/topic/threadTools', [
|
||||
|
||||
threadEl.find('[component="post"][data-uid="' + app.user.uid + '"].deleted [component="post/tools"]').toggleClass('hidden', isLocked);
|
||||
|
||||
$('.topic-header [component="topic/locked"]').toggleClass('hidden', !data.isLocked);
|
||||
$('[component="topic/labels"] [component="topic/locked"]').toggleClass('hidden', !data.isLocked);
|
||||
$('[component="post/tools"] .dropdown-menu').html('');
|
||||
ajaxify.data.locked = data.isLocked;
|
||||
|
||||
@@ -334,7 +334,7 @@ define('forum/topic/threadTools', [
|
||||
|
||||
components.get('topic/pin').toggleClass('hidden', data.pinned).parent().attr('hidden', data.pinned ? '' : null);
|
||||
components.get('topic/unpin').toggleClass('hidden', !data.pinned).parent().attr('hidden', !data.pinned ? '' : null);
|
||||
const icon = $('.topic-header [component="topic/pinned"]');
|
||||
const icon = $('[component="topic/labels"] [component="topic/pinned"]');
|
||||
icon.toggleClass('hidden', !data.pinned);
|
||||
if (data.pinned) {
|
||||
icon.translateAttr('title', (
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"packageRules": [
|
||||
{
|
||||
"updateTypes": ["minor", "patch", "pin", "digest"],
|
||||
"automerge": true
|
||||
"automerge": true,
|
||||
"excludePackageNames": ["colors"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ module.exports = function (Categories) {
|
||||
let cids = await findCids(query, data.hardCap);
|
||||
|
||||
const result = await plugins.hooks.fire('filter:categories.search', {
|
||||
data: data,
|
||||
cids: cids,
|
||||
uid: uid,
|
||||
});
|
||||
|
||||
@@ -53,10 +53,10 @@ module.exports = function (SocketCategories) {
|
||||
const result = await categories.search({
|
||||
uid: uid,
|
||||
query: data.search,
|
||||
qs: data.query,
|
||||
paginate: false,
|
||||
});
|
||||
|
||||
|
||||
let matchedCids = result.categories.map(c => c.cid);
|
||||
// no need to filter if all 3 states are used
|
||||
const filterByWatchState = !Object.values(categories.watchStates)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
const nconf = require('nconf');
|
||||
const winston = require('winston');
|
||||
|
||||
const user = require('./index');
|
||||
const utils = require('../utils');
|
||||
@@ -69,6 +70,11 @@ UserEmail.sendValidationEmail = async function (uid, options) {
|
||||
* - force, sends email even if it is too soon to send another
|
||||
*/
|
||||
|
||||
if (meta.config.sendValidationEmail !== 1) {
|
||||
winston.verbose(`[user/email] Validation email for uid ${uid} not sent due to config settings`);
|
||||
return;
|
||||
}
|
||||
|
||||
options = options || {};
|
||||
|
||||
// Fallback behaviour (email passed in as second argument)
|
||||
@@ -110,6 +116,7 @@ UserEmail.sendValidationEmail = async function (uid, options) {
|
||||
await db.expireAt(`confirm:${confirm_code}`, Math.floor((Date.now() / 1000) + (60 * 60 * 24)));
|
||||
const username = await user.getUserField(uid, 'username');
|
||||
|
||||
winston.verbose(`[user/email] Validation email for uid ${uid} sent to ${options.email}`);
|
||||
events.log({
|
||||
type: 'email-confirmation-sent',
|
||||
uid,
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
<input type="text" class="form-control input-lg" id="email:from_name" data-field="email:from_name" placeholder="NodeBB" /><br />
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="removeEmailNotificationImages" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" id="removeEmailNotificationImages" data-field="removeEmailNotificationImages" name="removeEmailNotificationImages" />
|
||||
<span class="mdl-switch__label">[[admin/settings/email:notifications.remove-images]]</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="requireEmailAddress" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" id="requireEmailAddress" data-field="requireEmailAddress" name="requireEmailAddress" />
|
||||
@@ -35,6 +28,13 @@
|
||||
</div>
|
||||
<p class="help-block">[[admin/settings/email:require-email-address-warning]]</p>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="sendValidationEmail" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" id="sendValidationEmail" data-field="sendValidationEmail" name="sendValidationEmail" />
|
||||
<span class="mdl-switch__label">[[admin/settings/email:send-validation-email]]</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="includeUnverifiedEmails" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" id="includeUnverifiedEmails" data-field="includeUnverifiedEmails" name="includeUnverifiedEmails" />
|
||||
@@ -50,6 +50,13 @@
|
||||
</label>
|
||||
</div>
|
||||
<p class="help-block">[[admin/settings/email:prompt-help]]</p>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="removeEmailNotificationImages" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" id="removeEmailNotificationImages" data-field="removeEmailNotificationImages" name="removeEmailNotificationImages" />
|
||||
<span class="mdl-switch__label">[[admin/settings/email:notifications.remove-images]]</span>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user