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{
|
return &Entry{
|
||||||
Title: fmt.Sprintf("%s %s %s", status.User, status.Face, truncate(status.Content, 50)),
|
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),
|
ID: fmt.Sprintf("https://status.cafe/users/%s/%d", status.User, status.Id),
|
||||||
//Link: []Link{
|
Link: []Link{
|
||||||
// {
|
{
|
||||||
// Rel: "alternate",
|
Rel: "alternate",
|
||||||
// Href: fmt.Sprintf("https://status.cafe/users/%s/%d", status.User, status.Id),
|
Href: fmt.Sprintf("https://status.cafe/users/%s", status.User),
|
||||||
// Type: "text/html",
|
Type: "text/html",
|
||||||
// },
|
},
|
||||||
//},
|
},
|
||||||
Updated: Time(status.CreatedAt),
|
Updated: Time(status.CreatedAt),
|
||||||
Published: Time(status.CreatedAt),
|
Published: Time(status.CreatedAt),
|
||||||
Author: &Person{
|
Author: &Person{
|
||||||
|
|
@ -80,8 +80,8 @@ func createAtomEntryFromStatus(status model.Status) *Entry {
|
||||||
URI: fmt.Sprintf("https://status.cafe/users/%s", status.User),
|
URI: fmt.Sprintf("https://status.cafe/users/%s", status.User),
|
||||||
},
|
},
|
||||||
Content: &Text{
|
Content: &Text{
|
||||||
Type: "text",
|
Type: "html",
|
||||||
Body: status.Content,
|
Body: status.ContentDisplay(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue