Permalink
Browse files

don't prettify urls after voting has started

  • Loading branch information...
1 parent 4897038 commit 2f9bbded6ed4fd0a1659a94f4e9dc326066d878a @gerad gerad committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/deploy.coffee
View
@@ -60,7 +60,7 @@ DeploySchema.post 'save', ->
team.entry.url = @urlForTeam team unless team.entry.votable
team.save (err) ->
throw err if err
- team.prettifyURL()
+ team.prettifyURL() unless team.entry.votable
#team.updateScreenshot() disable screenshot update after coding
Deploy = mongoose.model 'Deploy', DeploySchema

1 comment on commit 2f9bbde

visnup commented on 2f9bbde Nov 14, 2012

I didn't think this would affect it because it's just following what's in this.entry.url (which doesn't change in theory).

Please sign in to comment.