Someone posted a post, and it contained the following phrase:

“When a young person abstains from sin, Imam Zaman (atfs) feels proud of him”

Someone in the comments said:

“This is very problematic since that implies minor shirk…”

What’s the right and wrong in this situation?

Shirk is to associate partners with Allah. If we do good, we do it for our own good and primarily to please Allah. You are not doing your action to be rewarded by the Imam however saying that the imam is proud and pleased is fine as it does not involves an act of shirk