Commit graph

367 commits

Author SHA1 Message Date
joshua stein 3aa412087a show story downvote summary to everyone 2013-10-18 14:58:23 -05:00
joshua stein fce8c73fda wait 2 minutes before mailing out new comments to allow edits 2013-08-23 21:53:48 -05:00
joshua stein 6b17bbd9a5 Merge pull request #61 from llelf/master
markdown needs 4 spaces, not 3, to convert to <pre>
2013-08-07 11:24:40 -07:00
Anton Nikishaev 5f8ccdaac8 Fix markdown formatting help 2013-08-07 22:15:27 +04:00
joshua stein 249dd85ec3 allow non-logged-in users to define tag filters
when not logged in, store the filters in a long-lasting cookie and
do not cache the home page

for that one guy on hacker news that complained about lobste.rs not
having this
2013-08-05 02:19:55 -05:00
joshua stein 92b794748f minor css tweaks
- ditch vendor prefixes for css 3 things, fuck old browsers
- add a shadow around user profile avatar
- whitespace
2013-08-05 01:04:27 -05:00
joshua stein f639fd21e5 tweak invitation e-mail subject and text
"welcome to <site>" makes it sound like you already got signed up,
say "you have been invited to <site>" instead
2013-08-05 01:03:50 -05:00
joshua stein dbc2e40684 move tag css class building to Tag model
add a tag_is_media class to tags with that type, use that for
matching in application.css instead
2013-08-05 01:02:48 -05:00
joshua stein 2d18a3529d check for recently submitted urls before showing the story submission page
this is already done after submitting, which turns it into an
upvote, but now it will catch it when hitting the page from the
bookmarklet so the user doesn't have to fill out tags and stuff
first just to find out it's already submitted.

since this requires no confirmation, don't count it as an upvote
automatically, just redirect to the story page
2013-07-29 15:31:57 -05:00
joshua stein 5c0dad2c4a strip spaces from urls as they are assigned 2013-07-19 22:07:03 -05:00
joshua stein ccb8094da1 change some before_create's to before_validation, :on => :create
random tokens need to be filled in before validation, otherwise the
validation is just checking a blank value
2013-07-19 22:05:00 -05:00
joshua stein 4f8c302edb close bug #57: make :focus'd elements stand out 2013-07-05 16:12:46 -05:00
joshua stein b710f85797 don't mail out deleted stories or comments 2013-07-03 22:40:59 -05:00
joshua stein 0ac51b9f8c include oauth gem for a cli tool 2013-07-03 22:40:37 -05:00
joshua stein ca62e5b43f try to fetch story cache twice if it fails the first time 2013-07-03 22:11:12 -05:00
joshua stein c8d9c66061 let diffbot take a long while 2013-07-03 22:11:01 -05:00
joshua stein 2858fea247 tweak display of user profile data a bit 2013-07-01 16:01:05 -05:00
joshua stein eeda7668b6 on user pages, show their most commonly used tag 2013-07-01 15:53:43 -05:00
joshua stein 301fc79268 alpha user methods 2013-07-01 15:53:43 -05:00
joshua stein 1ae4c141a3 before cramming utf8 data into us-ascii, replace "smart" quotes and things 2013-07-01 14:28:39 -05:00
joshua stein a471eb180a don't hardcode "Lobsters" and "lobste.rs" everywhere, use Rails.application.{name,domain} 2013-06-30 01:50:23 -05:00
joshua stein 7e71908f3d try not to re-wrap comments posted by e-mail at 72 chars 2013-06-30 00:54:03 -05:00
joshua stein 2cdd385126 add front-end code to allow users to toggle mailing list reception 2013-06-30 00:54:03 -05:00
joshua stein 0325b026c1 rss_token and mailing_list_token have to be set before create, duh 2013-06-30 00:54:03 -05:00
joshua stein 7e0fc989d1 move countinual comment logging to model
comments can come in from other places than the controller now
2013-06-30 00:54:02 -05:00
joshua stein fd41bfa566 start on mailing list interface 2013-06-30 00:54:02 -05:00
joshua stein ee6a27beb3 disable tripwire when starting sphinx 2013-06-30 00:54:02 -05:00
joshua stein b1e9e359a3 block all spiders by default, allow major ones 2013-06-30 00:54:02 -05:00
joshua stein ed512cc065 move comment thread_id generation to Comment 2013-06-30 00:54:02 -05:00
joshua stein 7ff7b676e5 use cast() magic when passing score to sphinx
fixes problem with mysql/mariadb 5.5
2013-06-30 00:54:02 -05:00
joshua stein 78603d8349 unique mailing list tokens for everyone! 2013-06-30 00:54:01 -05:00
joshua stein b641d0232d sort of merge cache branch but don't do anything automatically
allow manual caching of story text using diffbot, if an api key is
configured and Story#fetch_story_cache! is called
2013-06-30 00:54:01 -05:00
joshua stein 68690647ab user newer-style validation methods, add banned usernames 2013-06-21 20:37:15 -05:00
joshua stein e727c65f03 production is running mariadb in case anyone cares 2013-05-26 12:56:31 -05:00
joshua stein 127e78df1d change dev database.yml to reflect utf8mb4 2013-05-26 12:39:52 -05:00
joshua stein 2fff1059b1 production is running ruby 1.9.3-p429 now 2013-05-26 12:38:56 -05:00
joshua stein c9571dabaf back out 9ece666 removing utf8mb4 hacks, no longer needed 2013-05-26 12:32:54 -05:00
joshua stein bdc1f36360 get rid of rvmrc, it was never being used
closes #55
2013-05-19 15:00:07 -05:00
joshua stein 1e413eee3a add missing spinner.gif that select2 references 2013-05-09 11:34:33 -05:00
joshua stein 0ff4ef2484 Tag has_many taggings, and delete them on destroy 2013-03-30 11:37:38 -05:00
joshua stein 04218c8f6c explicitly to_s the tag description before sending to CGI.escape
fixes a problem with tags with no description, raised in issue 50
2013-03-29 16:20:52 -05:00
joshua stein 5e357f5684 allow moderators to edit story urls if they ever had one 2013-03-26 12:23:47 -05:00
joshua stein 4cae9d38ae show the tag description as the tag link title 2013-03-23 21:09:41 -05:00
joshua stein f585d07aa8 don't do @username expansion in user profile about section
most users are probably putting @username to mean a twitter profile,
not a link to a lobste.rs profile
2013-03-23 21:05:13 -05:00
joshua stein e8bb03a689 rails 3.2.13 2013-03-18 14:16:19 -05:00
joshua stein 6c914528c4 tweak position of some html tags 2013-03-17 15:39:48 -05:00
joshua stein ff9fc0f41e make user gravatars round 2013-03-15 19:18:43 -05:00
joshua stein 9532ffc410 increase line-height for story texts 2013-03-15 19:18:43 -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 1c0a8dfd03 move after-signup invite page into signup controller 2013-02-25 11:13:44 -06:00