add the option ignoreReplies - now for real
parent
e577012002
commit
782b1edd53
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jam-my-stack",
|
||||
"version": "1.0.14",
|
||||
"version": "1.0.15",
|
||||
"repository": {
|
||||
"url": "https://github.com/wgroeneveld/jam-my-stack",
|
||||
"type": "git"
|
||||
|
|
|
@ -101,7 +101,7 @@ async function parseMastoFeed(options) {
|
|||
day
|
||||
}
|
||||
})
|
||||
.filter(itm => ignoreReplies ? itm.context .length > 0 : true)
|
||||
.filter(itm => ignoreReplies ? !itm.context : true)
|
||||
.filter(itm => !notes.includes(`${itm.year}/${itm.month}/${itm.hash}`))
|
||||
.forEach(itm => convertAtomItemToMd(itm, notesdir))
|
||||
}
|
||||
|
|
|
@ -33,6 +33,68 @@
|
|||
|
||||
|
||||
<link rel="next" href="https://chat.brainbaking.com/users/wouter/feed.atom?max_id=A4fIjNa6N1OJmaSMAS" type="application/atom+xml"/>
|
||||
|
||||
<entry>
|
||||
<activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
|
||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||
<id>https://chat.brainbaking.com/objects/b5b67e88-eda8-45dd-ab8f-54443b62e250</id>
|
||||
<title>@houkimenator Aren&#39;t you forgetting that it is (mostly) the state that makes sure universit...</title>
|
||||
<content type="html"><span class="h-card"><a class="u-url mention" data-user="A5OhJ18LyRGm37qKgK" href="https://mastodon.technology/@houkimenator" rel="ugc">@<span>houkimenator</span></a></span> <br><br>Aren&#39;t you forgetting that it is (mostly) the state that makes sure universities receive funding to be able to do the research in the first place? Curious to see your view on that &#39;free&#39; ecosystem in the future. I hope you aren&#39;t insinuating to privatize that fund flow. <br><br><span class="h-card"><a class="u-url mention" data-user="A58Lcc2JgjJWTxbCxU" href="https://mastodon.social/@fribbledom" rel="ugc">@<span>fribbledom</span></a></span></content>
|
||||
<published>2021-03-20T11:12:08.955177Z</published>
|
||||
<updated>2021-03-20T11:12:08.955177Z</updated>
|
||||
<ostatus:conversation ref="tag:mastodon.social,2021-03-20:objectId=227433498:objectType=Conversation">
|
||||
tag:mastodon.social,2021-03-20:objectId=227433498:objectType=Conversation
|
||||
</ostatus:conversation>
|
||||
<link href="tag:mastodon.social,2021-03-20:objectId=227433498:objectType=Conversation" rel="ostatus:conversation"/>
|
||||
|
||||
|
||||
<summary></summary>
|
||||
|
||||
|
||||
|
||||
<link type="application/atom+xml" href='https://chat.brainbaking.com/objects/b5b67e88-eda8-45dd-ab8f-54443b62e250' rel="self"/>
|
||||
<link type="text/html" href='https://chat.brainbaking.com/objects/b5b67e88-eda8-45dd-ab8f-54443b62e250' rel="alternate"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<thr:in-reply-to ref='https://mastodon.technology/users/houkimenator/statuses/105921465093697801' href='https://mastodon.technology/users/houkimenator/statuses/105921465093697801'/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="https://mastodon.technology/users/houkimenator"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="https://mastodon.social/users/fribbledom"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="https://chat.brainbaking.com/users/wouter"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
|
||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||
|
|
|
@ -37,7 +37,7 @@ describe("mastodon feed parser tests", () => {
|
|||
})
|
||||
|
||||
dir = await fsp.readdir(`${dumpdir}/2021/03`, { withFileTypes: true })
|
||||
expect(dir.length).toBe(2)
|
||||
expect(dir.length).toBe(3)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue