Skip to content

Commit

Permalink
Check for x.com when accidentally trying to use the URL submission on…
Browse files Browse the repository at this point in the history
… the admin page

I can keep pretending that Twitter is still named Twitter right?
  • Loading branch information
golf1052 committed May 19, 2024
1 parent 48b1b06 commit 93b99d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SeattleCarsInBikeLanes/Controllers/AdminPageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public async Task<IActionResult> PostTweet([FromBody] PostTweetRequest request)

helperMethods.DisposePictureStreams(pictureStreams);
}
else if (request.PostUrl.Contains("twitter.com"))
else if (request.PostUrl.Contains("twitter.com") || request.PostUrl.Contains("x.com"))
{
throw new Exception("Reading tweets from Twitter no longer works. Please copy/paste the tweet body, image links, and tweet link into the appropriate locations.");
}
Expand Down

0 comments on commit 93b99d3

Please sign in to comment.