The platform flagged the president’s tweet and said it could “dissuade voters”.