"any action voluntarily taken in good faith to restrict access to or availability of material that the provider or user considers to be obscene, lewd, lascivious, filthy, excessively violent, harassing, or otherwise objectionable, whether or not such material is constitutionally protected"
Any Internet platform can moderate to their heart's content, even if it goes beyond the extent demanded by the law. There are no constitutional free speech protections on the Internet. The "publisher/platform" thing is pure horseshit spread by people who cry about "online censorship". Unfortunately that tactic seems to be working.
The effect of the law is that sites have less civil liability for user generated content, even if they make some decisions about what content is acceptable.
Those decisions can't get limited under the first amendment, and the content still has 3rd party speech protection.
So the government asking YouTube to remove a video would be a 1a violation, by controlling it's moderation decisions.
If YT is just some form of medium, not the "speaker"/provider and by that not allowed to remove content under its own freedom of speech, why is it then allowed (even forced) to block my content under copyright laws if it infringes someone's copyright.
Why not just route the DMCA request to me and I would need to react. Isn't YT treated as provider/publisher, when forced to react to DMCA requests on my behalf, if I infringe on some copyright?
This is not quite right, legally speaking. Currently Youtube and other platforms enjoy the protection of Communication Decency Act Section 230 [1]. In particular, the passage "No provider or user of an interactive computer service shall be treated as the publisher or speaker of any information provided by another information content provider".
This passage has two side effects. One is, those platforms enjoy a liability protection - they cannot be sued for the content published on them, as they are not 'speaker/publisher' of the content (the original poster is). The other is, those platforms should not enjoy the freedom of speech protection - as they are not, legally speaking, the 'speaker/publisher' of the content.
The 'freedom of speech of Youtube' argument runs counter to Youtube's best interest - immunity from civil liability, as granted through the Section 230.
--
[1] https://www.law.cornell.edu/uscode/text/47/230