forked from GNUsocial/gnu-social
Returnto the previous page when deleting a notice.
This commit is contained in:
parent
d98784e059
commit
a30d34be7f
@ -68,10 +68,8 @@ class DeletenoticeAction extends FormAction
|
|||||||
$this->notice->deleteAs($this->scoped);
|
$this->notice->deleteAs($this->scoped);
|
||||||
Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice));
|
Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
common_redirect(common_get_returnto(), 303);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
common_redirect(common_local_url('top'), 303);
|
common_redirect(common_get_returnto(), 303);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user