Commit graph

165 commits

Author SHA1 Message Date
Carl Chenet 105d687a4c translate grouped error message for url already posted days ago 2018-10-16 19:23:56 +02:00
Carl Chenet a02f2f67e2 translate error for mandatory tag(s) 2018-10-16 18:57:47 +02:00
Carl Chenet 7855b2c3c4 Story: move minimum score to a constant, like Comment has 2017-05-23 14:14:47 +02:00
Carl Chenet a05ab9a01e Story#recalculate_hotness: cap comment points at story votes 2017-05-23 13:44:54 +02:00
Carl Chenet a3071c22b5 Story: try to remove meta[property='og:site_name'] from fetched title 2017-05-23 13:30:56 +02:00
Carl Chenet 1cc5ee6c52 Story: move archive URL to model, escape URL in case it has query params - merged with i18n 2017-05-20 15:18:56 +02:00
Carl Chenet db3384f974 Story: sort 2017-05-20 15:13:26 +02:00
Carl Chenet a67236d097 Story: bump up hotness for stories authored by users 2017-05-20 14:50:03 +02:00
Carl Chenet a702fae66a highlight stories to their authors that have suggestions - merged with i18n 2017-05-18 19:02:21 +02:00
Carl Chenet 79964100bb Story: when calculating hotness, always penalize downvotes 2017-05-17 19:14:01 +02:00
Carl Chenet e8d11e28d7 Comment: cap downvotes to -5, only collapse when it reaches 2017-05-11 12:37:38 +02:00
Carl Chenet cabe52b31d Story: look through self.taggings since it's eager loaded in list views 2017-05-08 19:18:37 +02:00
Carl Chenet 050ce74871 translate moderation messages related to stories 2016-12-06 17:56:26 +01:00
joshua stein c602b01965 Story: revert cb300450f, using newest created_at of all merged
This behavior is confusing.
2016-08-19 00:00:18 -05:00
joshua stein b2182f5ca7 Story: in checking for previous duplicates, fetch moderated ones
this will block a moderated story from being submitted again inside
the window

closes #291
2016-06-22 15:30:44 -05:00
joshua stein cb300450fb Story: use newest created_at of all merged stories for calculating hotness
we already take their points, but if they have a much newer
created_at and we've been moved off the front page, points won't
save us.  use their created_at to be fresher.

should fix #300
2016-06-22 15:30:44 -05:00
joshua stein d3a826d80e Story: fix saving old stories with inactive tags 2016-06-01 14:36:09 -05:00
joshua stein d1c9aeaaa3 Story: make title_as_url output shorter urls 2016-05-04 14:40:06 -05:00
joshua stein 4c5cf4a542 require a minimum karma to suggest story title/tag suggestions 2016-05-02 17:57:19 -05:00
joshua stein b204775e8f Story: don't allow a story to be merged into itself 2016-04-25 13:24:50 -05:00
joshua stein a7d426581d Story: shrink hotness window to 22 hours 2016-04-12 11:48:47 -05:00
joshua stein 1fb6eb6eb2 drop SUGGESTION_QUORUM to 2 2016-04-06 13:22:46 -05:00
joshua stein f53aced518 add a comment explaining why this code is so verbose 2016-01-21 11:58:54 -06:00
joshua stein 13df4537f3 make merged story points count towards the winning story
but not take them into its score, just its hotness value.  this way
when a new winning story takes over an upvoted story, the hotness
value will be near the losing one.
2015-12-31 09:14:09 -06:00
joshua stein ce8a148cbe Story: don't count comments towards hotness when tag hotness mods < 0 2015-12-15 12:35:18 -06:00
joshua stein 46ebed367d Comment, Story: crank MAX_EDIT_MINS to 6 hours 2015-12-09 11:52:48 -06:00
joshua stein 3850fa7d54 Story: reduce suggestion quorum to 3 2015-12-07 12:27:09 -06:00
joshua stein 9f9e608fc8 fix fetched_attributes fallout 2015-12-03 14:57:33 -06:00
joshua stein 45b63935af Story: move fetched_* stuff into a single fetched_attributes 2015-12-02 13:46:19 -06:00
joshua stein a337ee850e take suggestions on moderator stories, just not those with privileged tags
also allow moderators to make tag suggestions, we're people too
2015-10-17 10:38:48 -05:00
joshua stein a4e3f04d2d Story: do automatic user suggestion promotion for story titles too
It's much less likely that users will all agree on an exact title
name, but try it anyway.
2015-10-16 18:28:57 -05:00
joshua stein 14bf26f339 for story comments by author of story, color blue as well 2015-10-16 13:08:05 -05:00
joshua stein e3c881b81a implement automatic tag changing in response to user suggestions
Right now it's just a simple check for SUGGESTION_QUORUM (currently
4) number of users agreeing on a set of new tags.

