Changeset 14081

Show
Ignore:
Timestamp:
07/28/08 12:50:28 (5 years ago)
Author:
ssafronova
Message:

LJSUP-2432: new event feed

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/bin/moveucluster.pl

    r13131 r14081  
    541541            die "Could not load module LJ::Event::UserExpunged: $@"; 
    542542        } 
     543        LJ::run_hooks('purged_user', $u); 
    543544 
    544545        return 1; 
  • trunk/cgi-bin/LJ/Console/Command/BanSet.pm

    r10596 r14081  
    5050    $journal->log_event('ban_set', { actiontarget => $banuser->id, remote => $remote }); 
    5151 
     52    LJ::run_hooks('ban_set', $journal, $banuser); 
     53 
    5254    return $self->print("User " . $banuser->user . " banned from " . $journal->user); 
    5355} 
  • trunk/cgi-bin/LJ/Console/Command/BanUnset.pm

    r10596 r14081  
    4646    $journal->log_event('ban_unset', { actiontarget => $banuser->id, remote => $remote }); 
    4747 
     48    LJ::run_hooks('ban_unset', $journal, $banuser); 
     49 
    4850    return $self->print("User " . $banuser->user . " unbanned from " . $journal->user); 
    4951} 
  • trunk/cgi-bin/LJ/User.pm

    r14078 r14081  
    26502650    # old $u caps vs the new we say we'll be adding 
    26512651    if (LJ::are_hooks('add_to_class')) { 
    2652         LJ::run_hook('add_to_class', $u, $class); 
     2652        LJ::run_hooks('add_to_class', $u, $class); 
    26532653    } 
    26542654 
     
    26652665    # old $u caps vs what we'll be removing 
    26662666    if (LJ::are_hooks('remove_from_class')) { 
    2667         LJ::run_hook('remove_from_class', $u, $class); 
     2667        LJ::run_hooks('remove_from_class', $u, $class); 
    26682668    } 
    26692669 
     
    68946894        LJ::memcache_kill($fid, 'friendofs2'); 
    68956895 
     6896        my $friendee = LJ::load_userid($fid); 
    68966897        if ($sclient) { 
    68976898            my @jobs; 
    68986899 
    68996900            # only fire event if the friender is a person and not banned and visible 
    6900             my $friendee = LJ::load_userid($fid); 
    69016901            if ($notify && !$friendee->has_banned($u)) { 
    69026902                push @jobs, LJ::Event::Defriended->new($friendee, $u)->fire_job; 
     
    69076907                                              arg      => [$userid, 'del', $fid], 
    69086908                                              ) unless $LJ::DISABLED{'friendchange-schwartz'}; 
    6909  
     6909  
    69106910            $sclient->insert_jobs(@jobs); 
    69116911        } 
     6912        LJ::run_hooks('defriended', $u, $friendee); 
    69126913    } 
    69136914    LJ::memcache_kill($userid, 'friends'); 
  • trunk/cgi-bin/ljprotocol.pl

    r13856 r14081  
    20222022            } 
    20232023 
     2024            LJ::run_hooks('befriended', LJ::load_userid($userid), LJ::load_userid($friendid)); 
    20242025        } 
    20252026    } 
  • trunk/htdocs/manage/profile/index.bml

    r13910 r14081  
    741741        } 
    742742 
     743        LJ::run_hooks('profile_save', $u); 
     744 
    743745        # tell the user all is well 
    744746        my $base = $u->journal_base;