From 5103bfeb9dcd929b8403a55f4fe03299aff95db3 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 6 Mar 2023 11:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4rss=E6=BA=90=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/tools/Rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/tools/Rss.php b/app/common/tools/Rss.php index c4fdb8b..d0e38d1 100644 --- a/app/common/tools/Rss.php +++ b/app/common/tools/Rss.php @@ -36,7 +36,7 @@ class Rss $new_item->setLink($model_post->read_url); //The parameter is a timestamp for setDate() function $new_item->setDate($model_post->publish_time); - $new_item->setDescription($model_post->desc); + $new_item->setDescription($model_post->content_html); //Use core addElement() function for other supported optional elements //Now add the feed item @@ -98,7 +98,7 @@ class Rss $new_item->setLink($model_post->read_url); - $new_item->setDescription($model_post->desc); + $new_item->setDescription($model_post->content_html); // 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 - $new_item->setDescription($model_post->desc); + $new_item->setDescription($model_post->content_html); // $new_item->setContent($model_post->content_html); //Now add the feed item