Use ProcessAtUri function where applicable

This commit is contained in:
Ariadna 2025-04-21 00:36:16 -04:00
parent 412e18f628
commit 9fe004f4a4
Signed by: ari
SSH key fingerprint: SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY

View file

@ -48,7 +48,7 @@ class Post {
account: AccountMetadata, account: AccountMetadata,
) { ) {
this.postCid = record.cid; this.postCid = record.cid;
this.recordName = record.uri.split("/").slice(-1)[0]; this.recordName = processAtUri(record.uri).rkey;
this.authorDid = account.did; this.authorDid = account.did;
this.authorAvatarCid = account.avatarCid; this.authorAvatarCid = account.avatarCid;
this.authorHandle = account.handle; this.authorHandle = account.handle;