From 616c16e5ad066f96057954db6624c29f56f2c129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 18 Jan 2024 15:27:16 +0100 Subject: [PATCH] rename activitypub event classes --- .forgejo/workflows/deploy.yml | 21 ------------------- .../transformer/class-events-manager.php | 4 ++-- .../activitypub/transformer/class-tribe.php | 4 ++-- .../transformer/class-vs-event.php | 4 ++-- 4 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml deleted file mode 100644 index c83c82a..0000000 --- a/.forgejo/workflows/deploy.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Deploy to https://wordpress-test.event-federation.eu/ - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - if: secrets.SSH_PRIVATE_KEY != '' - - steps: - - name: Checkout Repository - uses: https://code.forgejo.org/actions/checkout@v4 - - - uses: https://github.com/ilkka/git-https-push-action@master - name: Deploy - with: - remoteUrl: ${{ secrets.PUSH_REMOTE }} - skipHooks: false diff --git a/includes/activitypub/transformer/class-events-manager.php b/includes/activitypub/transformer/class-events-manager.php index ebb5cba..7876e9a 100644 --- a/includes/activitypub/transformer/class-events-manager.php +++ b/includes/activitypub/transformer/class-events-manager.php @@ -8,8 +8,8 @@ use EM_Event; -use Activitypub\Activity\Objects\Event; -use Activitypub\Activity\Objects\Place; +use Activitypub\Activity\Extended_Object\Event; +use Activitypub\Activity\Extended_Object\Place; use Activitypub\Transformer\Post; use function Activitypub\esc_hashtag; diff --git a/includes/activitypub/transformer/class-tribe.php b/includes/activitypub/transformer/class-tribe.php index 16e38c1..cd664e2 100644 --- a/includes/activitypub/transformer/class-tribe.php +++ b/includes/activitypub/transformer/class-tribe.php @@ -11,8 +11,8 @@ if ( ! defined( 'ABSPATH' ) ) { } use Activitypub\Transformer\Post; -use Activitypub\Activity\Event; -use Activitypub\Activity\Place; +use Activitypub\Activity\Extended_Object\Event; +use Activitypub\Activity\Extended_Object\Place; /** * ActivityPub Tribe Transformer diff --git a/includes/activitypub/transformer/class-vs-event.php b/includes/activitypub/transformer/class-vs-event.php index fda00b1..1b8b7e9 100644 --- a/includes/activitypub/transformer/class-vs-event.php +++ b/includes/activitypub/transformer/class-vs-event.php @@ -6,10 +6,10 @@ * @license AGPL-3.0-or-later */ -use Activitypub\Activity\Objects\Event; -use Activitypub\Activity\Objects\Place; use Activitypub\Transformer\Post; use Activitypub\Model\Blog_user; +use Activitypub\Activity\Extended_Object\Event; +use Activitypub\Activity\Extended_Object\Place; use function Activitypub\get_rest_url_by_path;