From c5c2cacd1b123475fa29b90ec3b7a27bd1c78322 Mon Sep 17 00:00:00 2001 From: m15o Date: Sun, 20 Feb 2022 07:49:50 +0100 Subject: [PATCH] Add link to atom --- web/handler/feed_show.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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(), }, } }