changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r20624: LJSV-1026: Either remove ability or reco...

Committer: akanashin
LJSV-1026: Either remove ability or record in userlog entry deletions done by selecting all text and hitting 'delete'
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-11-25 08:54:22 UTC (rev 20623)
+++ trunk/htdocs/editjournal.bml	2011-11-25 11:46:11 UTC (rev 20624)
@@ -351,21 +351,6 @@
                       LJ::mark_entry_as_spam($usejournal_u, $itemid);
                 }
 
-                # if the action is to delete it, then let's note that
-                if ( $POST{'action:delete'} || $POST{'action:deletespam'} ) {
-                    # now log the event created abovei
-                    if ($entry_obj->is_delayed) {
-                        ($usejournal ? $usejournal_u : $remote)->log_event('delete_delayed_entry', {
-                                                                                remote => $remote,
-                                                                                actiontarget => $delayedid,
-                                                                                method => 'web',});
-                    } else {
-                       ($usejournal ? $usejournal_u : $remote)->log_event('delete_entry', {
-                                                                                remote => $remote,
-                                                                                actiontarget => $ditemid,
-                                                                                method => 'web',});
-                    }
-                }
 
                 # do editevent request
                 foreach my $k (keys %req) {
@@ -406,6 +391,19 @@
 
                     my $deleted_extras = LJ::run_hook('entry_deleted_page_extras');
                     $result .= $deleted_extras if defined $deleted_extras;
+
+                    # now log the event created abovei
+                    if ($entry_obj->is_delayed) {
+                       ($usejournal ? $usejournal_u : $remote)->log_event('delete_delayed_entry', {
+                                                                           remote => $remote,
+                                                                           actiontarget => $delayedid,
+                                                                           method => 'web',});
+                    } else {
+                       ($usejournal ? $usejournal_u : $remote)->log_event('delete_entry', {
+                                                                           remote => $remote,
+                                                                           actiontarget => $ditemid,
+                                                                           method => 'web',});
+                    }
                 } else {
                     $result .= "<?p $ML{'.success.edited'} p?>";
                     

Tags: akanashin, bml, holyandrew, livejournal
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