a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use rkey and fallback to name for pub dashboard urls

+7 -3
+7 -3
app/lish/createPub/getPublicationURL.ts
··· 25 25 } 26 26 27 27 // Fall back to checking raw record for legacy base_path 28 - if (isLeafletPublication(pub.record) && pub.record.base_path && isProductionDomain()) { 28 + if ( 29 + isLeafletPublication(pub.record) && 30 + pub.record.base_path && 31 + isProductionDomain() 32 + ) { 29 33 return `https://${pub.record.base_path}`; 30 34 } 31 35 ··· 36 40 const normalized = normalizePublicationRecord(pub.record); 37 41 const aturi = new AtUri(pub.uri); 38 42 39 - // Use normalized name if available, fall back to rkey 40 - const name = normalized?.name || aturi.rkey; 43 + //use rkey, fallback to name 44 + const name = aturi.rkey || normalized?.name; 41 45 return `/lish/${aturi.host}/${encodeURIComponent(name || "")}`; 42 46 }