Add IRI to local resources (#1046)
* initial commit * add remote trail/list * fix errors * update to use new IRIs * use origin in migration instead * use UnsafeWithoutHooks * fix trail/list order of operations * fix remote trail/list fetch * fixes list document update * fix errors --------- Co-authored-by: Christian Beutel <>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
<div class="self-start min-w-0 basis-full transition-transform">
|
||||
<div class="flex items-center gap-3">
|
||||
<h5 class="text-xl font-semibold overflow-hidden overflow-ellipsis shrink-0 max-w-3/4 whitespace-nowrap">
|
||||
<h5 class="text-xl font-semibold overflow-hidden text-ellipsis shrink-0 max-w-3/4 whitespace-nowrap">
|
||||
{list.name}
|
||||
</h5>
|
||||
<div class="basis-full"></div>
|
||||
|
||||
@@ -38,7 +38,7 @@ export function handleFromRecordWithIRI(record: any) {
|
||||
throw new Error("object has no author info")
|
||||
}
|
||||
|
||||
if (!record.iri) {
|
||||
if (!record.iri || record.iri.length == 0) {
|
||||
return `@${record.expand.author.preferred_username}`
|
||||
}
|
||||
const url = new URL(record.iri ?? "")
|
||||
|
||||
Reference in New Issue
Block a user