Commit graph

1115 commits

Author SHA1 Message Date
joshua stein e3750172c6 Revert "Prettier messaging"
This reverts commit c6d6413ff7.

I don't really like this.
2016-04-05 19:31:13 -05:00
joshua stein d7f0b3bb52 Fixes #272. Add runSelect2 method to call after previewStory.
Fixes #272. Add runSelect2 method to call after previewStory.
2016-04-05 19:29:47 -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
crertel c6d6413ff7 Prettier messaging
Put compose message at the top
2016-04-01 21:20:21 -05:00
joshua stein b8f58a3943 Merge pull request #269 from derekprior/dp-ruby-2-3-0
Support Ruby 2.2.0 and 2.3.0
2016-03-31 14:43:57 -05:00
joshua stein 8a62b530aa apply a basic style to #l_holder
lobste.rs is overriding this in local.css but at least other sites
can get a basic thing there.

mention in README that local css should go into a directory.
2016-03-31 14:24:57 -05:00
joshua stein c77f1d7269 rm a css file that was only for the fake hn interface years ago 2016-03-29 09:44:15 -05:00
joshua stein e85afa2425 StoryRepository: simplify 2016-03-28 17:14:55 -05:00
joshua stein 437124da4e StoryRepository: make positive_ranked honest 2016-03-28 17:14:43 -05:00
joshua stein 7b5aad85d6 css: move some lobsters-specific things to local 2016-03-24 15:13:50 -05:00
joshua stein d9ff6eb188 bring in stylesheets/local/* which are ignored in git 2016-03-24 15:08:10 -05:00
joshua stein 41ba0b20dd Hat: add css class of hat_(actual_hat_name) 2016-03-24 14:58:06 -05:00
joshua stein 84394c5de6 when comments are -1, just collapse them
avoids piling on and engaging with trolls
2016-03-24 13:55:25 -05:00
joshua stein d54427df21 make 'link' on comments use very short url 2016-03-24 13:19:26 -05:00
joshua stein e515caaea1 don't increase traffic for tor users 2016-03-22 14:07:39 -05:00
joshua stein 26d3ea3d30 mail_new_activity: QP strings need spaces turned into underscores
closes issue #271
2016-03-14 19:46:27 -05:00
joshua stein bd1ffe171b settings: link to /threads, put delete at bottom, fix typo 2016-03-09 10:00:14 -06:00
Derek Prior f3a3413e66
Update htmlentities to remove warning
The previous version of `htmlentities` had a duplicate key in one of
its hashes, which produced the following warning:

```
.../htmlentities-4.3.2/lib/htmlentities/mappings/expanded.rb:465:
warning: key "inodot" is duplicated and overwritten on line 466
```

Updating to the latest removes this warning.
2016-03-05 17:32:44 -05:00
Derek Prior aedc24651f
Remove test for disabled functionality
Username linking was disabled in
0f498d3ee3, leaving the test suite in a
failing state. This test can be restored when the functionality is
re-introduced.
2016-03-05 17:23:11 -05:00
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