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

Fix CLI scheduler function #1316

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

jsit
Copy link
Contributor

@jsit jsit commented Feb 13, 2025

Fixes #1315

Proposed changes:

  • Change Scheduler::schedule_post_activity to Scheduler\Post::schedule_post_activity in CLI.
  • Pass post object to schedule_post_activity, not post ID

Other information:

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

Testing instructions:

  • Run wp activitypub post [delete/update] and make sure there are no errors

pfefferle
pfefferle previously approved these changes Feb 13, 2025
@pfefferle pfefferle merged commit 7c26b4b into Automattic:trunk Feb 13, 2025
11 checks passed
@pfefferle
Copy link
Member

Thanks a lot @jsit

@jsit
Copy link
Contributor Author

jsit commented Feb 13, 2025

@pfefferle I think a similar thing might need to be done for the comment actions as well.

@pfefferle pfefferle mentioned this pull request Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI post error
2 participants