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