summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-09 19:23:11 +0400
committerAndrew Dolgov <[email protected]>2012-10-09 19:23:11 +0400
commitff0ff5f064f1b3ec204754f61b5073fa476643fa (patch)
tree3ae99d69486a747773cbcde342880e91354c8b6f /include
parent67bd0b1f26707945cd086e5a86e0f7a7c2d6e0bf (diff)
API: support comments count/url
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 0231c52de..1970dcd60 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4647,6 +4647,12 @@
$headline_row["feed_title"] = $line["feed_title"];
+ if (!$line["comments"] && $line["num_comments"] > 0)
+ $line["comments"] = $line["link"];
+
+ $headline_row["comments_count"] = (int)$line["num_comments"];
+ $headline_row["comments_link"] = $line["comments"];
+
array_push($headlines, $headline_row);
}