tiiny polishing things now

This commit is contained in:
Jill 2023-04-30 21:37:53 +03:00
parent 093787d238
commit 56948be9a2
Signed by: oat
GPG Key ID: 33489AA58A955108
3 changed files with 5 additions and 4 deletions

2
src/app.d.ts vendored
View File

@ -88,7 +88,7 @@ declare global {
pinned: boolean,
commentsLocked: boolean,
sharesLocked: boolean,
blocks: StorageBlock[], // TODO
blocks: StorageBlock[],
plainTextBody: string,
postingProject: Project;
shareTree: unknown[]; // TODO

View File

@ -75,8 +75,8 @@ export async function fetchAllPosts(page = 0) {
* @returns {Promise<Post[]>}
*/
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

View File

@ -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'
},