mirror of
https://gitlab.melroy.org/melroy/fediresolve.git
synced 2025-07-23 21:18:52 +00:00
Also add avatar link in summary
This commit is contained in:
parent
d5e03e8a1f
commit
b5b569ddc5
1 changed files with 6 additions and 0 deletions
|
@ -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)))
|
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
|
return parts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue