diff options
author | Andrew Dolgov <[email protected]> | 2012-10-09 19:23:11 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-09 19:23:11 +0400 |
commit | ff0ff5f064f1b3ec204754f61b5073fa476643fa (patch) | |
tree | 3ae99d69486a747773cbcde342880e91354c8b6f /include | |
parent | 67bd0b1f26707945cd086e5a86e0f7a7c2d6e0bf (diff) |
API: support comments count/url
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 6 |
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); } |