make event urls federate
This commit is contained in:
parent
55655ba319
commit
61ed36e446
@ -164,6 +164,13 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
$location = $location_object->item(0)->nodeValue;
|
$location = $location_object->item(0)->nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// url is optional
|
||||||
|
$url = null;
|
||||||
|
$url_object = $happeningObj->element->getElementsByTagName('url');
|
||||||
|
if($url_object->length > 0) {
|
||||||
|
$url = $url_object->item(0)->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
$notice = null;
|
$notice = null;
|
||||||
|
|
||||||
switch ($activity->verb) {
|
switch ($activity->verb) {
|
||||||
@ -175,7 +182,7 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
$happeningObj->title,
|
$happeningObj->title,
|
||||||
$location,
|
$location,
|
||||||
$happeningObj->summary,
|
$happeningObj->summary,
|
||||||
null,
|
$url,
|
||||||
$options);
|
$options);
|
||||||
break;
|
break;
|
||||||
case RSVP::POSITIVE:
|
case RSVP::POSITIVE:
|
||||||
@ -251,8 +258,8 @@ class EventPlugin extends MicroAppPlugin
|
|||||||
common_date_iso8601($happening->end_time));
|
common_date_iso8601($happening->end_time));
|
||||||
|
|
||||||
$obj->extra[] = array('location', false, $happening->location);
|
$obj->extra[] = array('location', false, $happening->location);
|
||||||
|
$obj->extra[] = array('url', false, $happening->url);
|
||||||
|
|
||||||
// FIXME: add URL
|
|
||||||
// XXX: probably need other stuff here
|
// XXX: probably need other stuff here
|
||||||
|
|
||||||
return $obj;
|
return $obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user