Skip to content

Commit 588bcb6

Browse files
committed
Small cleanup
1 parent 9d8f043 commit 588bcb6

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

src/lib/atproto/atweb-client.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { KittyAgent } from './kitty-agent';
2-
import { parseAtUri } from '../utils';
3-
import type { At, IoGithubAtwebFile, IoGithubAtwebRing } from '@atcute/client/lexicons';
4-
import { parse as parseMime } from 'file-type-mime';
5-
import { toString as ui8ToString, fromString as ui8FromString } from 'uint8arrays';
6-
import { user, type Account, type User } from './signed-in-user';
7-
import { getDidAndPds } from './pds-helpers';
2+
import type { At, IoGithubAtwebFile } from '@atcute/client/lexicons';
3+
import { user } from './signed-in-user';
84
import { AtUri } from '@atproto/syntax';
95
import { filepathToRkey } from './rkey';
106
import { lookupMime } from '../mime';

src/lib/atproto/atweb-unauthed.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { CredentialManager, simpleFetchHandler } from "@atcute/client";
1+
import { simpleFetchHandler } from "@atcute/client";
22
import { KittyAgent } from "./kitty-agent";
33
import type { At, IoGithubAtwebRing } from "@atcute/client/lexicons";
4-
import { parseAtUri } from "../utils";
54
import { getDidAndPds } from "./pds-helpers";
65
import type { Awaitable } from "@vueuse/core";
76
import { AtUri } from "@atproto/syntax";
@@ -85,7 +84,7 @@ export async function getGetBlobUrl(
8584
const { pds } = await getDidAndPds(did);
8685
return formatGetBlobUrl(pds, did as At.DID, cid, useCdn);
8786
} else if (uri?.startsWith('at://')) {
88-
const at = parseAtUri(uri as At.Uri);
87+
const at = new AtUri(uri);
8988

9089
const { did, pds } = await getDidAndPds(at.host);
9190

src/lib/utils.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)