tiiny polishing things now
This commit is contained in:
parent
093787d238
commit
56948be9a2
|
@ -88,7 +88,7 @@ declare global {
|
|||
pinned: boolean,
|
||||
commentsLocked: boolean,
|
||||
sharesLocked: boolean,
|
||||
blocks: StorageBlock[], // TODO
|
||||
blocks: StorageBlock[],
|
||||
plainTextBody: string,
|
||||
postingProject: Project;
|
||||
shareTree: unknown[]; // TODO
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue