fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-12-03 03:01 pm

[dw-free] ATOM API /interface/atom/entries contains comment count images.

[commit: http://hg.dwscoalition.org/dw-free/rev/e5a00a5bb123]

http://bugs.dwscoalition.org/show_bug.cgi?id=4088

Don't append the comment image tag if we're using the Atom API.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/Feed.pm
--------------------------------------------------------------------------------
diff -r 05bcc961a229 -r e5a00a5bb123 cgi-bin/LJ/Feed.pm
--- a/cgi-bin/LJ/Feed.pm	Fri Dec 02 01:02:56 2011 +0000
+++ b/cgi-bin/LJ/Feed.pm	Sat Dec 03 23:01:13 2011 +0800
@@ -258,7 +258,8 @@
 
         # include comment count image at bottom of event (for readers
         # that don't understand the commentcount)
-        $event .= "<br /><br />" . $entry_obj->comment_imgtag . " comments";
+        $event .= "<br /><br />" . $entry_obj->comment_imgtag . " comments"
+            unless $opts->{'apilinks'};
 
         my $mood;
         if ($logprops{$itemid}->{'current_mood'}) {
--------------------------------------------------------------------------------