diff --git a/web/handler/feed_show.go b/web/handler/feed_show.go index 6269363..d8905d0 100644 --- a/web/handler/feed_show.go +++ b/web/handler/feed_show.go @@ -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(), }, } }