summaryrefslogtreecommitdiff
path: root/actions/twitapiblocks.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-08 14:39:39 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-08 14:39:39 -0500
commitfa81041ec7e94ad1b6dfb71ca4de098d5e68cd3f (patch)
treec13c43d9b3f910a6451b2b054a999a68945c42b2 /actions/twitapiblocks.php
parentef3d487ae02a6333b4e0f0714599ff1c3b7b729e (diff)
correctly init the document type for block API actions
darcs-hash:20081208193939-5ed1f-3275ec50dd2dbb23689710f9e52a071bcba94cc9.gz
Diffstat (limited to 'actions/twitapiblocks.php')
-rw-r--r--actions/twitapiblocks.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/actions/twitapiblocks.php b/actions/twitapiblocks.php
index 6bfdec0d0..4852ff938 100644
--- a/actions/twitapiblocks.php
+++ b/actions/twitapiblocks.php
@@ -37,7 +37,10 @@ class TwitapiblocksAction extends TwitterapiAction {
$user = $apidata['user'];
if ($user->hasBlocked($blockee) || $user->block($blockee)) {
- $this->show_profile($blockee, $apidata['content-type']);
+ $type = $apidata['content-type'];
+ $this->init_document($type);
+ $this->show_profile($blockee, $type);
+ $this->end_document($type);
} else {
common_server_error(_('Block user failed.'));
}
@@ -55,7 +58,10 @@ class TwitapiblocksAction extends TwitterapiAction {
$user = $apidata['user'];
if (!$user->hasBlocked($blockee) || $user->unblock($blockee)) {
- $this->show_profile($blockee, $apidata['content-type']);
+ $type = $apidata['content-type'];
+ $this->init_document($type);
+ $this->show_profile($blockee, $type);
+ $this->end_document($type);
} else {
common_server_error(_('Unblock user failed.'));
}