From 66601a8091a73f3e31f4fb534c38b3eca4756e93 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 23 Apr 2026 17:39:13 -0500 Subject: fix: profile loading error and user-timeline prefs update --- Hutch/Models/Meta.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Hutch/Models') diff --git a/Hutch/Models/Meta.swift b/Hutch/Models/Meta.swift index c0434bc..91bd7e3 100644 --- a/Hutch/Models/Meta.swift +++ b/Hutch/Models/Meta.swift @@ -22,10 +22,16 @@ struct UserProfile: Codable, Sendable { struct SSHKey: Codable, Sendable, Identifiable { let id: Int - let fingerprint: String let comment: String? let created: Date let lastUsed: Date? + + var displayLabel: String { + if let comment, !comment.isEmpty { + return comment + } + return "SSH key #\(id)" + } } struct SSHKeyPage: Codable, Sendable { -- cgit v1.2.3