fix: use article title as post body instead of bare URL for RSS posts

This commit is contained in:
Patrick Britton 2026-02-09 08:39:02 -06:00
parent 41407feb58
commit 24a69f8cbb

View file

@ -473,8 +473,8 @@ func (s *OfficialAccountsService) PostNextArticle(ctx context.Context, configID
var body string var body string
switch cfg.AccountType { switch cfg.AccountType {
case "rss": case "rss":
// Post the link directly // Post the title — the link preview card handles the URL display
body = art.Link body = art.Title
case "news": case "news":
// Generate AI commentary // Generate AI commentary
rssItem := &RSSItem{ rssItem := &RSSItem{
@ -492,7 +492,7 @@ func (s *OfficialAccountsService) PostNextArticle(ctx context.Context, configID
} }
body = generated body = generated
default: default:
body = art.Link body = art.Title
} }
// Create the post // Create the post