Created
February 7, 2015 11:13
-
-
Save mrvdb/0f5d84c9b56c0a390c4a to your computer and use it in GitHub Desktop.
Patch for GNU-social T79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/actions/editpeopletag.php b/actions/editpeopletag.php | |
index c812255..069b2aa 100644 | |
--- a/actions/editpeopletag.php | |
+++ b/actions/editpeopletag.php | |
@@ -277,6 +277,13 @@ class EditpeopletagAction extends Action | |
return; | |
} | |
+ if ($delete) { | |
+ // This might take quite a bit of time. | |
+ $this->peopletag->delete(); | |
+ // send home. | |
+ common_redirect(common_local_url('all', array('nickname' => $this->tagger->nickname)), 303); | |
+ } | |
+ | |
$this->peopletag->query('BEGIN'); | |
$orig = clone($this->peopletag); | |
@@ -301,12 +308,6 @@ class EditpeopletagAction extends Action | |
Profile_tag_subscription::cleanup($this->peopletag); | |
} | |
- if ($delete) { | |
- // This might take quite a bit of time. | |
- $this->peopletag->delete(); | |
- // send home. | |
- common_redirect(common_local_url('all', array('nickname' => $this->tagger->nickname)), 303); | |
- } | |
if ($tag != $orig->tag) { | |
common_redirect(common_local_url('editpeopletag', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment