mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-26 16:56:15 -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,
|
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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue