Commit graph

53 commits

Author SHA1 Message Date
Carl Chenet dad5a4ddcc fix typo hide/unhide (masquer/révéler) 2019-12-29 14:01:16 +01:00
Carl Chenet 653d8e64a9 experiment with hiding fresh but boring comment scores 2017-05-23 14:13:12 +02:00
Carl Chenet 0c1516bb14 application.js: always replace comment form in submit/preview 2017-05-23 10:33:55 +02:00
Carl Chenet 42a2df9d25 Submit comment with ctrl+enter or cmd+enter 2017-05-17 10:47:08 +02:00
Carl Chenet 82a8a7155a here be dragons - merged with i18n 2017-05-17 10:23:25 +02:00
Carl Chenet 6d45d5346e translate javascript delete/undelete comment. fixes #37 2016-12-06 20:43:05 +01:00
Carl Chenet b8144e19c0 i18n of moderation of the comments. closes #12 2016-12-06 18:09:55 +01:00
Carl Chenet 3eac6cd62a use révéler for unhide. fixes #8 2016-11-24 15:26:26 +01:00
Peter Bhat Harkins d8e31fb000 Auto-tag Twitch as video (#324) 2016-10-31 14:30:42 -05:00
wally fa39374d30 Fixes #272. Add runSelect2 method to call after previewStory.
The select2 code failed to run after previewing a story
submission. This fix creates a new method that can be called upon
completion of the previewStory load() call.
2016-04-05 16:10:31 -04:00
joshua stein 28bbc9c8f7 moderators have to provide a reason for deleting others' comments 2016-02-10 08:57:38 -06:00
joshua stein de176d80dd story tags: sort by exact tag matches first, then description matches
select2 has sortResults in newer versions but so much crap changed
there that it's easier to just hack in support for this here

fixes #251
2015-12-14 10:44:28 -06:00
joshua stein 37994c0306 story editing: consolidate auto tag application, add audio for soundcloud 2015-10-26 10:39:40 -05:00
Agustin Borgna 803a036a26 Implement comment folding in pure css 2015-09-23 00:44:46 -03:00
joshua stein 3ceb309577 when collapsing comment trees, collapse the comment itself 2015-07-31 12:52:52 -05:00
joshua stein ff097813ad autosize comment textareas
closes #194
2015-07-24 01:26:58 -05:00
joshua stein 6ac294470d when replying to a comment, if text is selected, quote it
Because the browser unselects text when you click on something, make
the reply link "unselectable" with CSS and an HTML attribute for
various browsers.

Implements #206
2015-07-24 00:51:46 -05:00
joshua stein 92c2e85b0a move folding to left side of username, move text to css 2015-07-24 00:51:11 -05:00
BennyHallett 4ddfaa8964 Fixes #181. Add comment folding as decribed in: https://lobste.rs/s/m5dlun/comment_folding 2015-07-24 00:51:10 -05:00
joshua stein 6695480fdb when auto-detecting story titles, try to find a canonical url and use it
should remedy duplicate stories being submitted under all of their
stupid blogspot.* domains instead of the canonical url represented
in the <link> tag
2015-03-10 17:41:40 -05:00
Serge Paquet a1f5052f99 fix cancel button in comment forms 2014-12-14 01:24:18 -05:00
joshua stein 4b0caa2752 fix display of comment box after editing and posting
should close #178
2014-11-14 14:02:16 -06:00
joshua stein d6447ac249 comment view: ignore multiple clicks on "reply" link 2014-11-14 13:49:00 -06:00
joshua stein 64bdb6f446 Merge pull request #167 from walle/issue_140
fix some after-comment issues
2014-08-17 19:07:46 -05:00
Fredrik Wallgren ee8b50f9c0 Add cancel button to comment editing.
This should fix issue #128.
2014-08-16 18:37:36 +02:00
Fredrik Wallgren 9a774d082d Let the comment form remain when posting a top-level comment. 2014-08-16 16:47:24 +02:00
joshua stein 452c75908d change story downvoting to be called "flag", but still count as a downvote
been in production for a while
2014-07-02 10:04:48 -05:00
joshua stein 7f9c227ed0 bring back story downvoting, remove low quality option
story hiding is still here, so hopefully this will result in less
bogus story downvotes
2014-03-24 10:26:06 -05:00
joshua stein ed71fd8d61 auto-apply slides tag to speakerdeck.com 2014-03-12 18:32:03 -05:00
joshua stein 9535b05490 remove story downvoting, add story hiding
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.

hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"

add a /hidden url which shows all of a user's hidden stories

while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
joshua stein 479c02415e auto assign ask/show tags when story title has "(show|ask) lobsters"
and strip out that segment from the title since it is redundant
2014-01-30 09:42:58 -06:00
Serge Paquet 79b64c3883 use standard create/update comment routes 2014-01-20 16:52:19 -05:00
Serge Paquet 42ce1e3b4c rebuilt comment tree DOM structure as valid HTML 2014-01-20 16:52:19 -05:00
Serge Paquet 41c9dfad5d fix DOM structure when replying to or updating comments 2014-01-20 16:52:19 -05:00
Serge Paquet 3c63f930cd more jQuery.fn.live fixes for the "submit story" page 2013-12-28 22:17:08 -05:00
Serge Paquet ae2ff1f1ef fix javascript errors caused by using deprecated/removed jQuery.fn.live function 2013-12-25 16:32:40 -05:00
joshua stein 66548e21cf story tag selector: only match at the beginning of the tag name
makes much more sense when quickly typing in tag names to match the
tag name you're typing, not a tag that has a description that
contains a word with what you're typing
2013-03-15 19:13:58 -05:00
joshua stein d0459974cd so long whitespace 2013-02-13 18:50:51 -06:00
joshua stein 56261c999a tabs to spaces 2013-01-07 17:23:09 -06:00
joshua stein f130dd7ab0 add some js to allow moderators to enter reason when deleting stories 2013-01-07 17:20:41 -06:00
joshua stein 0663ea0fed show how many users are filtering each tag 2012-09-19 12:25:11 -05:00
joshua stein 96ee762fdf Merge pull request #3 from prezjordan/master
add cancel button for comment form
2012-09-07 10:37:45 -07:00
joshua stein 061f540506 remove stray line 2012-09-03 16:42:50 -05:00
Jordan Scales d410f4f424 cancel link is now a button, js formatting consistency, removed extra styling 2012-09-02 12:51:32 -04:00
Jordan Scales 14fe4e6623 comment reply form now has a cancel button 2012-08-30 16:49:49 -04:00
joshua stein 3640e1e7a3 comment deleting and undeleting 2012-08-24 11:41:37 -05:00
joshua stein fd8ec36608 story previews 2012-08-24 11:41:37 -05:00
joshua stein a51147b5d0 fix bug; don't show downvote reason for stories 2012-08-24 11:41:36 -05:00
joshua stein 2ba78cc10e downcase vote reasons 2012-08-24 11:41:36 -05:00
joshua stein f8dd75fde4 comment editing, looks weird for now but it works 2012-08-24 11:41:35 -05:00