···46464747 let identity = await idResolver.did.resolve(did);
4848 let service = identity?.service?.find((f) => f.id === "#atproto_pds");
4949- console.log(identity);
5049 if (!service) return null;
5150 let cid = (record.icon.ref as unknown as { $link: string })["$link"];
5251 const response = await fetch(
···5655 let resizedImage = await sharp(await blob.arrayBuffer())
5756 .resize({ width: 32, height: 32 })
5857 .toBuffer();
5959- console.log("fetched favicon!");
6058 return new Response(new Uint8Array(resizedImage), {
6159 headers: {
6260 "Content-Type": "image/png",
+1-1
app/lish/createPub/CreatePubForm.tsx
···134134 </a>
135135 </p>
136136 <p className="text-sm text-tertiary font-normal">
137137- This publication will appear on our public Discover page
137137+ You'll be able to change this later!
138138 </p>
139139 </div>
140140 </Checkbox>
···3030import { CodeBlock } from "./CodeBlock";
3131import { HorizontalRule } from "./HorizontalRule";
3232import { deepEquals } from "src/utils/deepEquals";
3333+import { isTextBlock } from "src/utils/isTextBlock";
33343435export type Block = {
3536 factID: string;
···63646465 let mouseHandlers = useBlockMouseHandlers(props);
65666666- // focus block on longpress, shouldnt the type be based on the block type (?)
6767 let { isLongPress, handlers } = useLongPress(() => {
6868+ if (isTextBlock[props.type]) return;
6869 if (isLongPress.current) {
6970 focusBlock(
7071 { type: props.type, value: props.entityID, parent: props.parent },
···389389 let oldEntityID = child.getAttribute("data-entityid") as string;
390390 let factsData = child.getAttribute("data-facts");
391391 if (factsData) {
392392- let facts = JSON.parse(atob(factsData)) as Fact<any>[];
392392+ let facts = JSON.parse(factsData) as Fact<any>[];
393393394394 let oldEntityIDToNewID = {} as { [k: string]: string };
395395 let oldEntities = facts.reduce((acc, f) => {
···11+create table "public"."bsky_follows" (
22+ "identity" text not null,
33+ "follows" text not null
44+);
55+66+alter table "public"."bsky_follows" enable row level security;
77+88+CREATE UNIQUE INDEX bsky_follows_pkey ON public.bsky_follows USING btree (identity, follows);
99+1010+CREATE INDEX facts_reference_idx ON public.facts USING btree (((data ->> 'value'::text))) WHERE (((data ->> 'type'::text) = 'reference'::text) OR ((data ->> 'type'::text) = 'ordered-reference'::text));
1111+1212+alter table "public"."bsky_follows" add constraint "bsky_follows_pkey" PRIMARY KEY using index "bsky_follows_pkey";
1313+1414+alter table "public"."bsky_follows" add constraint "bsky_follows_follows_fkey" FOREIGN KEY (follows) REFERENCES identities(atp_did) ON DELETE CASCADE not valid;
1515+1616+alter table "public"."bsky_follows" validate constraint "bsky_follows_follows_fkey";
1717+1818+alter table "public"."bsky_follows" add constraint "bsky_follows_identity_fkey" FOREIGN KEY (identity) REFERENCES identities(atp_did) ON DELETE CASCADE not valid;
1919+2020+alter table "public"."bsky_follows" validate constraint "bsky_follows_identity_fkey";
2121+2222+grant delete on table "public"."bsky_follows" to "anon";
2323+2424+grant insert on table "public"."bsky_follows" to "anon";
2525+2626+grant references on table "public"."bsky_follows" to "anon";
2727+2828+grant select on table "public"."bsky_follows" to "anon";
2929+3030+grant trigger on table "public"."bsky_follows" to "anon";
3131+3232+grant truncate on table "public"."bsky_follows" to "anon";
3333+3434+grant update on table "public"."bsky_follows" to "anon";
3535+3636+grant delete on table "public"."bsky_follows" to "authenticated";
3737+3838+grant insert on table "public"."bsky_follows" to "authenticated";
3939+4040+grant references on table "public"."bsky_follows" to "authenticated";
4141+4242+grant select on table "public"."bsky_follows" to "authenticated";
4343+4444+grant trigger on table "public"."bsky_follows" to "authenticated";
4545+4646+grant truncate on table "public"."bsky_follows" to "authenticated";
4747+4848+grant update on table "public"."bsky_follows" to "authenticated";
4949+5050+grant delete on table "public"."bsky_follows" to "service_role";
5151+5252+grant insert on table "public"."bsky_follows" to "service_role";
5353+5454+grant references on table "public"."bsky_follows" to "service_role";
5555+5656+grant select on table "public"."bsky_follows" to "service_role";
5757+5858+grant trigger on table "public"."bsky_follows" to "service_role";
5959+6060+grant truncate on table "public"."bsky_follows" to "service_role";
6161+6262+grant update on table "public"."bsky_follows" to "service_role";