system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Trek:TNG] Who all knew that Data had sex with Tasha Yar?

I remember after the incident, Tasha told Data that it 'never happened'.  I don't think Data would tell anyone, so how did Riker know about it when Data was on trial.  I'd think the other crew would of thought he had the little portrait of her because she was a senior officer that died, and wouldn't auto assume 'oh they had sex, that's why he has that.   '

&#x200B;

Did Tasha have to tell Troi about it perhaps as a followup to the incident?  Required counseling sessions for affected crew members, and then Troi blabbed to Riker?  Would Picard known about it?
gpt
When she tells him "it never happened", they're on the bridge in front of everyone, and she's not even saying it quietly, and they just came out of a situation where everyone was horned up to 11, so Riker or whoever was probably able to make the logical conclusion.