small fixes
This commit is contained in:
parent
16aa012be0
commit
ebc8bd4b37
3 changed files with 4 additions and 5 deletions
|
@ -36,9 +36,8 @@ class Event extends Post {
|
||||||
*
|
*
|
||||||
* @return string The User-URL.
|
* @return string The User-URL.
|
||||||
*/
|
*/
|
||||||
protected function get_attributed_to() {
|
protected function get_actor() {
|
||||||
$blog = new Blog();
|
return $this->get_attributed_to();
|
||||||
return $blog->get_id();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -243,7 +243,7 @@ class VS_Event_List extends Event_Transformer {
|
||||||
->set_name( get_the_title( $this->wp_object->ID ) )
|
->set_name( get_the_title( $this->wp_object->ID ) )
|
||||||
->set_is_online( false )
|
->set_is_online( false )
|
||||||
->set_in_language( $this->get_locale() )
|
->set_in_language( $this->get_locale() )
|
||||||
->set_actor( get_rest_url_by_path( 'application' ) )
|
->set_actor()
|
||||||
->set_to( array( 'https://www.w3.org/ns/activitystreams#Public' ) )
|
->set_to( array( 'https://www.w3.org/ns/activitystreams#Public' ) )
|
||||||
->set_location()
|
->set_location()
|
||||||
->set_id();
|
->set_id();
|
||||||
|
|
|
@ -52,7 +52,7 @@ class Setup {
|
||||||
'plugin_file' => 'very-simple-event-list/vsel.php',
|
'plugin_file' => 'very-simple-event-list/vsel.php',
|
||||||
'post_type' => 'event',
|
'post_type' => 'event',
|
||||||
'settings_page_id' => 'settings_page_vsel',
|
'settings_page_id' => 'settings_page_vsel',
|
||||||
'transformer_class' => 'VS_Event',
|
'transformer_class' => 'VS_Event_List',
|
||||||
'taxonomy' => 'event_cat',
|
'taxonomy' => 'event_cat',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue