vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r23547: LJSUP-14818: Disable friendchange notifi...

Committer: vad
LJSUP-14818: Disable friendchange notification to updates.elsewhere.im
U   trunk/bin/worker/friendchange
Modified: trunk/bin/worker/friendchange
===================================================================
--- trunk/bin/worker/friendchange	2013-01-16 07:36:49 UTC (rev 23546)
+++ trunk/bin/worker/friendchange	2013-01-16 08:59:57 UTC (rev 23547)
@@ -55,12 +55,6 @@
     my $args = $job->arg;
     my ($uid, $action, $fid) = @$args;
 
-    my $u = LJ::load_userid($uid)
-        or die "no userid";
-
-    my $f = LJ::load_userid($fid)
-        or die "no friend userid";
-
     # Should we ping anywhere on friend changes?
     unless (LJ::conf_test($LJ::REL_PING{server})) {
         warn "No relation ping servers defined\n"
@@ -70,6 +64,12 @@
         return;
     }
 
+    my $u = LJ::load_userid($uid)
+        or die "no userid";
+
+    my $f = LJ::load_userid($fid)
+        or die "no friend userid";
+
     # Helper to create Atom Links in the entry
     my $make_link = sub {
         my ( $rel, $type, $href, $title ) = @_;

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