Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
scripting committed Sep 30, 2023
1 parent 09dcfd2 commit a0e6d6d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
16 changes: 9 additions & 7 deletions blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,16 @@ function buildRss (screenname, callback) {
}
});

var f = config.localRssPath + screenname + ".xml";
utils.sureFilePath (f, function () {
fs.writeFile (f, xmltext, function (err) {
if (err) {
console.log ("buildRss: err.message == " + err.message);
}
if (config.flWriteRssFilesLocally) { //9/27/23 by DW
var f = config.localRssPath + screenname + ".xml";
utils.sureFilePath (f, function () {
fs.writeFile (f, xmltext, function (err) {
if (err) {
console.log ("buildRss: err.message == " + err.message);
}
});
});
});
}
}
});
});
Expand Down
3 changes: 2 additions & 1 deletion feedland.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const myVersion = "0.5.95", myProductName = "feedland";
const myVersion = "0.5.96", myProductName = "feedland";

exports.start = start; //1/18/23 by DW

Expand All @@ -20,6 +20,7 @@ var config = {
urlForFeeds: "http://data.feedland.org/feeds/", //11/5/22 by DW
s3PathForFeeds: "/data.feedland.org/feeds/",

flWriteRssFilesLocally: true, //9/27/23 by DW
localRssPath: "data/feeds/",
generatorForFeed: myProductName + " v" + myVersion,
docsForFeed: "https://cyber.harvard.edu/rss/rss.html",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "feedland",
"description": "The top level of the FeedLand server, the source code for the NPM feedland package.",
"author": "Dave Winer <[email protected]>",
"version": "0.5.95",
"version": "0.5.96",
"license": "GPLV2",
"main": "feedland.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions source.opml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- OPML generated by OPML Editor v10.1b19 on Wed, 27 Sep 2023 15:56:06 GMT -->
<!-- OPML generated by OPML Editor v10.1b19 on Wed, 27 Sep 2023 22:48:17 GMT -->

<!--
Hi this is Dave Winer. I write all my project code in an outliner, which
Expand All @@ -16,7 +16,7 @@
<head>
<title>config.nodeEditor.projects.feedLand.scripts</title>
<dateCreated>Sat, 28 May 2022 16:17:20 GMT</dateCreated>
<dateModified>Wed, 27 Sep 2023 15:56:06 GMT</dateModified>
<dateModified>Wed, 27 Sep 2023 22:48:17 GMT</dateModified>
<ownerName>Dave Winer</ownerName>
<ownerId>http://davewiner.com/</ownerId>
<expansionState>1, 6, 7, 8, 12</expansionState>
Expand Down
8 changes: 8 additions & 0 deletions worknotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
9/27/23; 6:46:23 PM by DW -- v0.5.96

config.flWriteRssFilesLocally is new, default true.

if true we write out RSS files to the local hard drive.

set it false obviously if your system doesn't have the ability to write to the local drive.

#### 9/26/23; 12:08:03 PM by DW

New config settings
Expand Down

0 comments on commit a0e6d6d

Please sign in to comment.