FIX: Create post notices only for public posts (PR #8708)

This also ensures only public posts are considered when creating post notices for new and returning users.


You’ve signed the CLA, udan11. Thank you! This pull request is ready for review.

DeepCode’s analysis on #79561a found:

  • :x: 0 critical issues. :warning: 0 warnings and 0 minor issues. :heavy_check_mark: 0 issues were fixed.

:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.

:relaxed: If you want to provide feedback on our bot, here is how to contact us.