juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r9811: LJSUP-7299 Posts in FB are displayed wit...

Committer: iaskarov
LJSUP-7299 Posts in FB are displayed with incorrect images
U   trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm
Modified: trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm	2010-12-08 05:28:54 UTC (rev 9810)
+++ trunk/cgi-bin/LJ/Worker/Repost/EntryToFacebook.pm	2010-12-08 11:24:06 UTC (rev 9811)
@@ -45,8 +45,10 @@
     # 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 = '';
+        $picture = $default_picture
     } elsif ($picture eq 'userpic') {
         my $userpic = $entry->userpic;
         if ($userpic) {
@@ -57,7 +59,7 @@
     }
 
     # Setting default picture
-    $data->{'picture'} = $picture || $LJ::IMGPREFIX . '/icons/facebook-lj.png';
+    $data->{'picture'} = $picture || $default_picture;
 
     my $title = $class->cleanup($entry->subject_raw);
     my $event = $class->cleanup($event_raw);

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