Skip to main content

touch_for_comment_change

Function touch_for_comment_change 

Source
pub fn touch_for_comment_change(item: &mut Item, by: &str)
Expand description

Bump an item’s updated / updated_by for sort recency without appending to its attribute history. Use this for comment add / edit / rm: the item is touched but no attribute changed, so the audit trail of comment activity lives on the comment itself (its edits list, plus the item’s comments Vec membership) rather than in the item’s attribute history.