git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for media endpoints
[shpub.git]
/
src
/
shpub
/
Command
/
Rsvp.php
diff --git
a/src/shpub/Command/Rsvp.php
b/src/shpub/Command/Rsvp.php
index 69602d93ad3fd4affafbe09fdbf0140f8e5c0da0..4e67e9b1dbc3f8858adea5f1e7426f23ab78ed57 100644
(file)
--- 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');
public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('rsvp');
+ static::addOptHtml($cmd);
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
@@
-50,8
+51,8
@@
class Command_Rsvp extends Command_AbstractProps
$req->setType('h', 'entry');
$req->addProperty('in-reply-to', $url);
$req->addProperty('rsvp', $rsvp);
$req->setType('h', 'entry');
$req->addProperty('in-reply-to', $url);
$req->addProperty('rsvp', $rsvp);
- if ($cmdRes->args['text']
!= ''
) {
- $req->add
Property('content', $cmdRes->args['text
']);
+ if ($cmdRes->args['text']) {
+ $req->add
Content($cmdRes->args['text'], $cmdRes->options['html
']);
}
$this->handleGenericOptions($cmdRes, $req);
}
$this->handleGenericOptions($cmdRes, $req);