Refactoring and fixed for Module\Rpost
- Add some basic tests for the Rpost module.
- Remove unused/obsolete variabled
- Refactoring: Move functional units into separate functions
- Refactoring: Reuse returned value from
local_channel()
instead of recalculating it every time. - Add return types and API docs
- Fix warnings and deprecations exposed by tests.
- Security: Fix open redirect in Rpost. Redirect to submitted post instead of external URL when post is successfully submitted.
- Various fixes/improvements to the unit test framework.