BERLIN—A German federal court on Thursday faulted aspects of Facebook’s handling of “hate speech,” at least in the past. It ruled that the social network giant can’t delete posts without at least informing users afterward, and must give users advance notice when it moves to suspend their accounts. The Federal Court of Justice considered two cases dating back to August 2018 in which Facebook deleted comments taking aim at Muslim migrants and people of immigrant origin and suspended the users’ accounts. It ordered the company to restore the posts. The court found that Facebook wasn’t entitled to delete the posts and suspend the accounts under its April 2018 conditions of use, which barred users from violating “community standards” and banned “hate speech,” which it did not define more precisely. It said that “users of the network are inappropriately disadvantaged, contrary to the requirement of good faith.” Facebook is entitled in …