]> git.wh0rd.org - tt-rss.git/commitdiff
API should return excerpt when asked
authorMatt Haley <matt@smajnr.net>
Sun, 4 Aug 2013 17:41:29 +0000 (10:41 -0700)
committerMatt Haley <matt@smajnr.net>
Sun, 4 Aug 2013 17:41:29 +0000 (10:41 -0700)
classes/api.php

index 4330b3dc674e814e411925521cbba3b58368f89b..bbbcbb5a8e1609fd39a3a5a7b838babaf7239667 100644 (file)
@@ -669,7 +669,7 @@ class API extends Handler {
                                        $headline_row['attachments'] = get_article_enclosures(
                                                $line['id']);
 
-                               if (!$show_excerpt)
+                               if ($show_excerpt)
                                        $headline_row["excerpt"] = $line["content_preview"];
 
                                if ($show_content) {