From 2fecef01f2cfe4d3c703c1201376aa9a0aa9fac8 Mon Sep 17 00:00:00 2001 From: pnwmatt <180812017+pnwmatt@users.noreply.github.com> Date: Fri, 7 Feb 2025 03:00:49 -0800 Subject: [PATCH 1/2] Remove Author from rss --- internal/typeutils/internaltorss.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/typeutils/internaltorss.go b/internal/typeutils/internaltorss.go index 43ca7ba48..81e1b7cce 100644 --- a/internal/typeutils/internaltorss.go +++ b/internal/typeutils/internaltorss.go @@ -54,8 +54,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f Href: s.URL, } - // Author -- Email address of the author of the item. - // example: oprah\@oxygen.net if s.Account == nil { a, err := c.state.DB.GetAccountByID(ctx, s.AccountID) if err != nil { @@ -64,9 +62,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f s.Account = a } authorName := "@" + s.Account.Username + "@" + config.GetAccountDomain() - author := &feeds.Author{ - Name: authorName, - } // Source -- The RSS channel that the item came from. source := &feeds.Link{ @@ -156,7 +151,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f return &feeds.Item{ Title: title, Link: link, - Author: author, Source: source, Description: description, Id: id, From ce11609036f31d4428bb2698771eac8416f07aa6 Mon Sep 17 00:00:00 2001 From: pnwmatt <180812017+pnwmatt@users.noreply.github.com> Date: Fri, 7 Feb 2025 03:01:04 -0800 Subject: [PATCH 2/2] Remove Source from rss --- internal/typeutils/internaltorss.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/typeutils/internaltorss.go b/internal/typeutils/internaltorss.go index 81e1b7cce..d99e6c511 100644 --- a/internal/typeutils/internaltorss.go +++ b/internal/typeutils/internaltorss.go @@ -63,11 +63,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f } authorName := "@" + s.Account.Username + "@" + config.GetAccountDomain() - // Source -- The RSS channel that the item came from. - source := &feeds.Link{ - Href: s.Account.URL + "/feed.rss", - } - // Description -- The item synopsis. // example: Some of the most heated chatter at the Venice Film Festival this week was about the way that the arrival of the stars at the Palazzo del Cinema was being staged. descriptionBuilder := strings.Builder{} @@ -151,7 +146,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f return &feeds.Item{ Title: title, Link: link, - Source: source, Description: description, Id: id, IsPermaLink: "true",