Compare commits
7 commits
main
...
readme_imp
Author | SHA1 | Date | |
---|---|---|---|
a38fffd938 | |||
17286b4e63 | |||
eafbb940cb | |||
b4036b1457 | |||
91a977dbfd | |||
6f84e9d43e | |||
5a09997928 |
12 changed files with 29 additions and 58 deletions
14
.distignore
14
.distignore
|
@ -1,24 +1,34 @@
|
||||||
.distignore
|
.distignore
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
|
.php_cs
|
||||||
|
.svnignore
|
||||||
.wordpress-org
|
.wordpress-org
|
||||||
.wp-env.json
|
.wp-env.json
|
||||||
|
_config.yml
|
||||||
|
_site
|
||||||
bin
|
bin
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
CODE_OF_CONDUCT.md
|
CODE_OF_CONDUCT.md
|
||||||
composer.json
|
composer.json
|
||||||
composer.lock
|
composer.lock
|
||||||
docker-compose.yml
|
|
||||||
Dockerfile
|
Dockerfile
|
||||||
docs
|
docs
|
||||||
|
docker-compose-test.yml
|
||||||
|
docker-compose.yml
|
||||||
FEDERATION.md
|
FEDERATION.md
|
||||||
Gruntfile.js
|
Gruntfile.js
|
||||||
|
Makefile
|
||||||
node_modules
|
node_modules
|
||||||
package.json
|
npm-debug.log
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
package.json
|
||||||
phpcs.xml
|
phpcs.xml
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
|
phpunit.xml.dist
|
||||||
README.md
|
README.md
|
||||||
|
readme.md
|
||||||
|
SECURITY.md
|
||||||
src
|
src
|
||||||
tests
|
tests
|
||||||
vendor
|
vendor
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
MYSQL_ROOT_PASSWORD: root
|
MYSQL_ROOT_PASSWORD: root
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
|
php-version: ['8.1', '8.2', '8.3']
|
||||||
name: PHPUnit – PHP ${{ matrix.php-version }}
|
name: PHPUnit – PHP ${{ matrix.php-version }}
|
||||||
env:
|
env:
|
||||||
extensions: mysql
|
extensions: mysql
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./vendor/
|
./vendor/
|
||||||
key: cache-composer-phpunit-2
|
key: cache-composer-phpunit-1
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: https://github.com/shivammathur/setup-php@v2
|
uses: https://github.com/shivammathur/setup-php@v2
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: 'v*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
upload-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: https://code.forgejo.org/actions/forgejo-release@v2
|
|
||||||
with:
|
|
||||||
direction: upload
|
|
||||||
url: https://code.event-federation.eu
|
|
||||||
release-notes: ${{ TAG }}
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
.gitattributes
vendored
23
.gitattributes
vendored
|
@ -1,23 +0,0 @@
|
||||||
.distignore export-ignore
|
|
||||||
.forgejo export-ignore
|
|
||||||
.gitattributes export-ignore
|
|
||||||
.gitignore export-ignore
|
|
||||||
.wp-env.json export-ignore
|
|
||||||
bin export-ignore
|
|
||||||
CODE_OF_CONDUCT.md export-ignore
|
|
||||||
composer.json export-ignore
|
|
||||||
composer.lock export-ignore
|
|
||||||
docker-compose.yml export-ignore
|
|
||||||
Dockerfile export-ignore
|
|
||||||
docs export-ignore
|
|
||||||
FEDERATION.md export-ignore
|
|
||||||
Gruntfile.js export-ignore
|
|
||||||
node_modules export-ignore
|
|
||||||
package.json export-ignore
|
|
||||||
package-lock.json export-ignore
|
|
||||||
phpcs.xml export-ignore
|
|
||||||
phpunit.xml export-ignore
|
|
||||||
README.md export-ignore
|
|
||||||
src export-ignore
|
|
||||||
tests export-ignore
|
|
||||||
vendor export-ignore
|
|
|
@ -4,7 +4,7 @@
|
||||||
**Requires at least:** 6.5
|
**Requires at least:** 6.5
|
||||||
**Tested up to:** 6.6
|
**Tested up to:** 6.6
|
||||||
**Stable tag:** 0.2.0
|
**Stable tag:** 0.2.0
|
||||||
**Requires PHP:** 7.4
|
**Requires PHP:** 8.1
|
||||||
**License:** AGPL-3.0-or-later
|
**License:** AGPL-3.0-or-later
|
||||||
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
Integrating popular event plugins with the ActivityPub plugin.
|
Integrating popular event plugins with the ActivityPub plugin.
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
* Author URI: https://graz.social/@linos
|
* Author URI: https://graz.social/@linos
|
||||||
* Text Domain: activitypub-event-bridge
|
* Text Domain: activitypub-event-bridge
|
||||||
* License: AGPL-3.0-or-later
|
* License: AGPL-3.0-or-later
|
||||||
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
* License URI: https://www.gnu.org/licenses/agpl-3.0.de.html
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 8.1
|
||||||
*
|
*
|
||||||
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.0.1.
|
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 3.3.3.
|
||||||
*
|
*
|
||||||
* @package ActivityPub_Event_Bridge
|
* @package ActivityPub_Event_Bridge
|
||||||
* @license AGPL-3.0-or-later
|
* @license AGPL-3.0-or-later
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "The ActivityPub Event Bridge help for event custom post types to federate properly.",
|
"description": "The ActivityPub Event Bridge help for event custom post types to federate properly.",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.4.0",
|
"php": ">=8.1.0",
|
||||||
"composer/installers": "^2.0"
|
"composer/installers": "^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|
|
@ -121,9 +121,9 @@ final class The_Events_Calendar extends Event {
|
||||||
/**
|
/**
|
||||||
* Get the event location.
|
* Get the event location.
|
||||||
*
|
*
|
||||||
* @return ?Place The place/venue if one is set.
|
* @return Place|array The place/venue if one is set.
|
||||||
*/
|
*/
|
||||||
public function get_location(): ?Place {
|
public function get_location(): Place|null {
|
||||||
// Get short handle for the venues.
|
// Get short handle for the venues.
|
||||||
$venues = $this->tribe_event->venues;
|
$venues = $this->tribe_event->venues;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class Health_Check {
|
||||||
*/
|
*/
|
||||||
public static function test_event_transformation() {
|
public static function test_event_transformation() {
|
||||||
$result = array(
|
$result = array(
|
||||||
'label' => \__( 'Transformation of Events to a valid ActivityStreams representation.', 'activitypub-event-bridge' ),
|
'label' => \__( 'Transformation of Events to a valid ActivityStreams representation.', 'activitypub' ),
|
||||||
'status' => 'good',
|
'status' => 'good',
|
||||||
'badge' => array(
|
'badge' => array(
|
||||||
'label' => \__( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
'label' => \__( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
||||||
|
@ -172,7 +172,7 @@ class Health_Check {
|
||||||
'label' => __( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
'label' => __( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'plugin_version' => array(
|
'plugin_version' => array(
|
||||||
'label' => __( 'Plugin Version', 'activitypub-event-bridge' ),
|
'label' => __( 'Plugin Version', 'activitypub' ),
|
||||||
'value' => ACTIVITYPUB_EVENT_BRIDGE_PLUGIN_VERSION,
|
'value' => ACTIVITYPUB_EVENT_BRIDGE_PLUGIN_VERSION,
|
||||||
'private' => true,
|
'private' => true,
|
||||||
),
|
),
|
||||||
|
|
|
@ -44,7 +44,7 @@ class Settings {
|
||||||
'activitypub_event_bridge_default_event_category',
|
'activitypub_event_bridge_default_event_category',
|
||||||
array(
|
array(
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => \__( 'Define your own custom post template', 'activitypub-event-bridge' ),
|
'description' => \__( 'Define your own custom post template', 'activitypub' ),
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'default' => self::DEFAULT_EVENT_CATEGORY,
|
'default' => self::DEFAULT_EVENT_CATEGORY,
|
||||||
'sanitize_callback' => array( self::class, 'sanitize_mapped_event_category' ),
|
'sanitize_callback' => array( self::class, 'sanitize_mapped_event_category' ),
|
||||||
|
@ -56,7 +56,7 @@ class Settings {
|
||||||
'activitypub_event_bridge_event_category_mappings',
|
'activitypub_event_bridge_event_category_mappings',
|
||||||
array(
|
array(
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'description' => \__( 'Define your own custom post template', 'activitypub-event-bridge' ),
|
'description' => \__( 'Define your own custom post template', 'activitypub' ),
|
||||||
'default' => array(),
|
'default' => array(),
|
||||||
'sanitize_callback' => array( self::class, 'sanitize_event_category_mappings' ),
|
'sanitize_callback' => array( self::class, 'sanitize_event_category_mappings' ),
|
||||||
)
|
)
|
||||||
|
@ -67,7 +67,7 @@ class Settings {
|
||||||
'activitypub_event_bridge_initially_activated',
|
'activitypub_event_bridge_initially_activated',
|
||||||
array(
|
array(
|
||||||
'type' => 'boolean',
|
'type' => 'boolean',
|
||||||
'description' => \__( 'Whether the plugin just got activated for the first time.', 'activitypub-event-bridge' ),
|
'description' => \__( 'Whether the plugin just got activated for the first time.', 'activitypub' ),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -252,7 +252,7 @@ class Setup {
|
||||||
*
|
*
|
||||||
* @return \Activitypub\Transformer\Base|null
|
* @return \Activitypub\Transformer\Base|null
|
||||||
*/
|
*/
|
||||||
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
|
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base|null {
|
||||||
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
||||||
if ( 'WP_Post' !== $object_class ) {
|
if ( 'WP_Post' !== $object_class ) {
|
||||||
return $transformer;
|
return $transformer;
|
||||||
|
|
|
@ -4,7 +4,7 @@ Tags: events, fediverse, activitypub, calendar
|
||||||
Requires at least: 6.5
|
Requires at least: 6.5
|
||||||
Tested up to: 6.6
|
Tested up to: 6.6
|
||||||
Stable tag: 0.2.0
|
Stable tag: 0.2.0
|
||||||
Requires PHP: 7.4
|
Requires PHP: 8.1
|
||||||
License: AGPL-3.0-or-later
|
License: AGPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
Integrating popular event plugins with the ActivityPub plugin.
|
Integrating popular event plugins with the ActivityPub plugin.
|
||||||
|
|
Loading…
Reference in a new issue