as title
Discussion posts and replies are publicly visible
You should consider changing the local variable to an interface variable. Local variables value can't be passed.
it would be best if you give a example