fix moment/dayjs transition and webmention fetch crash
This commit is contained in:
parent
bbec2e883f
commit
fe28f8a0c3
|
@ -2,7 +2,7 @@
|
|||
source: "https://chat.brainbaking.com/objects/b60e1777-50e0-4c9a-a378-30790ebc3559"
|
||||
context: ""
|
||||
title: "@eli_oat a serious fire destroyed the data center of my VPS last night: https://twitter.com/oleso..."
|
||||
date: "Invalid Date-Invalid Date-Invalid DateTInvalid Date"
|
||||
date: "2021-03-10T16:24:22"
|
||||
---
|
||||
|
||||
<span class="h-card"><a class="u-url mention" data-user="A54Sl2iQIm74acQBwu" href="https://dog.estate/@eli_oat" rel="ugc">@<span>eli_oat</span></a></span> a serious fire destroyed the data center of my VPS last night: <a href="https://twitter.com/olesovhcom/status/1369478732247932929" rel="ugc">https://twitter.com/olesovhcom/status/1369478732247932929</a> - guess what I did NOT backup: my Mastodon instance. What a disaster. No idea if things get pushed back to this new instance. Just wanting to see if your instance recognizes this username, cause it's a fresh install?
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
source: "https://chat.brainbaking.com/objects/0a61ea12-3f2b-4927-80d1-be73a0ffa0dd"
|
||||
context: ""
|
||||
title: "Great, I can ditch lazysizes.js! Didn't know about this before: https://web.dev/browser-level..."
|
||||
date: "2021-03-12T18:06:14"
|
||||
---
|
||||
|
||||
Great, I can ditch lazysizes.js! Didn't know about this before: <a href="https://web.dev/browser-level-image-lazy-loading/" rel="ugc">https://web.dev/browser-level-image-lazy-loading/</a> and browser support is "good enough": <a href="https://caniuse.com/loading-lazy-attr" rel="ugc">https://caniuse.com/loading-lazy-attr</a>
|
||||
|
|
@ -1,40 +1 @@
|
|||
[
|
||||
{
|
||||
"author": {
|
||||
"name": "Stampeding Longhorn",
|
||||
"picture": "https://cdn.social.linux.pizza/v1/AUTH_91eb37814936490c95da7b85993cc2ff/sociallinuxpizza/accounts/avatars/000/185/996/original/9e36da0c093cfc9b.png"
|
||||
},
|
||||
"content": "undefined...",
|
||||
"published": "2021-03-08T18:35:24",
|
||||
"source": "https://brid.gy/like/mastodon/@wouter@chat.brainbaking.com/A4nx1rFwKUJYSe4TqK/A4nwg4LYyh4WgrJOXg",
|
||||
"target": "/post/2021/02/my-retro-desktop-setup/"
|
||||
},
|
||||
{
|
||||
"author": {
|
||||
"name": "Wouter Groeneveld"
|
||||
},
|
||||
"content": "@StampedingLonghorn I tried to chase him away, but you know how that turned out... 😼 There's even cat hair inside the cases... (to be clear: also unintentional)...",
|
||||
"published": "2021-03-02T16:18:46.000Z",
|
||||
"source": "https://brid.gy/comment/mastodon/@wouter@chat.brainbaking.com/A4nx1rFwKUJYSe4TqK/A4nxVFgAbVtebcM9gW",
|
||||
"target": "/post/2021/02/my-retro-desktop-setup/"
|
||||
},
|
||||
{
|
||||
"author": {
|
||||
"name": "https://jefklakscodex.com/about"
|
||||
},
|
||||
"content": "About the Codex | Jefklaks Codex",
|
||||
"published": "2021-03-08T17:14:25",
|
||||
"source": "https://jefklakscodex.com/about",
|
||||
"target": "/about/"
|
||||
},
|
||||
{
|
||||
"author": {
|
||||
"name": "Stampeding Longhorn",
|
||||
"picture": "https://cdn.social.linux.pizza/v1/AUTH_91eb37814936490c95da7b85993cc2ff/sociallinuxpizza/accounts/avatars/000/185/996/original/9e36da0c093cfc9b.png"
|
||||
},
|
||||
"content": "@wouter The cat pictures are awesome....",
|
||||
"published": "2021-03-02T16:17:18.000Z",
|
||||
"source": "https://brid.gy/comment/mastodon/@wouter@chat.brainbaking.com/A4nx1rFwKUJYSe4TqK/A4nxN8ytch0BW2FVXU",
|
||||
"target": "/post/2021/02/my-retro-desktop-setup/"
|
||||
}
|
||||
]
|
||||
[]
|
|
@ -9,7 +9,7 @@ const fsp = require('fs').promises;
|
|||
await mastodon.parseFeed({
|
||||
notesdir: `${__dirname}/content/notes`,
|
||||
url: "https://chat.brainbaking.com/users/wouter/feed",
|
||||
utcOffset: "+01:00"
|
||||
utcOffset: 60
|
||||
})
|
||||
|
||||
// 2. update goodreads JS widget
|
||||
|
@ -28,7 +28,8 @@ const fsp = require('fs').promises;
|
|||
// 4. get webmentions
|
||||
console.log("4. Fetching webmentions that aren't likes...")
|
||||
const mentions = await webmention.getWebmentions("brainbaking.com")
|
||||
await fsp.writeFile(`${__dirname}/data/webmentions.json`, mentions.filter(m => m.content && m.type !== "like"), 'utf-8')
|
||||
const json = JSON.stringify(mentions.filter(m => m.content && m.type !== "like"))
|
||||
await fsp.writeFile(`${__dirname}/data/webmentions.json`, json, 'utf-8')
|
||||
|
||||
console.log("-- all done!")
|
||||
})()
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
},
|
||||
"homepage": "https://brainbaking.com",
|
||||
"dependencies": {
|
||||
"jam-my-stack": "^1.0.6"
|
||||
"jam-my-stack": "^1.0.7"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
yarn.lock
10
yarn.lock
|
@ -1453,7 +1453,7 @@ __metadata:
|
|||
"@babel/cli": ^7.8.4
|
||||
"@babel/core": ^7.9.6
|
||||
"@babel/preset-env": ^7.10.1
|
||||
jam-my-stack: ^1.0.6
|
||||
jam-my-stack: ^1.0.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
|
@ -2706,9 +2706,9 @@ fsevents@^1.2.7:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jam-my-stack@npm:^1.0.6":
|
||||
version: 1.0.6
|
||||
resolution: "jam-my-stack@npm:1.0.6"
|
||||
"jam-my-stack@npm:^1.0.7":
|
||||
version: 1.0.7
|
||||
resolution: "jam-my-stack@npm:1.0.7"
|
||||
dependencies:
|
||||
dayjs: ^1.10.4
|
||||
ent: ^2.2.0
|
||||
|
@ -2717,7 +2717,7 @@ fsevents@^1.2.7:
|
|||
howlongtobeat: ^1.3.1
|
||||
lunr: ^2.3.9
|
||||
parser-front-matter: ^1.6.4
|
||||
checksum: a02edc71292ef92ed011b3198e31b54518f388c7f6331ff73bee7a7e2df3303233f0e8bf2f8a647850472505b2dfd894715be1f352d861bf40733514831e6459
|
||||
checksum: 572b8f6ec0c2998e2977c8b7e63e9a58f5290911a8767a5cdaac9f998c26566b4eaa276ef8b194da097098d94c614abaa550d4e7b22502b00ba32710834efb9b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
Loading…
Reference in New Issue