Comment by gpm
This is overly conspiratorial, because the timeline doesn't line up. Gaza has only been in the news since October 7th 2023.
The government first started talking about banning TikTok in 2018 (under Trump). Ordered them to divest of US interests and prohibited transactions with them in 2020 (under Trump). The latter of which was overturned by the courts.
The current administration took over in 2021, and in 2021 labelled the PRC as a foreign adversary. Discussed the threat to the US through the PRCs control of software applications and teh vasts swaths of information available from their users, directed agencies to find risk mitigation measures, and started a long process of negotiating with TikTok over how exactly it continued to operate.
The act ordering divestment is the inevitable consequence of those talks failing... those talks failed sometime late 2022 or early 2023 (the last proposal under them was in August 2022).
The sudden resurgence of the years-dormant campaign to ban TikTok, and its rapid legislative success this time around, were directly because of Israel and Gaza. From the mouths of senators: "Some wonder why there was such overwhelming support for us to shut down (potentially) TikTok...if you look at the postings on TikTok and the number of mentions of Palestinians relative to other social media sites it's overwhelmingly so among TikTok broadcasts, so I know that's of real interest..." (https://x.com/wideofthepost/status/1787104142982283587)
"How TikTok Was Blindsided by U.S. Bill That Could Ban It" (https://www.wsj.com/tech/how-tiktok-was-blindsided-by-a-u-s-...)