Remove Author from rss

This commit is contained in:
pnwmatt 2025-02-07 03:00:49 -08:00
commit 8b0a3a1ea5
No known key found for this signature in database

View file

@ -54,8 +54,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f
Href: s.URL, Href: s.URL,
} }
// Author -- Email address of the author of the item.
// example: oprah\@oxygen.net
if s.Account == nil { if s.Account == nil {
a, err := c.state.DB.GetAccountByID(ctx, s.AccountID) a, err := c.state.DB.GetAccountByID(ctx, s.AccountID)
if err != nil { if err != nil {
@ -64,9 +62,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f
s.Account = a s.Account = a
} }
authorName := "@" + s.Account.Username + "@" + config.GetAccountDomain() authorName := "@" + s.Account.Username + "@" + config.GetAccountDomain()
author := &feeds.Author{
Name: authorName,
}
// Source -- The RSS channel that the item came from. // Source -- The RSS channel that the item came from.
source := &feeds.Link{ source := &feeds.Link{
@ -156,7 +151,6 @@ func (c *Converter) StatusToRSSItem(ctx context.Context, s *gtsmodel.Status) (*f
return &feeds.Item{ return &feeds.Item{
Title: title, Title: title,
Link: link, Link: link,
Author: author,
Source: source, Source: source,
Description: description, Description: description,
Id: id, Id: id,