mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-19 13:07:40 +01:00
Merge branch 'master' into develop
This commit is contained in:
1
.github/workflows/docker.yml
vendored
1
.github/workflows/docker.yml
vendored
@@ -47,6 +47,7 @@ jobs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}.x
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=ref,event=branch,enable=${{ github.event.repository.default_branch != github.ref }}
|
||||
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v4
|
||||
|
||||
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
||||
#### v3.1.2 (2023-05-12)
|
||||
|
||||
##### Chores
|
||||
|
||||
* incrementing version number - v3.1.1 (40250733)
|
||||
* update changelog for v3.1.1 (ccd6f48c)
|
||||
* incrementing version number - v3.1.0 (0cb386bd)
|
||||
* incrementing version number - v3.0.1 (26f6ea49)
|
||||
* incrementing version number - v3.0.0 (224e08cd)
|
||||
|
||||
##### Bug Fixes
|
||||
|
||||
* #11595, use default value (28740de7)
|
||||
|
||||
#### v3.1.1 (2023-05-11)
|
||||
|
||||
##### Chores
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"homepage": "https://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -235,15 +235,14 @@ define('forum/chats', [
|
||||
}
|
||||
});
|
||||
mousetrap.bind('up', function (e) {
|
||||
if (e.target === components.get('chat/input').get(0)) {
|
||||
const inputEl = components.get('chat/input');
|
||||
if (e.target === inputEl.get(0) && !inputEl.val()) {
|
||||
// Retrieve message id from messages list
|
||||
const message = components.get('chat/messages').find('.chat-message[data-self="1"]').last();
|
||||
if (!message.length) {
|
||||
return;
|
||||
}
|
||||
const lastMid = message.attr('data-mid');
|
||||
const inputEl = components.get('chat/input');
|
||||
|
||||
messages.prepEdit(inputEl, lastMid, ajaxify.data.roomId);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -176,6 +176,11 @@ define('forum/chats/messages', [
|
||||
autoCompleteEl.destroy();
|
||||
}
|
||||
}
|
||||
textarea.on('keyup', (e) => {
|
||||
if (e.key === 'Escape') {
|
||||
finishEdit();
|
||||
}
|
||||
});
|
||||
editEl.find('[data-action="cancel"]').on('click', finishEdit);
|
||||
|
||||
editEl.find('[data-action="save"]').on('click', function () {
|
||||
|
||||
@@ -197,13 +197,17 @@ function setupHelmet(app) {
|
||||
|
||||
if (meta.config['hsts-enabled']) {
|
||||
options.hsts = {
|
||||
maxAge: meta.config['hsts-maxage'],
|
||||
maxAge: Math.max(0, meta.config['hsts-maxage']),
|
||||
includeSubDomains: !!meta.config['hsts-subdomains'],
|
||||
preload: !!meta.config['hsts-preload'],
|
||||
};
|
||||
}
|
||||
|
||||
app.use(helmet(options));
|
||||
try {
|
||||
app.use(helmet(options));
|
||||
} catch (err) {
|
||||
winston.error(`[startup] unable to initialize helmet \n${err.stack}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user