Remember when you made an A+ post last year and everyone clapped bailey.tngl.io/remember-when
2
fork

Configure Feed

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

V0.0.1

+27 -11
+1 -2
README.md
··· 2 2 3 3 I'll write one later. But this project shows your most popular post from a year ago on this day and lets you repost it 4 4 5 - 6 5 ## Notes for streaming 7 6 8 7 - DO NOT DOX YOURSELF ··· 15 14 - [x] that input will look up the users posts for that day a year ago 16 15 - [x] show the posts using bluesky's embed (keep it nice and simple) 17 16 - [x] add in oauth login to repost the post 18 - - [ ] publish on tangled 17 + - [x] publish on tangled 19 18 - [ ] and then we might css.
+26 -9
index.html
··· 3 3 <head> 4 4 <meta charset="utf-8" /> 5 5 <title>Remember When</title> 6 - <meta name="description" content="" /> 6 + <meta 7 + name="description" 8 + content="Remember what you were posting this day last year." 9 + /> 7 10 <meta name="viewport" content="width=device-width, initial-scale=1" /> 8 11 <link 9 12 rel="stylesheet" ··· 27 30 <div> 28 31 <form id="lookupForm"> 29 32 <h1>Remember when?</h1> 33 + <span 34 + >Remember what you were posting this day last year and share 35 + with others if you log in</span 36 + > 37 + <br /> 38 + <br /> 39 + 30 40 <label>Check someone else's remember when?</label> 31 41 <input required id="handle" /> 32 42 <button type="submit">Remember</button> ··· 61 71 getSession, 62 72 deleteStoredSession, 63 73 } from "https://cdn.jsdelivr.net/npm/@atcute/oauth-browser-client/+esm"; 64 - 65 74 import { 66 75 LocalActorResolver, 67 76 XrpcHandleResolver, ··· 72 81 DohJsonHandleResolver, 73 82 WellKnownHandleResolver, 74 83 } from "https://cdn.jsdelivr.net/npm/@atcute/identity-resolver/+esm"; 75 - 76 84 import { getPdsEndpoint } from "https://cdn.jsdelivr.net/npm/@atcute/identity/+esm"; 77 - 78 85 import * as TID from "https://cdn.jsdelivr.net/npm/@atcute/tid/+esm"; 79 - 80 86 import { 81 87 Client, 82 88 simpleFetchHandler, 83 89 } from "https://cdn.jsdelivr.net/npm/@atcute/client/+esm"; 84 - 85 90 import blueskyPostEmbed from "https://cdn.jsdelivr.net/npm/bluesky-post-embed/+esm"; 91 + import RichtextBuilder from "https://cdn.jsdelivr.net/npm/@atcute/bluesky-richtext-builder/+esm"; 86 92 87 93 const handleResolver = new CompositeHandleResolver({ 88 94 methods: { ··· 383 389 384 390 async function remindOthers() { 385 391 try { 386 - console.log(rememberWhenPost); 392 + const rt = new RichtextBuilder() 393 + .addText("Remember when? Get yours here: ") 394 + .addLink( 395 + "https://bailey.tngl.io/remember-when", 396 + "https://bailey.tngl.io/remember-when", 397 + ) 398 + .addText("\nCreated by: ") 399 + .addMention( 400 + "@pds.dad", 401 + "did:plc:rnpkyqnmsw4ipey6eotbdnnf", 402 + ); 403 + 387 404 await atClient.post("com.atproto.repo.createRecord", { 388 405 input: { 389 406 repo: loggedInDid, 390 407 collection: "app.bsky.feed.post", 391 408 record: { 392 409 $type: "app.bsky.feed.post", 393 - text: "Remember when?", 410 + text: rt.text, 394 411 embed: { 395 412 $type: "app.bsky.embed.record", 396 - 397 413 record: { 398 414 cid: rememberWhenPost.cid, 399 415 uri: rememberWhenPost.uri, 400 416 }, 401 417 }, 402 418 langs: ["en"], 419 + facets: rt.facets, 403 420 createdAt: new Date().toISOString(), 404 421 }, 405 422 },