Commit graph

846 commits

Author SHA1 Message Date
Derek Prior 6eec2e26af
Support Ruby 2.2.0 and 2.3.0
Judging from the test suite, the only issue in supporting Ruby 2.2.0+
was with the `mysql2` gem. Updating this to the latest 0.3.x allows
Lobsters to run with newer Rubies.

We can't update to the absolute latest `mysql2` gem without first
updating Rails, which is why I used the pessimistic version constraint
for `mysql2`.
2016-03-05 17:19:44 -05:00
joshua stein 2e1cf36ee0 css: apparently safari still doesn't support min-resolution
add webkit-specific thing to show high-res L logo

closes #267
2016-03-02 09:41:52 -06:00
joshua stein 192a6c8a02 give up on "discuss"
closes issue #265
2016-02-21 09:43:17 -06:00
joshua stein 9d371b72d6 post_to_twitter: guess anything with a dot and up to 10 letters is a domain 2016-02-17 14:21:56 -06:00
joshua stein 0f498d3ee3 Markdowner: disable automatic profile linking for now 2016-02-11 10:54:02 -06:00
joshua stein 869f83e285 fix @user vs @showing_user in unban section 2016-02-11 09:59:05 -06:00
joshua stein 2b5ba63087 Comment: if user is banned, make gone text reflect that 2016-02-10 16:12:11 -06:00
joshua stein d66648ff68 moderations: show comment username to avoid a click through 2016-02-10 16:11:34 -06:00
joshua stein 28bbc9c8f7 moderators have to provide a reason for deleting others' comments 2016-02-10 08:57:38 -06:00
joshua stein 3afe1538f8 stories: show archive link to archive.is 2016-02-10 08:39:42 -06:00
joshua stein c3b62cc166 User#grant_moderatorship_by_user! 2016-02-10 08:39:10 -06:00
joshua stein e0b7c25758 comments: show usernames in vote summaries to moderators 2016-02-10 08:38:28 -06:00
joshua stein 61b08c7dee story list detail: flip flop again, show 'no comments' for non-users
I've changed this a few times because I didn't want to show
"discuss" to non-users, but they at least need a link to the story
to copy, so show a link with "no comments" to them.
2016-02-02 11:56:10 -06:00
joshua stein 09a92040ed Sponge: bring in monkeypatch to override SSL hostname
We force a connection to a pre-resolved IP to avoid being tricked
into connecting to a local host, but hosts that use SNI need the
hostname in the SSL negotiation instead of an IP.

Fixes the problem with CloudFlare blocking requests to medium.com,
which prevented the URL canonicalization code from being run when a
medium URL was submitted, which prevented us from stripping off
those stupid referral codes medium attaches to URLs (which could
be stripped out in Story#url= but medium allows custom domains, so
that wouldn't work for things like m.signalvnoise.com).

Code from Pushover.
2016-01-21 11:59:06 -06:00
joshua stein 0ec9c3a2ac turn on avatars by default 2016-01-21 11:59:06 -06:00
joshua stein f53aced518 add a comment explaining why this code is so verbose 2016-01-21 11:58:54 -06:00
joshua stein d10f567a26 Search: just use Riddle.escape, sorry boolean 2016-01-21 11:58:54 -06:00
joshua stein 5990afda85 Merge pull request #259 from pra85/patch-1
Update license year range to 2016
2016-01-18 09:55:50 -06:00
Prayag Verma 358b1ebfcf Update license year range to 2016 2016-01-18 11:23:09 +05:30
joshua stein 200e4f7dd2 css: remove white background colors that were driving me nuts 2016-01-12 16:39:23 -06:00
joshua stein 28a6faab9d mail_new_activity: properly implement QP for email subjects 2016-01-11 12:46:41 -06:00
joshua stein ffa1b879da use span tag for time_ago_in_words_label 2015-12-31 09:15:02 -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 9e238647e0 print any meta tags in @meta_tags in layout, add twitter ones for story pages 2015-12-31 09:13:34 -06:00
joshua stein 5129733b04 when showing another user's threads, don't include story threads 2015-12-18 10:51:01 -06:00
joshua stein d6a29c8954 Merge pull request #253 from jryans/legend-bg
Remove white background from .legend
2015-12-18 09:42:30 -06:00
J. Ryan Stinnett 4c3c6094d0 Remove white background from .legend 2015-12-18 09:33:48 -06:00
joshua stein ec92478bc9 use time_ago_in_words_label to show missing 'ago' part
pr #252
2015-12-16 12:36:23 -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 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 46ebed367d Comment, Story: crank MAX_EDIT_MINS to 6 hours 2015-12-09 11:52:48 -06:00
joshua stein b21f96cb1a story submission: make tag select box match tag description too
fixes #247
2015-12-09 11:51:15 -06:00
joshua stein 850131873b link to /chat when talking about requesting invites
issue #244
2015-12-07 13:17:11 -06:00
joshua stein 6b636ac8c5 add setting to show threads on a user's submitted stories in 'Your Threads'
closes #231
2015-12-07 12:27:09 -06:00
joshua stein 3850fa7d54 Story: reduce suggestion quorum to 3 2015-12-07 12:27:09 -06:00
joshua stein a812f25c2f Markdowner: use Nokogiri for html rewriting
brute forcing changes by regexps gets things wrong sometimes, so use
nokogiri to parse the html output of rdiscount and do changes on
individual nodes, then turn back into a string

we lose the ability to move punctuation inside of auto-generated
links, but i don't see any easy/definitive way to do this properly.

closes #242
closes #209
2015-12-07 12:27:03 -06:00
joshua stein abd662fc7e add some tests for Markdowner
including failing ones for bug #209 and bug #242
2015-12-03 15:17:31 -06:00
joshua stein 138c658052 cleanup tests
i am not going to waste any more time cleaning up these specs that
were written by other people to be so crafty that they break or spew
tons of garbage every time something is updated.
2015-12-03 15:03:23 -06:00
joshua stein 9f9e608fc8 fix fetched_attributes fallout 2015-12-03 14:57:33 -06:00
joshua stein 8b4dec5746 sync db schema 2015-12-03 14:57:11 -06:00
joshua stein 4e94bc9e29 Comment: for emailed comments, show that in the message id used for mailing list 2015-12-02 13:46:19 -06:00
joshua stein 5d8c7f7167 make time_ago_in_words_label use a custom time_ago_in_words
"36 hours ago" is more useful than "1 day ago", so tweak the times
used to jump to the next divisor
2015-12-02 13:46:19 -06:00
joshua stein c05f526a57 make story description icon a link to the story page, revert c1d1a44472
i don't like showing "discuss" to logged out users, and now that we
have a story description icon that can link to the story text, back
out the change that made logged out users see discuss when they
can't discuss it.
2015-12-02 13:46:19 -06:00
joshua stein 45b63935af Story: move fetched_* stuff into a single fetched_attributes 2015-12-02 13:46:19 -06:00
joshua stein c354485916 when a non-banned, deleted user logs in, reactivate their account 2015-11-18 12:08:45 -06:00
joshua stein 77e2000cb3 comment: put merge icon before avatar 2015-11-18 11:35:34 -06:00
joshua stein ee363e3635 filters: link to /tags 2015-11-13 15:53:38 -06:00
joshua stein 80311fa978 message view: fix double 'ago' 2015-11-13 15:53:22 -06:00
joshua stein 8edc8b926f css: all this time i had no idea we didn't have a white background 2015-11-13 15:53:06 -06:00
joshua stein 870d2b10fa Merge pull request #240 from apg/authored-by-or-via
Update byline for non-authored submissions.
2015-11-13 15:52:43 -06:00