WIP: [Sprint/PinkPanther](fix): Stripping out blog body upon export.
Closes #1916
Summary
Blog paywalls are broken, it shows the text when you access the page, even if it should be behind a paywall
Rationale
$this->_eventsDispatcher->trigger('export:extender', 'blog', [ 'entity' => $this ], [])
is not being triggered as was intended, so the body and description were never stripped.
https://gitlab.com/minds/engine/blob/master/Core/Wire/Paywall/Events.php#L70 is not used by any other classes, so I don't think its necessary to pass off to an event here. That being said I did try to get to the bottom of why that event was not being called, and could not. Many layers of abstraction around this that aren't documented.
From left to right
- 1 - Owner account.
- 2 - Not logged in.
- 3 - Other account.
To test
- Make a blog, put it behind a paywall
- Check you can view the content on the owner account.
- Check that you cannot access the content when logged out.
- Check that you cannot access the content when on a secondary account that has not wired tokens previously to your primary.
- Pay for the blog on that account, and verify you can access it (if you need some, drop me a message).
added MR::Awaiting Review Squad::Yellow scoped labels
marked as a Work In Progress
changed the description