this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

no card

alice 12c9b809 7ba278de

+35 -35
+17 -17
src/constants.ts
··· 1 1 import { Label } from './types.js'; 2 2 3 - export const DELETE = '3l7rgyic32l2e'; 3 + export const DELETE = '3l7rhroj4fk2d'; 4 4 export const LABEL_LIMIT = 2; 5 5 export const LABELS: Label[] = [ 6 6 { 7 - rkey: '3l7rgxxyphl2e', 7 + rkey: '3l7rhrlzhik2p', 8 8 identifier: 'fise-isfp', 9 9 typeinmindUrl: 'https://www.typeinmind.com/fise', 10 10 locales: [ ··· 12 12 ] 13 13 }, 14 14 { 15 - rkey: '3l7rgxzsi4k2c', 15 + rkey: '3l7rhrm6asw2u', 16 16 identifier: 'tine-intp', 17 17 typeinmindUrl: 'https://www.typeinmind.com/tine', 18 18 locales: [ ··· 20 20 ] 21 21 }, 22 22 { 23 - rkey: '3l7rgy2tueu27', 23 + rkey: '3l7rhrmd6262u', 24 24 identifier: 'fine-infp', 25 25 typeinmindUrl: 'https://www.typeinmind.com/fine', 26 26 locales: [ ··· 28 28 ] 29 29 }, 30 30 { 31 - rkey: '3l7rgy3ounc2h', 31 + rkey: '3l7rhrmhxe427', 32 32 identifier: 'tise-istp', 33 33 typeinmindUrl: 'https://www.typeinmind.com/tise', 34 34 locales: [ ··· 36 36 ] 37 37 }, 38 38 { 39 - rkey: '3l7rgy4jvxe2f', 39 + rkey: '3l7rhrmmwmd2e', 40 40 identifier: 'nife-infj', 41 41 typeinmindUrl: 'https://www.typeinmind.com/nife', 42 42 locales: [ ··· 44 44 ] 45 45 }, 46 46 { 47 - rkey: '3l7rgy5e4qg2o', 47 + rkey: '3l7rhrmroxm2f', 48 48 identifier: 'nite-intj', 49 49 typeinmindUrl: 'https://www.typeinmind.com/nite', 50 50 locales: [ ··· 52 52 ] 53 53 }, 54 54 { 55 - rkey: '3l7rgy674442f', 55 + rkey: '3l7rhrmwn6k2c', 56 56 identifier: 'sife-isfj', 57 57 typeinmindUrl: 'https://www.typeinmind.com/sife', 58 58 locales: [ ··· 60 60 ] 61 61 }, 62 62 { 63 - rkey: '3l7rgy7hb7o2a', 63 + rkey: '3l7rhrn3lf22c', 64 64 identifier: 'site-istj', 65 65 typeinmindUrl: 'https://www.typeinmind.com/site', 66 66 locales: [ ··· 68 68 ] 69 69 }, 70 70 { 71 - rkey: '3l7rgyacxve27', 71 + rkey: '3l7rhrnandj24', 72 72 identifier: 'feni-enfj', 73 73 typeinmindUrl: 'https://www.typeinmind.com/feni', 74 74 locales: [ ··· 76 76 ] 77 77 }, 78 78 { 79 - rkey: '3l7rgyb6nov2z', 79 + rkey: '3l7rhrnfjlj24', 80 80 identifier: 'fesi-esfj', 81 81 typeinmindUrl: 'https://www.typeinmind.com/fesi', 82 82 locales: [ ··· 84 84 ] 85 85 }, 86 86 { 87 - rkey: '3l7rgycjdwm2f', 87 + rkey: '3l7rhrnkivl2e', 88 88 identifier: 'teni-entj', 89 89 typeinmindUrl: 'https://www.typeinmind.com/teni', 90 90 locales: [ ··· 92 92 ] 93 93 }, 94 94 { 95 - rkey: '3l7rgyebfsg2u', 95 + rkey: '3l7rhrnpe3v2o', 96 96 identifier: 'tesi-estj', 97 97 typeinmindUrl: 'https://www.typeinmind.com/tesi', 98 98 locales: [ ··· 100 100 ] 101 101 }, 102 102 { 103 - rkey: '3l7rgyfjwqu2f', 103 + rkey: '3l7rhrnugc42f', 104 104 identifier: 'nefi-enfp', 105 105 typeinmindUrl: 'https://www.typeinmind.com/nefi', 106 106 locales: [ ··· 108 108 ] 109 109 }, 110 110 { 111 - rkey: '3l7rgyghptg2a', 111 + rkey: '3l7rhrnzam22c', 112 112 identifier: 'neti-entp', 113 113 typeinmindUrl: 'https://www.typeinmind.com/neti', 114 114 locales: [ ··· 116 116 ] 117 117 }, 118 118 { 119 - rkey: '3l7rgyhbey72t', 119 + rkey: '3l7rhro6his2p', 120 120 identifier: 'sefi-esfp', 121 121 typeinmindUrl: 'https://www.typeinmind.com/sefi', 122 122 locales: [ ··· 124 124 ] 125 125 }, 126 126 { 127 - rkey: '3l7rgyi52rs2r', 127 + rkey: '3l7rhroe55427', 128 128 identifier: 'seti-estp', 129 129 typeinmindUrl: 'https://www.typeinmind.com/seti', 130 130 locales: [
+18 -18
src/set-posts.ts
··· 52 52 const labelNamesAndUrls = LABELS.map((label) => ({ name: label.locales[0].name, url: label.typeinmindUrl })); 53 53 const labelRkeys: Record<string, string> = {}; 54 54 for (const label of labelNamesAndUrls) { 55 - const card: Card = await (async (url: string) => { 56 - const res = await fetch(`https://cardyb.bsky.app/v1/extract?url=${encodeURIComponent(url)}`); 57 - return await res.json() as Card; 58 - })(label.url); 59 - const image = await (async (url: string) => { 60 - const res = await fetch(url); 61 - return await res.arrayBuffer(); 62 - })(card.image); 63 - const imageBuffer = await sharp(image).jpeg({ quality: 90 }).toBuffer(); 64 - const imageBlob = new Blob([imageBuffer], { type: 'image/jpeg' }); 55 + // const card: Card = await (async (url: string) => { 56 + // const res = await fetch(`https://cardyb.bsky.app/v1/extract?url=${encodeURIComponent(url)}`); 57 + // return await res.json() as Card; 58 + // })(label.url); 59 + // const image = await (async (url: string) => { 60 + // const res = await fetch(url); 61 + // return await res.arrayBuffer(); 62 + // })(card.image); 63 + // const imageBuffer = await sharp(image).jpeg({ quality: 90 }).toBuffer(); 64 + // const imageBlob = new Blob([imageBuffer], { type: 'image/jpeg' }); 65 65 const labelPost = await post.reply({ 66 66 text: label.name, 67 67 facets: [ ··· 78 78 ], 79 79 }, 80 80 ], 81 - external: { 82 - uri: card.url, 83 - title: card.title, 84 - description: card.description, 85 - thumb: { 86 - data: imageBlob, 87 - } 88 - }, 81 + // external: { 82 + // uri: card.url, 83 + // title: card.title, 84 + // description: card.description, 85 + // thumb: { 86 + // data: imageBlob, 87 + // } 88 + // }, 89 89 }); 90 90 labelRkeys[label.name] = labelPost.uri.split('/').pop()!; 91 91 }