Prepare ActivityPub resolveable locations #76

Open
linos wants to merge 2 commits from refactor_locations into main
2 changed files with 2 additions and 1 deletions
Showing only changes of commit fa08fd87b8 - Show all commits

View file

@ -47,7 +47,7 @@ final class The_Events_Calendar extends Post {
*
* @return array|string|null The place/venue if one is set.
*/
public function get_address(): mixed {
public function get_address() {
$address = array();
if ( ! empty( $this->wp_object->country ) ) {

View file

@ -192,6 +192,7 @@ class Test_The_Events_Calendar extends WP_UnitTestCase {
->create();
// Call the transformer.
$event_array = \Activitypub\Transformer\Factory::get_transformer( $wp_object )->to_object()->to_array();
// Check that the event ActivityStreams representation contains everything as expected.