I would expect it to be argued by defendants that since no man (or indeed woman) at Meta actually read the books that were torrented, the First Amendment does not apply here. The question is: does the First Amendment apply to an algorithm?
No. The first amendment explicitly applies to Congress; by extension it applies to the policy-making authority of the federal government generally, and via the 14th amendment, it applies to the states.
It prohibits the abridgment of freedom of speech by government institutions, without distinction as to the identity of the speaker or the content of the speech.