Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17665: LJSV-28 (scrapbook doesn't follow rename...

Committer: ailyin
LJSV-28 (scrapbook doesn't follow renames properly)
U   trunk/cgi-bin/LJ/FBInterface.pm
Modified: trunk/cgi-bin/LJ/FBInterface.pm
===================================================================
--- trunk/cgi-bin/LJ/FBInterface.pm	2010-11-10 12:32:16 UTC (rev 17664)
+++ trunk/cgi-bin/LJ/FBInterface.pm	2010-11-11 03:46:06 UTC (rev 17665)
@@ -16,8 +16,21 @@
         my $sess = LJ::Session->session_from_fb_cookie;
         $u = $sess->owner if $sess;
     }
-    return {} unless $u && $u->{'journaltype'} =~ /[PI]/;
 
+    return {} unless $u;
+
+    if ($u->is_renamed) {
+        return {
+            'user'          => $u->username,
+            'renamedto'     => $u->prop('renamedto'),
+            'userid'        => $u->userid,
+            'statusvis'     => 'R',
+            'fb_account'    => 1,
+        };
+    }
+
+    return {} unless $u->{'journaltype'} =~ /[PI]/;
+
     my $defaultpic = $u->userpic;
 
     my %ret = (

Tags: andy, livejournal, 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