Closed janboddez closed 1 year ago
Much like we already do when syndicating.
We could use a transient. Need to log errors for Options_Handler::register_app()
and Options_Handler::register_app()
and Options_Handler::request_access_token()
.
There's so much that can go wrong and yet it's almost always the same thing, that the URL entered was wrong, which we've already made more robust. You wanna know what's up it's much easier to just enable debug logging, which will print the instance's entire response, or a WP_Error, to debug.log.
Like, show an actual error message if WP/cURL can't contact the Mastodon instance/times out, etc. See also https://github.com/janboddez/share-on-mastodon/issues/56