Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/fix me routes #50

Merged
merged 3 commits into from
Jul 14, 2017
Merged

Issue/fix me routes #50

merged 3 commits into from
Jul 14, 2017

Conversation

glm4
Copy link
Collaborator

@glm4 glm4 commented Jul 12, 2017

  1. Resolves Change "me" routes #49. /me routes are not longer used.
  1. Improved User model.

@glm4 glm4 added On hold and removed On hold labels Jul 12, 2017
self.id = id
self.username = username
self.email = email
self.image = image
self.image = image.isEmpty ? nil : URL(string: image)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you create a URL object with an empty string? If the URL object is nil you should replace this by: self.image = URL(string: image)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I thought it would create a dummy URL instead of nil.

@pMalvasio pMalvasio merged commit 1216e20 into master Jul 14, 2017
@glm4 glm4 deleted the issue/fix_me_routes branch July 26, 2017 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants