Skip to main content

validate_sticky

Function validate_sticky 

Source
pub fn validate_sticky(body: &str) -> Result<(), &'static str>
Expand description

Validate that a rendered comment body carries the sticky marker. Returns an Err without the marker so a caller can refuse to post a body that would create a new comment instead of updating the existing one.