Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Patch for GNU-social T79
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
You can’t perform that action at this time.