X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/f5d91b8eb1a2d1e5876f7eb3871ae42f6092961d..9f81b10b061382886a9c7e21ca941c11a6e4bee1:/src/shpub/Command/Rsvp.php diff --git a/src/shpub/Command/Rsvp.php b/src/shpub/Command/Rsvp.php index 5ed8ecd..4e67e9b 100644 --- a/src/shpub/Command/Rsvp.php +++ b/src/shpub/Command/Rsvp.php @@ -9,6 +9,7 @@ class Command_Rsvp extends Command_AbstractProps public static function opts(\Console_CommandLine $optParser) { $cmd = $optParser->addCommand('rsvp'); + static::addOptHtml($cmd); static::optsGeneric($cmd); $cmd->addArgument( 'url', @@ -47,11 +48,11 @@ class Command_Rsvp extends Command_AbstractProps } $req = new Request($this->cfg->host, $this->cfg); - $req->req->addPostParameter('h', 'entry'); - $req->req->addPostParameter('in-reply-to', $url); - $req->req->addPostParameter('rsvp', $rsvp); - if ($cmdRes->args['text'] != '') { - $req->req->addPostParameter('content', $cmdRes->args['text']); + $req->setType('h', 'entry'); + $req->addProperty('in-reply-to', $url); + $req->addProperty('rsvp', $rsvp); + if ($cmdRes->args['text']) { + $req->addContent($cmdRes->args['text'], $cmdRes->options['html']); } $this->handleGenericOptions($cmdRes, $req);