Log a moderation to the story submitter when this happens, and allow
moderations to be done by a non-specific user.

Issue #207
2015-10-15 10:04:23 -05:00
joshua stein 7974ab4090 don't take suggestions on moderator stories
This should probably only apply to stories with restricted tags,
though.
2015-10-15 09:38:26 -05:00
joshua stein 21927eccbe Story: always recalculate hotness after saving changes 2015-10-14 21:17:54 -05:00
joshua stein e940601a2f start on automated story title and tagging suggestions
Rather than keep "poorly titled" and "poorly tagged" as reasons for
flagging, make the user do the work of suggesting new ones.

At some point, suggested taggings will flip to real taggings once
they reach a certain count (to be determined later).  This also has
to take into account tagging sets that don't contain current tags,
for when they need to be removed.

For titles, I'm not yet sure how to handle this in an automated
fashion except for the (probably rare) case of multiple users
submitting the same exact thing, but at least collect them for now.

Issue #207
2015-10-14 20:32:24 -05:00
joshua stein 700c63b936 Story: extend MAX_EDIT_MINS to 3 hours 2015-10-14 18:23:06 -05:00
joshua stein 80f7d5b095 remove or fix failing tests
Many of these fail because they were written with fancy rspec
features that don't work properly anymore and I don't care enough
about testing everything to update them.

See issue #228
2015-10-11 13:00:34 -05:00
Basilio the cat 3743a41868 Keep the www\d* domain for some stories
When extracting story domain, keep the facing `www\d*` domain in cases
where it's the only non top level domain (e.g. www31337.tld).
2015-08-09 22:21:22 +02:00
joshua stein 0c4a88e284 export some more things through json 2015-08-04 09:58:47 -05:00
Owen Marshall 8fae63929d Truncate at end-of-string, not at every EOL 2015-07-31 09:03:10 -04:00
joshua stein 09f65774c2 Story#description_or_story_cache: handle truncation properly 2015-07-30 18:12:57 -05:00
joshua stein 81b3be6165 add setting to show inline story previews in story list
Closes #148
2015-07-30 17:56:09 -05:00
joshua stein 0d61e0cf68 add "i am the author of this" checkbox for stories
Highlights username in a different color and says "authored by"
instead of just "by".

Move html class printing into a method in Story to use in the future
for friends, admin posts, etc.

Closes #171
2015-07-30 17:15:48 -05:00
joshua stein 8282181e49 Story: shrink hotness window to 24 hours 2015-07-24 00:51:11 -05:00
joshua stein 55bab8003d Story: validate url length according to db field length 2015-07-24 00:51:11 -05:00
joshua stein 38ac6a4c3f Story: halve comment score weights in hotness 2015-07-24 00:51:11 -05:00
joshua stein 5989e9c808 Story: fix up bogus chars in title before saving, only 160 for now 2015-07-24 00:51:11 -05:00
joshua stein 434ad81752 Story: do url validation case insensitively 2015-07-24 00:51:10 -05:00
joshua stein e974083413 Story: inactive tags that are marked for destruction are ok 2015-03-19 12:10:52 -05:00