backend-manager 3.2.148 → 3.2.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,6 +52,7 @@ Module.prototype.main = function (assistant, context) {
|
|
|
52
52
|
// Fix settings
|
|
53
53
|
settings.articles = settings.articles || 0;
|
|
54
54
|
settings.sources = settings.sources || [];
|
|
55
|
+
settings.links = settings.links || [];
|
|
55
56
|
settings.prompt = settings.prompt || '';
|
|
56
57
|
settings.app = await self.getAppData(appId).catch((e) => e);
|
|
57
58
|
|
|
@@ -113,7 +114,7 @@ Module.prototype.harvest = function (settings) {
|
|
|
113
114
|
|
|
114
115
|
// Get suggestion
|
|
115
116
|
if (source === '$app') {
|
|
116
|
-
suggestion = 'Write an article about any topic that would be relevant to our website and business
|
|
117
|
+
suggestion = 'Write an article about any topic that would be relevant to our website and business (it does not have to be about our company, but it can be)';
|
|
117
118
|
} else if (isURL) {
|
|
118
119
|
suggestion = await self.getURLContent(source).catch((e) => e);
|
|
119
120
|
} else {
|
|
@@ -261,6 +262,7 @@ Module.prototype.requestGhostii = function (settings, content) {
|
|
|
261
262
|
headerImageUrl: 'unsplash',
|
|
262
263
|
url: settings.app.url,
|
|
263
264
|
feedUrl: `${settings.app.url}/feeds/posts.json`,
|
|
265
|
+
links: settings.links,
|
|
264
266
|
},
|
|
265
267
|
})
|
|
266
268
|
.then((r) => resolve(r))
|
|
@@ -278,6 +280,12 @@ Module.prototype.uploadPost = function (settings, article) {
|
|
|
278
280
|
const context = self.context;
|
|
279
281
|
|
|
280
282
|
return new Promise(async function(resolve, reject) {
|
|
283
|
+
// if (assistant.isDevelopment()) {
|
|
284
|
+
// assistant.log('uploadPost(): Skipping because we are in development mode');
|
|
285
|
+
|
|
286
|
+
// return resolve();
|
|
287
|
+
// }
|
|
288
|
+
|
|
281
289
|
// Fetch URL
|
|
282
290
|
fetch(`${settings.app.server}/bm_api`, {
|
|
283
291
|
method: 'post',
|