Commit graph

1036 commits

Author SHA1 Message Date
Peter Bhat Harkins b886ea1413 Clean up mysqlism (booleans are also usable as int(1)) (#285)
Clean up mysqlism (booleans are also usable as int(1))
2016-04-23 21:20:10 -04:00
joshua stein 8ac1e7c318 Merge pull request #286 from pushcx/asset_path_select2
Use asset_path in select2 image URLs
2016-04-19 15:28:54 -04:00
Peter Bhat Harkins 540095667b Use asset_path in select2 image URLs 2016-04-15 21:34:14 -05:00
joshua stein 429940b858 gitignore: un-ignore bbs stuff now that it's gone 2016-04-14 11:19:04 -05:00
joshua stein 0e90347956 stories: include url to big icon in twitter card 2016-04-14 11:18:44 -05:00
joshua stein 0d66bdc331 ignore favicon and apple-touch-icon, these are per-site 2016-04-14 11:17:34 -05:00
joshua stein f05cb03b0c Merge pull request #283 from pushcx/chat-default
Don't 500 if someone hasn't added a chat template
2016-04-13 10:00:30 -05:00
joshua stein 0e9ef957e9 Merge pull request #284 from pushcx/unused-aasets
Remove unused assets
2016-04-13 10:00:13 -05:00
Peter Bhat Harkins 01f1a71a18 Remove unused assets 2016-04-13 09:10:06 -05:00
Peter Bhat Harkins bfe7a67156 Don't 500 if someone hasn't added a chat template 2016-04-12 21:34:04 -05:00
joshua stein acef99cd00 README: mention ruby 2.3.0, and i am not "supporting" anything
noticed by @pushcx
2016-04-12 14:48:40 -05:00
joshua stein 239379ea51 shrink TRAFFIC_DECREMENTER 2016-04-12 11:49:36 -05:00
joshua stein 94ce8cbcc0 clarify hat rules 2016-04-12 11:49:10 -05:00
joshua stein a7d426581d Story: shrink hotness window to 22 hours 2016-04-12 11:48:47 -05:00
joshua stein 3b14a9ba54 hats: sort hat groups without case sensitivity 2016-04-06 19:20:25 -05:00
joshua stein a694b2a499 css: nowrap on hats, splitting/wrapping them looks very weird 2016-04-06 19:15:45 -05:00
joshua stein 92117e9947 hats: clear button 2016-04-06 19:15:31 -05:00
joshua stein 2e1f8d9f33 hats: don't require a logged-in user to browse hats
closes #282
2016-04-06 15:23:22 -05:00
joshua stein 1fb6eb6eb2 drop SUGGESTION_QUORUM to 2 2016-04-06 13:22:46 -05:00
joshua stein d88b03b4b3 add some more bot UAs 2016-04-06 13:22:37 -05:00
joshua stein a5928b675d implement hats list and request/approval system
closes #281
2016-04-06 13:19:46 -05:00
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