From b5b569ddc5c54c3c5ed98ec768328cc9326dced1 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 24 Apr 2025 17:18:07 +0200 Subject: [PATCH] Also add avatar link in summary --- formatter/formatter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/formatter/formatter.go b/formatter/formatter.go index 18993b6..83c2211 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -105,6 +105,12 @@ func formatActor(jsonStr string, parts []string, bold, cyan, green, red, yellow parts = append(parts, fmt.Sprintf("%s: %s", bold("Following"), green(following))) } + // Add avatar (icon) link if present + iconUrl := gjson.Get(jsonStr, "icon.url").String() + if iconUrl != "" { + parts = append(parts, fmt.Sprintf("%s: %s", bold("Avatar"), green(iconUrl))) + } + return parts }