Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging: avoid PHP warning when actor is not set. #1261

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented Feb 3, 2025

Proposed changes:

This addresses the following PHP warning I saw in my logs.

PHP Warning:  Undefined array key "actor" in /srv/htdocs/wp-content/plugins/activitypub/includes/class-debug.php on line 51

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Not much to test on this one ; I assume you would need a wrongly formatted followers for this warning to appear.

This addresses the following PHP warning I saw in my logs.

```
PHP Warning:  Undefined array key "actor" in /srv/htdocs/wp-content/plugins/activitypub/includes/class-debug.php on line 51
```
@jeherve jeherve self-assigned this Feb 3, 2025
@jeherve jeherve added [Type] Bug Something isn't working [Pri] Normal labels Feb 3, 2025
@pfefferle pfefferle merged commit 5324992 into trunk Feb 3, 2025
11 checks passed
@pfefferle pfefferle deleted the fix/warning-debug-actor branch February 3, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Normal [Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants