forked from GNUsocial/gnu-social
redirect on a post from tag dropdown
darcs-hash:20081124051429-5ed1f-f47de55517ac9762ad6f1b7520c758359b0958bc.gz
This commit is contained in:
parent
a7e44d7ae3
commit
9c6caac8b8
@ -35,6 +35,12 @@ class GalleryAction extends Action {
|
|||||||
function handle($args) {
|
function handle($args) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
|
|
||||||
|
# Post from the tag dropdown; redirect to a GET
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
|
common_redirect($this->self_url(), 307);
|
||||||
|
}
|
||||||
|
|
||||||
$nickname = common_canonical_nickname($this->arg('nickname'));
|
$nickname = common_canonical_nickname($this->arg('nickname'));
|
||||||
$user = User::staticGet('nickname', $nickname);
|
$user = User::staticGet('nickname', $nickname);
|
||||||
|
|
||||||
@ -98,7 +104,7 @@ class GalleryAction extends Action {
|
|||||||
_('All'));
|
_('All'));
|
||||||
common_element_end('li');
|
common_element_end('li');
|
||||||
common_element_start('li', array('id'=>'filter_tags_item'));
|
common_element_start('li', array('id'=>'filter_tags_item'));
|
||||||
common_element_start('form', array('name' => 'bytag', 'id' => 'bytag'));
|
common_element_start('form', array('name' => 'bytag', 'id' => 'bytag', 'method' => 'post'));
|
||||||
common_dropdown('tag', _('Tag'), $content,
|
common_dropdown('tag', _('Tag'), $content,
|
||||||
_('Choose a tag to narrow list'), FALSE, $tag);
|
_('Choose a tag to narrow list'), FALSE, $tag);
|
||||||
common_submit('go', _('Go'));
|
common_submit('go', _('Go'));
|
||||||
|
Loading…
Reference in New Issue
Block a user