Improve display of items
This commit is contained in:
parent
e2b577eef9
commit
6d57b4e58d
|
@ -202,11 +202,10 @@ func performCommands(sub microsub.Microsub, commands []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func showItem(item *microsub.Item) {
|
func showItem(item *microsub.Item) {
|
||||||
fmt.Printf("------- %s\n", item.Published)
|
fmt.Printf("%s - %s - %s\n", item.Name, item.Published, item.ID)
|
||||||
if item.Name == "" && item.Content != nil {
|
if item.Content != nil && item.Content.Text != "" {
|
||||||
fmt.Println(item.Content.HTML)
|
fmt.Println(item.Content.Text)
|
||||||
} else {
|
|
||||||
fmt.Println(item.Name)
|
|
||||||
}
|
}
|
||||||
fmt.Println(item.URL)
|
fmt.Println(item.URL)
|
||||||
|
fmt.Println()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user