不要使用全文做描述

This commit is contained in:
2023-03-06 17:48:41 +08:00
parent 5103bfeb9d
commit 1cc63d9999

View File

@@ -36,7 +36,7 @@ class Rss
$new_item->setLink($model_post->read_url); $new_item->setLink($model_post->read_url);
//The parameter is a timestamp for setDate() function //The parameter is a timestamp for setDate() function
$new_item->setDate($model_post->publish_time); $new_item->setDate($model_post->publish_time);
$new_item->setDescription($model_post->content_html); $new_item->setDescription($model_post->desc);
//Use core addElement() function for other supported optional elements //Use core addElement() function for other supported optional elements
//Now add the feed item //Now add the feed item
@@ -98,7 +98,7 @@ class Rss
$new_item->setLink($model_post->read_url); $new_item->setLink($model_post->read_url);
$new_item->setDescription($model_post->content_html); $new_item->setDescription($model_post->desc);
// The following method calls add some optional elements to the feed item. // The following method calls add some optional elements to the feed item.
@@ -168,7 +168,7 @@ class Rss
//Internally changed to "summary" tag for ATOM feed //Internally changed to "summary" tag for ATOM feed
$new_item->setDescription($model_post->content_html); $new_item->setDescription($model_post->desc);
// $new_item->setContent($model_post->content_html); // $new_item->setContent($model_post->content_html);
//Now add the feed item //Now add the feed item