Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created February 7, 2015 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrvdb/0f5d84c9b56c0a390c4a to your computer and use it in GitHub Desktop.
Save mrvdb/0f5d84c9b56c0a390c4a to your computer and use it in GitHub Desktop.
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