···1919 updated string
2020}
21212222-// resolveAuthor returns the handle for didStr, falling back to the
2323-// raw DID string on resolution failure.
2424-func resolveAuthor(ctx context.Context, didStr string) string {
2525- if ident, err := resolver.ResolveDID(ctx, didStr); err == nil {
2626- return ident.Handle.String()
2727- }
2828- return didStr
2929-}
3030-3122// shortDate trims an ISO 8601 timestamp to its YYYY-MM-DD prefix.
3223func shortDate(timestamp string) string {
3324 if len(timestamp) > 10 {
···6556 }
6657 return uri
6758}
5959+6060+// resolveAuthor resolves a DID to an author, falling back to the raw
6161+// DID string for Handle if resolution fails.
6262+func resolveAuthor(ctx context.Context, did string) author {
6363+ result := author{DID: did}
6464+ if ident, err := resolver.ResolveDID(ctx, did); err == nil {
6565+ result.Handle = ident.Handle.String()
6666+ } else {
6767+ result.Handle = did
6868+ }
6969+ return result
7070+}