Diffusion file view: Restrict blame and coverage to logged-in users only
Summary:
It's 2025 and LLM scrapers hit every website, creating performance issues.
Thus restrict the vast majority of links exposed in Diffusion's single file view to logged-in users only.
The next escalation step would be making Diffusion available to logged-in users only which is a worse user experience (links in tasks to revisions not linked anymore etc).
Patch originally crafted by @aklapper.
Closes T16138
Test Plan: Go to a single file of a repository hosted in Diffusion logged out and logged in.
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T16138
Differential Revision: https://we.phorge.it/D26141