fix: use article title as post body instead of bare URL for RSS posts
This commit is contained in:
parent
41407feb58
commit
24a69f8cbb
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue