tiiny polishing things now
This commit is contained in:
parent
093787d238
commit
56948be9a2
|
@ -88,7 +88,7 @@ declare global {
|
||||||
pinned: boolean,
|
pinned: boolean,
|
||||||
commentsLocked: boolean,
|
commentsLocked: boolean,
|
||||||
sharesLocked: boolean,
|
sharesLocked: boolean,
|
||||||
blocks: StorageBlock[], // TODO
|
blocks: StorageBlock[],
|
||||||
plainTextBody: string,
|
plainTextBody: string,
|
||||||
postingProject: Project;
|
postingProject: Project;
|
||||||
shareTree: unknown[]; // TODO
|
shareTree: unknown[]; // TODO
|
||||||
|
|
|
@ -75,8 +75,8 @@ export async function fetchAllPosts(page = 0) {
|
||||||
* @returns {Promise<Post[]>}
|
* @returns {Promise<Post[]>}
|
||||||
*/
|
*/
|
||||||
async function getPostsUncached() {
|
async function getPostsUncached() {
|
||||||
return await fetchAllPosts();
|
//return await fetchAllPosts();
|
||||||
//return JSON.parse(await fs.readFile('src/testPosts.json', 'utf8')).filter(post => post.tags.includes('cohost-blogger'));
|
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
|
// 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,
|
src: node.properties?.href,
|
||||||
autoplay: 'true',
|
autoplay: 'true',
|
||||||
playsinline: 'true',
|
playsinline: 'true',
|
||||||
loop: 'true',
|
// todo: what the hell
|
||||||
|
loop: node.properties?.href.includes('autoplay=false') ? 'false' : 'true',
|
||||||
style: 'width: 100%;max-width: 600px',
|
style: 'width: 100%;max-width: 600px',
|
||||||
controls: 'true'
|
controls: 'true'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue