Browse Source

Potential twitter and discourse fix.

pull/432/head
Sebastian Stehle 6 years ago
parent
commit
cd946d6f53
  1. 4
      extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs
  2. 36
      src/Squidex/appsettings.json

4
extensions/Squidex.Extensions/Actions/Discourse/DiscourseActionHandler.cs

@ -47,6 +47,8 @@ namespace Squidex.Extensions.Actions.Discourse
json.Add("category", action.Category.Value);
}
json["raw"] = Format(action.Text, @event);
var requestBody = ToJson(json);
var ruleJob = new DiscourseJob
@ -55,8 +57,6 @@ namespace Squidex.Extensions.Actions.Discourse
RequestBody = requestBody
};
json["raw"] = Format(action.Text, @event);
var description =
action.Topic.HasValue ?
DescriptionCreateTopic :

36
src/Squidex/appsettings.json

@ -112,29 +112,29 @@
/*
* The host name to your email server.
*/
"server": "",
/*
"server": "",
/*
* The sender email address.
*/
"sender": "hello@squidex.io",
/*
"sender": "hello@squidex.io",
/*
* The username to authenticate to your email server.
*/
"username": "",
/*
"username": "",
/*
* The password to authenticate to your email server.
*/
"password": "",
/*
"password": "",
/*
* Always use SSL if possible.
*/
"enableSsl": true,
/*
"enableSsl": true,
/*
* The port to your email server.
*/
"port": 465
},
"port": 465
},
"notifications": {
/*
* The email subject when a new user is added as contributor.
@ -522,9 +522,17 @@
},
/*
*Kafka Producer configuration
*/
* Kafka Producer configuration
*/
"kafka": {
"bootstrapServers": ""
},
/*
* The client information for twitter.
*/
"twitter": {
"clientId": "QZhb3HQcGCvE6G8yNNP9ksNet",
"clientSecret": "Pdu9wdN72T33KJRFdFy1w4urBKDRzIyuKpc0OItQC2E616DuZD"
}
}

Loading…
Cancel
Save