If the user is replying to a discussion, or if they are editing a post, then we can suggest other posts in the discussion to mention. We will add the 5 most recent comments in the discussion which match any username characters that have been typed.
Generates the syntax for mentioning of a post. Also cleans up the display name.
// '@"User"#p13'// @"Display name"#pPostIDforPostMention(user, 13) // User display name is 'User', post ID is 13 Copy
// '@"User"#p13'// @"Display name"#pPostIDforPostMention(user, 13) // User display name is 'User', post ID is 13
Post mention suggestions are only offered from current discussion posts.
If the user is replying to a discussion, or if they are editing a post, then we can suggest other posts in the discussion to mention. We will add the 5 most recent comments in the discussion which match any username characters that have been typed.