Add "updated" field to item export
This commit is contained in:
parent
e4540ab2b3
commit
cbd6e7dd84
|
|
@ -181,6 +181,10 @@ func mapToItem(result map[string]interface{}) microsub.Item {
|
||||||
item.Published = published.(string)
|
item.Published = published.(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if updated, e := result["updated"]; e {
|
||||||
|
item.Updated = updated.(string)
|
||||||
|
}
|
||||||
|
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ type Item struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Published string `json:"published"`
|
Published string `json:"published"`
|
||||||
|
Updated string `json:"updated"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
UID string `json:"uid"`
|
UID string `json:"uid"`
|
||||||
Author Author `json:"author"`
|
Author Author `json:"author"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user