diff --git a/src/app.d.ts b/src/app.d.ts index f5bff8f..c7f3e51 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -88,7 +88,7 @@ declare global { pinned: boolean, commentsLocked: boolean, sharesLocked: boolean, - blocks: StorageBlock[], // TODO + blocks: StorageBlock[], plainTextBody: string, postingProject: Project; shareTree: unknown[]; // TODO diff --git a/src/lib/cohost.js b/src/lib/cohost.js index fa60e49..e9513db 100644 --- a/src/lib/cohost.js +++ b/src/lib/cohost.js @@ -75,8 +75,8 @@ export async function fetchAllPosts(page = 0) { * @returns {Promise} */ async function getPostsUncached() { - return await fetchAllPosts(); - //return JSON.parse(await fs.readFile('src/testPosts.json', 'utf8')).filter(post => post.tags.includes('cohost-blogger')); + //return await fetchAllPosts(); + return JSON.parse(await fs.readFile('src/testPosts.json', 'utf8')).filter(post => post.tags.includes('cohost-blogger')); } // this technically only stores the preview data - the posts on the actual pages are always fetched diff --git a/src/lib/markdown/processors.js b/src/lib/markdown/processors.js index 9b9b692..2f26916 100644 --- a/src/lib/markdown/processors.js +++ b/src/lib/markdown/processors.js @@ -85,7 +85,8 @@ export function makeLazyEmbeds(hast) { src: node.properties?.href, autoplay: 'true', playsinline: 'true', - loop: 'true', + // todo: what the hell + loop: node.properties?.href.includes('autoplay=false') ? 'false' : 'true', style: 'width: 100%;max-width: 600px', controls: 'true' },