Don't display shared links if disabled

Displays a 404 page instead of the link contents. I thought about deleting all links, but this seems like a better option in case it was an accidental click.

More pull requests coming soon to improve behavior in the sharing dropdown when links are disabled.

@rperezb @jancborchardt @icewind1991