trim @ and ' ' in user searchs, fix #28 & fix #30

This commit is contained in:
Nicolas Constant 2021-01-07 13:30:50 -05:00
parent b584ddf4d4
commit 0179f88b30
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@ namespace BirdsiteLive.Controllers
[Route("/users/{id}")]
public IActionResult Index(string id)
{
id = id.Trim(new[] {' ', '@'});
var user = _twitterService.GetUser(id);
var r = Request.Headers["Accept"].First();

View file

@ -33,5 +33,5 @@
<br />
<p>Search this handle to find it in your instance:</p>
<input type="text" name="textbox" value=" @ViewData.Model.InstanceHandle" onclick="this.select()" class="form-control" readonly/>
<input type="text" name="textbox" value="@ViewData.Model.InstanceHandle" onclick="this.select()" class="form-control" readonly/>
</div>