Disable social media sharing on private categories, unlisted topics (PR #10349)

GitHub

Looks good to me, I wonder if we should add some very basic testing to share popup.