Skip to content

Commit 19743d3

Browse files
author
SeRoNet Concourse
committed
Merge remote-tracking branch 'rocket.chat/develop' into HEAD
2 parents 1b503d8 + 18bee7a commit 19743d3

14 files changed

Lines changed: 2387 additions & 5646 deletions

File tree

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
no-response:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/stale@v3.0.18
11+
- uses: actions/stale@v3.0.19
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
1414
days-before-stale: 10
@@ -26,7 +26,7 @@ jobs:
2626
# stale:
2727
# runs-on: ubuntu-latest
2828
# steps:
29-
# - uses: actions/stale@v3.0.18
29+
# - uses: actions/stale@v3.0.19
3030
# with:
3131
# repo-token: ${{ secrets.GITHUB_TOKEN }}
3232
# days-before-stale: 60

app/chatpal-search/server/provider/provider.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { searchProviderService, SearchProvider } from '../../../search/server';
44
import ChatpalLogger from '../utils/logger';
55
import { Subscriptions, Rooms } from '../../../models';
66
import { baseUrl } from '../utils/settings';
7-
87
import Index from './index';
98

109
/**

app/lib/server/functions/insertMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const insertMessage = function(user, message, rid, upsert = false) {
119119

120120
const urls = message.html.match(/([A-Za-z]{3,9}):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+=!:~%\/\.@\,\(\)\w]*)?\??([-\+=&!:;%@\/\.\,\w]+)?(?:#([^\s\)]+))?)?/g);
121121
if (urls) {
122-
message.urls = urls.map((url) => ({ url }));
122+
message.urls = [...new Set(urls)].map((url) => ({ url }));
123123
}
124124

125125
message = Markdown.mountTokensBack(message, false);

app/lib/server/functions/parseUrlsInMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const parseUrlsInMessage = (message) => {
1010

1111
const urls = message.html.match(/([A-Za-z]{3,9}):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+=!:~%\/\.@\,\w]*)?\??([-\+=&!:;%@\/\.\,\w]+)?(?:#([^\s\)]+))?)?/g) || [];
1212
if (urls) {
13-
message.urls = urls.map((url) => ({ url }));
13+
message.urls = [...new Set(urls)].map((url) => ({ url }));
1414
}
1515

1616
message = Markdown.mountTokensBack(message, false);

app/lib/server/functions/saveCustomFields.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import s from 'underscore.string';
22

33
import { settings } from '../../../settings';
4-
54
import { validateCustomFields, saveCustomFieldsWithoutValidation } from '.';
65

76
export const saveCustomFields = function(userId, formData) {

app/lib/server/functions/saveUser.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { validateEmailDomain } from '../lib';
1212
import { validateUserRoles } from '../../../../ee/app/authorization/server/validateUserRoles';
1313
import { getNewUserRoles } from '../../../../server/services/user/lib/getNewUserRoles';
1414
import { saveUserIdentity } from './saveUserIdentity';
15-
1615
import { checkEmailAvailability, checkUsernameAvailability, setUserAvatar, setEmail, setStatusText } from '.';
1716

1817
let html = '';

app/lib/server/functions/setEmail.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { hasPermission } from '../../../authorization';
77
import { RateLimiter, validateEmailDomain } from '../lib';
88
import * as Mailer from '../../../mailer';
99
import { settings } from '../../../settings';
10-
1110
import { checkEmailAvailability } from '.';
1211

1312
let html = '';

app/lib/server/functions/setUsername.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { hasPermission } from '../../../authorization';
88
import { RateLimiter } from '../lib';
99
import { addUserToRoom } from './addUserToRoom';
1010
import { api } from '../../../../server/sdk/api';
11-
1211
import { checkUsernameAvailability, setUserAvatar, getAvatarSuggestionForUser } from '.';
1312

1413
export const _setUsername = function(userId, u, fullUser) {

app/lib/server/lib/interceptDirectReplyEmails.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { simpleParser } from 'mailparser';
44

55
import { settings } from '../../../settings';
66
import { IMAPInterceptor } from '../../../../server/email/IMAPInterceptor';
7-
87
import { processDirectEmail } from '.';
98

109
export class IMAPIntercepter extends IMAPInterceptor {

app/theme/client/imports/general/base.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ button {
239239
.rc-old .main-content-flex {
240240
flex: 1 0 auto !important; /* 1 */
241241

242-
height: auto !important; /* 1 */
242+
height: auto !important; /* 1 */
243243
}
244244

245245
.rc-alerts {
@@ -269,4 +269,4 @@ button {
269269

270270
/*
271271
1. The `!important` directive is necessary to override components' autogenerated styles.
272-
*/
272+
*/

0 commit comments

Comments
 (0)