Skip to content

Fatal error when attempting to un-boost a post #503

@jeherve

Description

@jeherve

Steps to reproduce

  1. On a site running the ActivityPub plugin and the Friends plugin, go to the Friends page
  2. Boost a post
  3. Click the Boost button to unboost it.
PHP Fatal error:  Uncaught Error: Class "Activitypub\Outbox" not found in /srv/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php:2607
Stack trace:
#0 /srv/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(2457): Friends\Feed_Parser_ActivityPub->queue_unannounce(Object(WP_Post))
#1 /srv/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php(2442): Friends\Feed_Parser_ActivityPub->mastodon_api_unreblog(82539)
#2 /wordpress/core/6.7.2/wp-includes/class-wp-hook.php(324): Friends\Feed_Parser_ActivityPub->ajax_boost('')
#3 /wordpress/core/6.7.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#4 /wordpress/core/6.7.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /wordpress/core/6.7.2/wp-admin/admin-ajax.php(192): do_action('wp_ajax_friends...')
#6 {main}
  thrown in /srv/htdocs/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php on line 2607

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions