mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-24 06:26:16 -06:00
Remove Author from rss
This commit is contained in:
parent
fc196f917e
commit
8b0a3a1ea5
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue