mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
Profile work
This commit is contained in:
parent
711f98b419
commit
fc08c7fa75
2 changed files with 2 additions and 1 deletions
|
@ -127,6 +127,7 @@ namespace Roadie.Api.Controllers
|
|||
{
|
||||
UserName = registerModel.Username,
|
||||
RegisteredOn = DateTime.UtcNow,
|
||||
DoUseHtmlPlayer = true,
|
||||
Email = registerModel.Email
|
||||
};
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace Roadie.Library.Imaging
|
|||
|
||||
public static byte[] ImageDataFromUrl(string imageUrl)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(imageUrl))
|
||||
if (!string.IsNullOrEmpty(imageUrl) && !imageUrl.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var dataString = imageUrl.Trim().Replace('-', '+')
|
||||
.Replace("data:image/jpeg;base64,", "")
|
||||
|
|
Loading…
Reference in a new issue