mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 09:16:11 +08:00
Cleanup
This commit is contained in:
@@ -83,7 +83,7 @@ class StreamContainer extends React.Component {
|
||||
}
|
||||
});
|
||||
|
||||
this.subscriptions = [sub1, sub2];
|
||||
this.subscriptions.push(sub1, sub2);
|
||||
}
|
||||
|
||||
unsubscribe() {
|
||||
|
||||
@@ -13,7 +13,6 @@ const Action = {
|
||||
// This will load the user for the specific action. We'll limit this to the
|
||||
// admin users only or the current logged in user.
|
||||
user({user_id}, _, {loaders: {Users}, user}) {
|
||||
console.log(user);
|
||||
if (user && (user.can(SEARCH_OTHER_USERS) || user_id === user.id)) {
|
||||
return Users.getByID.load(user_id);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ const createSubscriptionManager = (server) => new SubscriptionServer({
|
||||
try {
|
||||
req = await deserializeUser(upgradeReq);
|
||||
} catch (e) {
|
||||
console.error(connection);
|
||||
console.error(e);
|
||||
|
||||
return new Context({}, pubsub);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ const wrapResponse = require('../../../graph/helpers/response');
|
||||
const {SEARCH_OTHER_USERS} = require('../../../perms/constants');
|
||||
|
||||
function getReactionConfig(reaction) {
|
||||
reaction = reaction.toLowerCase();
|
||||
|
||||
const Reaction = reaction.charAt(0).toUpperCase() + reaction.slice(1);
|
||||
const REACTION = reaction.toUpperCase();
|
||||
const typeDefs = `
|
||||
|
||||
Reference in New Issue
Block a user