Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use four-digit years for RSS pubDate (#3907)

authored by

bnewbold and committed by
GitHub
f3515e26 38198fdf

+4 -2
+4 -2
bskyweb/cmd/bskyweb/rss.go
··· 5 5 "fmt" 6 6 "net/http" 7 7 "strings" 8 - "time" 9 8 10 9 appbsky "github.com/bluesky-social/indigo/api/bsky" 11 10 "github.com/bluesky-social/indigo/atproto/syntax" 12 11 13 12 "github.com/labstack/echo/v4" 14 13 ) 14 + 15 + // time.RFC822Z, but with four digit year. used for RSS pubData. 16 + var FullYearRFC822Z = "02 Jan 2006 15:04 -0700" 15 17 16 18 type ItemGUID struct { 17 19 XMLName xml.Name `xml:"guid"` ··· 107 109 pubDate := "" 108 110 createdAt, err := syntax.ParseDatetimeLenient(rec.CreatedAt) 109 111 if nil == err { 110 - pubDate = createdAt.Time().Format(time.RFC822Z) 112 + pubDate = createdAt.Time().Format(FullYearRFC822Z) 111 113 } 112 114 posts = append(posts, Item{ 113 115 Link: fmt.Sprintf("https://%s/profile/%s/post/%s", req.Host, pv.Handle, aturi.RecordKey().String()),