journalduhacker/app/models
joshua stein f1cfe29b1f fix initial story hotness
Initial story hotness was zero, which excluded stories with no other
upvotes from the homepage.  Before creating, define initial hotness
to something.

Since this now makes very new stories show up on the homepage right
away, expand the window back to 48 hours.

This requires a Story.recalculate_all_hotnesses! to properly sort
things.
2015-01-13 13:00:55 -06:00
..
.gitkeep initial work on conversion from php tree 2012-06-16 20:15:46 -05:00
comment.rb use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
hat.rb Hat: if link isn't a url, don't href to it (probably shouldn't call it link then) 2014-12-15 15:06:53 -06:00
invitation.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
invitation_request.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
keystore.rb add postgresql support 2014-01-14 21:42:27 -05:00
message.rb use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
moderation.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
search.rb Search: clamp results to Sphinx's max_matches 2015-01-11 12:59:41 -06:00
short_id.rb change some before_create's to before_validation, :on => :create 2013-07-19 22:05:00 -05:00
stories_paginator.rb style/wrapping 2014-08-03 22:07:56 -05:00
story.rb fix initial story hotness 2015-01-13 13:00:55 -06:00
story_repository.rb cast story.{upvotes,downvotes} to signed on mysql, integer on postgres 2014-10-06 14:07:53 -05:00
tag.rb add Tag.active scope to deprecate tags without removing them 2014-02-21 10:57:30 -06:00
tag_filter.rb use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
tagging.rb replace some raw sql with database-agnostic activerecord queries 2013-12-30 16:23:59 -05:00
user.rb implement hats 2014-11-14 14:12:29 -06:00
vote.rb bring back story downvoting, remove low quality option 2014-03-24 10:26:06 -05:00