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.

oauth test

+11 -86
-86
embed.js
··· 1 - "use strict"; 2 - var EMBED_URL = "https://embed.bsky.app"; 3 - window.bluesky = window.bluesky || { 4 - scan: scan, 5 - }; 6 - /** 7 - * Listen for messages from the Bluesky embed iframe and adjust the height of 8 - * the iframe accordingly. 9 - */ 10 - window.addEventListener("message", function (event) { 11 - if (event.origin !== EMBED_URL) { 12 - return; 13 - } 14 - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment 15 - var id = event.data.id; 16 - if (!id) { 17 - return; 18 - } 19 - var embed = document.querySelector('[data-bluesky-id="'.concat(id, '"]')); 20 - if (!embed) { 21 - return; 22 - } 23 - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment 24 - var height = event.data.height; 25 - if (height) { 26 - embed.style.height = "".concat(height, "px"); 27 - } 28 - }); 29 - /** 30 - * Scan the document for all elements with the data-bluesky-aturi attribute, 31 - * and initialize them as Bluesky embeds. 32 - * 33 - * @param element Only scan this specific element @default document @optional 34 - * @returns 35 - */ 36 - function scan(node) { 37 - if (node === void 0) { 38 - node = document; 39 - } 40 - var embeds = node.querySelectorAll("[data-bluesky-uri]"); 41 - for (var i = 0; i < embeds.length; i++) { 42 - var id = String(Math.random()).slice(2); 43 - var embed = embeds[i]; 44 - var aturi = embed.getAttribute("data-bluesky-uri"); 45 - if (!aturi) { 46 - continue; 47 - } 48 - var ref_url = location.origin + location.pathname; 49 - var searchParams = new URLSearchParams(); 50 - searchParams.set("id", id); 51 - if (ref_url.startsWith("http")) { 52 - searchParams.set("ref_url", encodeURIComponent(ref_url)); 53 - } 54 - if (embed.dataset.blueskyEmbedColorMode) { 55 - searchParams.set("colorMode", embed.dataset.blueskyEmbedColorMode); 56 - } 57 - var iframe = document.createElement("iframe"); 58 - iframe.setAttribute("data-bluesky-id", id); 59 - iframe.src = "" 60 - .concat(EMBED_URL, "/embed/") 61 - .concat(aturi.slice("at://".length), "?") 62 - .concat(searchParams.toString()); 63 - iframe.width = "100%"; 64 - iframe.style.border = "none"; 65 - iframe.style.display = "block"; 66 - iframe.style.flexGrow = "1"; 67 - iframe.frameBorder = "0"; 68 - iframe.scrolling = "no"; 69 - var container = document.createElement("div"); 70 - container.style.maxWidth = "600px"; 71 - container.style.width = "100%"; 72 - container.style.marginTop = "10px"; 73 - container.style.marginBottom = "10px"; 74 - container.style.display = "flex"; 75 - container.className = "bluesky-embed"; 76 - container.appendChild(iframe); 77 - embed.replaceWith(container); 78 - } 79 - } 80 - if (["interactive", "complete"].indexOf(document.readyState) !== -1) { 81 - scan(); 82 - } else { 83 - document.addEventListener("DOMContentLoaded", function () { 84 - return scan(); 85 - }); 86 - }
+11
oauth-client-metadata.json
··· 1 + { 2 + "client_id": "https://bailey.tngl.io/remember-when/oauth-client-metadata.json", 3 + "client_uri": "https://bailey.tngl.io/remember-when", 4 + "redirect_uris": ["https://bailey.tngl.io/remember-when"], 5 + "dpop_bound_access_tokens": true, 6 + "token_endpoint_auth_method": "none", 7 + "grant_types": ["authorization_code", "refresh_token"], 8 + "scope": "atproto repo:app.bsky.feed.post?action=create", 9 + "response_types": ["code"], 10 + "client_name": "Remember When?" 11 + }