juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r9883: LJSUP-7641 Comments in FB are displayed ...

Committer: iaskarov
LJSUP-7641 Comments in FB are displayed with incorrect images
U   trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm
U   trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm
Modified: trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm	2010-12-22 02:16:36 UTC (rev 9882)
+++ trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm	2010-12-22 05:31:08 UTC (rev 9883)
@@ -45,6 +45,8 @@
     # a couple special cases here:
     # if user chooses not to show images, field will return "nothumb" value.
     # if user chooses his userpic, field will return "userpic" value.
+    my $default_picture = $LJ::IMGPREFIX . '/icons/facebook-lj.png';
+    
     if ($picture eq 'nothumb') {
         $picture = '';
     } elsif ($picture eq 'userpic') {
@@ -56,7 +58,7 @@
         }
     }
 
-    $data->{'picture'} = $picture || '';
+    $data->{'picture'} = $picture || $default_picture;
 
     my $title = $class->cleanup($comment->subject_raw);
     my $body  = $class->cleanup($body_raw);

Modified: trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm	2010-12-22 02:16:36 UTC (rev 9882)
+++ trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm	2010-12-22 05:31:08 UTC (rev 9883)
@@ -48,7 +48,7 @@
     my $default_picture = $LJ::IMGPREFIX . '/icons/facebook-lj.png';
     
     if ($picture eq 'nothumb') {
-        $picture = $default_picture
+        $picture = '';
     } elsif ($picture eq 'userpic') {
         my $userpic = $entry->userpic;
         if ($userpic) {

Tags: juks, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments