Fixed bbcode rendering missing received user entity

Xon

Well-known member
Affected version
2.0 Beta 1
In Code:
  • Message Preparer checkValidity & processMessage
  • Rendering a signature isn't directly aware of which user the signature is for.
  • RSS feed does not receive the thread user when rendering the 1st post.
In templates
  • feed_preview
  • member_about (profile, signature)
Perhaps auditing each bb_code() template call and explicitly passing null for the User entity where possible?

The bb_code() template function has the User object as explicit from the options bag, perhaps pushing that down to the Traverser::render function.

Being able to push any received User object to RuleSet::ValidateTag() would definitely be valuable.
 
It would be very useful to not only know which user generated the content, but also where that content it is located.
Ideally we would get the actual entity from every place which has a related entity. With a generic entity there is a lot of dynamic inspect you can do to determine if it is something custom code knows how to support.

In my direct user case; this would allow marking a post as a "staff post" even if the user is no longer a staff member.
 
Back
Top Bottom