Add link to atom
This commit is contained in:
parent
f8eaef152b
commit
c5c2cacd1b
1 changed files with 9 additions and 9 deletions
|
|
@ -66,13 +66,13 @@ func createAtomEntryFromStatus(status model.Status) *Entry {
|
|||
return &Entry{
|
||||
Title: fmt.Sprintf("%s %s %s", status.User, status.Face, truncate(status.Content, 50)),
|
||||
ID: fmt.Sprintf("https://status.cafe/users/%s/%d", status.User, status.Id),
|
||||
//Link: []Link{
|
||||
// {
|
||||
// Rel: "alternate",
|
||||
// Href: fmt.Sprintf("https://status.cafe/users/%s/%d", status.User, status.Id),
|
||||
// Type: "text/html",
|
||||
// },
|
||||
//},
|
||||
Link: []Link{
|
||||
{
|
||||
Rel: "alternate",
|
||||
Href: fmt.Sprintf("https://status.cafe/users/%s", status.User),
|
||||
Type: "text/html",
|
||||
},
|
||||
},
|
||||
Updated: Time(status.CreatedAt),
|
||||
Published: Time(status.CreatedAt),
|
||||
Author: &Person{
|
||||
|
|
@ -80,8 +80,8 @@ func createAtomEntryFromStatus(status model.Status) *Entry {
|
|||
URI: fmt.Sprintf("https://status.cafe/users/%s", status.User),
|
||||
},
|
||||
Content: &Text{
|
||||
Type: "text",
|
||||
Body: status.Content,
|
||||
Type: "html",
|
||||
Body: status.ContentDisplay(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue