Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit efbe61b

Browse files
authored
Merge pull request #4974 from withspectrum/3.1.0
3.1.0
2 parents f97aa8e + 1fa7cae commit efbe61b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1404
-419
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
exports.up = function(r, conn) {
2+
return r
3+
.table('messages')
4+
.filter({ bot: true })
5+
.delete()
6+
.run(conn);
7+
};
8+
9+
exports.down = function(r, conn) {
10+
return Promise.resolve();
11+
};

api/mutations/thread/publishThread.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -348,26 +348,6 @@ export default requireAuth(
348348
),
349349
]);
350350

351-
// Post a new message with a link to the new thread to the watercooler thread if one exists
352-
if (community.watercoolerId && !channel.isPrivate) {
353-
await addMessage(
354-
{
355-
content: {
356-
body: `${
357-
user.name
358-
} just posted a new thread 📝 https://spectrum.chat/${
359-
community.slug
360-
}/${channel.slug}/${slugg(dbThread.content.title)}~${dbThread.id}`,
361-
},
362-
messageType: 'text',
363-
threadId: community.watercoolerId,
364-
threadType: 'story',
365-
bot: true,
366-
},
367-
user.id
368-
);
369-
}
370-
371351
if (!thread.filesToUpload || thread.filesToUpload.length === 0) {
372352
return dbThread;
373353
}

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"react-router": "^4.0.0-beta.7",
110110
"react-router-dom": "^4.0.0-beta.7",
111111
"react-textarea-autosize": "^4.0.5",
112-
"react-transition-group": "^2.7.0",
112+
"react-transition-group": "^2.7.1",
113113
"react-trend": "^1.2.4",
114114
"recompose": "^0.23.1",
115115
"redis-tag-cache": "^1.2.1",

api/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8072,10 +8072,10 @@ react-textarea-autosize@^4.0.5:
80728072
dependencies:
80738073
prop-types "^15.5.8"
80748074

8075-
react-transition-group@^2.7.0:
8076-
version "2.7.0"
8077-
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-2.7.0.tgz#60ca3bb2bf83fe71c50816a936e985ce7b8134dc"
8078-
integrity sha512-CzF22K0x6arjQO4AxkasMaiYcFG/QH0MhPNs45FmNsfWsQmsO9jv52sIZJAalnlryD5RgrrbLtV5CMJSokrrMA==
8075+
react-transition-group@^2.7.1:
8076+
version "2.7.1"
8077+
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-2.7.1.tgz#1fe6d54e811e8f9dfd329aa836b39d9cd16587cb"
8078+
integrity sha512-b0VJTzNRnXxRpCuxng6QJbAzmmrhBn1BZJfPPnHbH2PIo8msdkajqwtfdyGm/OypPXZNfAHKEqeN15wjMXrRJQ==
80798079
dependencies:
80808080
dom-helpers "^3.3.1"
80818081
loose-envify "^1.4.0"

config-overrides.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const { ReactLoadablePlugin } = require('react-loadable/webpack');
1818
const OfflinePlugin = require('offline-plugin');
1919
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
2020
const BundleBuddyWebpackPlugin = require('bundle-buddy-webpack-plugin');
21+
const CircularDependencyPlugin = require('circular-dependency-plugin');
2122

2223
// Recursively walk a folder and get all file paths
2324
function walkFolder(currentDirPath, callback) {
@@ -164,5 +165,12 @@ module.exports = function override(config, env) {
164165
})
165166
);
166167
}
168+
169+
config.plugins.push(
170+
new CircularDependencyPlugin({
171+
cwd: process.cwd(),
172+
failOnError: true,
173+
})
174+
);
167175
return rewireStyledComponents(config, env, { ssr: true });
168176
};

cypress/integration/channel/view/composer_spec.js

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)