Commit graph

321 commits

Author SHA1 Message Date
joshua stein a016086b44 increase line-height of comments to match textarea, color links gray 2012-08-24 11:42:23 -05:00
joshua stein 41b6d7620a add some post guidelines 2012-08-24 11:42:23 -05:00
joshua stein fc1f7fe5ee move header into layout, no need for another file 2012-08-24 11:42:23 -05:00
joshua stein 3e7cdbe253 tweak traffic decay to be a little slower 2012-08-24 11:42:23 -05:00
joshua stein 43444f179b implement traffic counter that adjusts redness of lobsters logo 2012-08-24 11:42:23 -05:00
joshua stein 342ede4d4c reload user's tag filters after modifying, before showing again 2012-08-24 11:42:23 -05:00
joshua stein 9a51d7d1f8 raw the memo, we don't need xss protection here 2012-08-24 11:42:23 -05:00
joshua stein f34ad51891 log some more things on countinual 2012-08-24 11:42:23 -05:00
joshua stein 49c6e64aac count user creation on countinual 2012-08-24 11:42:20 -05:00
joshua stein 776bf89dea implement /comments.rss 2012-08-24 11:41:37 -05:00
joshua stein f6b252e456 a tiny bit taller textareas 2012-08-24 11:41:37 -05:00
joshua stein f541d4118c fix 2012-08-24 11:41:37 -05:00
joshua stein 0c0aa465bb make /comments show latest comments 2012-08-24 11:41:37 -05:00
joshua stein c34abddc3d pre overflow auto 2012-08-24 11:41:37 -05:00
joshua stein edcee1bddd << strikes again 2012-08-24 11:41:37 -05:00
joshua stein c945f29040 add similar-url check for www\d*\., rewrite checker to be simpler 2012-08-24 11:41:37 -05:00
joshua stein 70db7a5879 short ids in urls should be case insensitive, so make them that way anyway 2012-08-24 11:41:37 -05:00
joshua stein 33e6eee4e0 don't count deleted comments for stories, update comment counts after comment del/undel 2012-08-24 11:41:37 -05:00
joshua stein 3640e1e7a3 comment deleting and undeleting 2012-08-24 11:41:37 -05:00
joshua stein 7dd4b99ac2 escape slashes in search queries 2012-08-24 11:41:37 -05:00
joshua stein 208e1832d6 use @title 2012-08-24 11:41:37 -05:00
joshua stein fd8ec36608 story previews 2012-08-24 11:41:37 -05:00
joshua stein bc0d934d5e focus search box if there is no search yet 2012-08-24 11:41:37 -05:00
joshua stein abb8392c16 search engine! 2012-08-24 11:41:36 -05:00
joshua stein b01f9e9027 fixup header current page stuff 2012-08-24 11:41:36 -05:00
joshua stein dd9966c0a3 color pdf tags purpleish 2012-08-24 11:41:36 -05:00
joshua stein bd9d2aa3c4 put tags in alpha order, but put pdf first 2012-08-24 11:41:36 -05:00
joshua stein 82ae95f8ca disable trimming threads to our own reply for now, it's busted 2012-08-24 11:41:36 -05:00
joshua stein e0da3a7039 little spacing tweaks 2012-08-24 11:41:36 -05:00
joshua stein a51147b5d0 fix bug; don't show downvote reason for stories 2012-08-24 11:41:36 -05:00
joshua stein 389b4c61ec do better at finding near-similar urls already posted recently
http -> https, trailing slash, etc.
2012-08-24 11:41:36 -05:00
joshua stein 6f3f018598 fix back link to page 1 2012-08-24 11:41:36 -05:00
joshua stein da5c04504a fix voting on stories where the user previously commented on 2012-08-24 11:41:36 -05:00
joshua stein 88f01210d3 enable activerecord attribute whitelisting just in case 2012-08-24 11:41:36 -05:00
joshua stein 75f026b182 do some short caching for guest views of story indexes 2012-08-24 11:41:36 -05:00
joshua stein c2206f46cd fix appearance of other tags when viewing single tag
don't just pull taggings where the tag id matches, pull all stories
where the id is in the list of stories tagged with that tag
2012-08-24 11:41:36 -05:00
joshua stein 2ba78cc10e downcase vote reasons 2012-08-24 11:41:36 -05:00
joshua stein 361a689b13 link to invited user profile 2012-08-24 11:41:36 -05:00
joshua stein 43aa0047e9 simplify markdown help link 2012-08-24 11:41:36 -05:00
joshua stein 9f6a1a7e4a try to collect some about info from the new user 2012-08-24 11:41:36 -05:00
joshua stein c17ea7b638 while we're slow, allow upvoted stories to stick around longer 2012-08-24 11:41:36 -05:00
joshua stein b9c8f1d371 oops, confidence desc 2012-08-24 11:41:36 -05:00
joshua stein db10cd115f explain text field better 2012-08-24 11:41:36 -05:00
joshua stein f664734a40 fix markdown links that have trailing punctuation inside the url 2012-08-24 11:41:36 -05:00
joshua stein be578454a9 taller line-height too 2012-08-24 11:41:36 -05:00
joshua stein f8b1cc0443 tweak comment spacing a bit 2012-08-24 11:41:36 -05:00
joshua stein 10faafc8af no need to say that 2012-08-24 11:41:36 -05:00
joshua stein 2a5b60fbb1 color root too 2012-08-24 11:41:36 -05:00
joshua stein 758d62304a move l.png to data uri 2012-08-24 11:41:36 -05:00
joshua stein a407bad2d6 better tree style 2012-08-24 11:41:36 -05:00
joshua stein 543f5c12bc user tree 2012-08-24 11:41:35 -05:00
joshua stein 54af096f60 tweak spacing a bit 2012-08-24 11:41:35 -05:00
joshua stein b86dae0331 ditch the comment vertical lines for now 2012-08-24 11:41:35 -05:00
joshua stein 038d33bf8b prevent <pre> from taking over the page, fix blockquote example in markdown help 2012-08-24 11:41:35 -05:00
joshua stein e453ba8b81 add meta tag for short story url 2012-08-24 11:41:35 -05:00
joshua stein 911bc2d088 only rstrip comments to preserve leading spaces for <pre> wrapping 2012-08-24 11:41:35 -05:00
joshua stein 40bc2003ab fit more on a page 2012-08-24 11:41:35 -05:00
joshua stein c63d35a65d use a common class for rdiscount options, filter out <h#> tags, add rel=nofollow 2012-08-24 11:41:35 -05:00
joshua stein 6e17272e9d story pagination 2012-08-24 11:41:35 -05:00
joshua stein 342d6ff911 move markeddown html into sql so it doesn't have to be generated every time
it's unlikely to change and if it does, we can just re-generate
everything in sql at once
2012-08-24 11:41:35 -05:00
joshua stein d170d36fd0 only show a description if there is a body 2012-08-24 11:41:35 -05:00
joshua stein 08fade9e9d may as well not render the footer while there's nothing there 2012-08-24 11:41:35 -05:00
joshua stein f8dd75fde4 comment editing, looks weird for now but it works 2012-08-24 11:41:35 -05:00
joshua stein cd568eaa38 fix deleting/undeleting stories for users and moderators 2012-08-24 11:41:35 -05:00
joshua stein 805b0fd1a0 fix blockquote style for comments 2012-08-24 11:41:35 -05:00
joshua stein 647fc5f446 disable autocomplete everywhere 2012-08-24 11:41:35 -05:00
joshua stein 453ead19c0 tweak mobile sizes 2012-08-24 11:41:35 -05:00
joshua stein 80f02beee8 a mobile stylesheet 2012-08-24 11:41:35 -05:00
joshua stein e177b769fc a comment vote is not a vote for the story 2012-08-24 11:41:35 -05:00
joshua stein b5fc3d2e1f allow admins to edit everything forever 2012-08-24 11:41:35 -05:00
joshua stein ab6316a1cf add link on user profile to send them a message (kind of ugly) 2012-08-24 11:41:35 -05:00
joshua stein 59bcaf9512 tweak flash messages 2012-08-24 11:41:35 -05:00
joshua stein 28cd5f8432 fix story edit bug, only check url at new time 2012-08-24 11:41:34 -05:00
joshua stein a2705a835e add tag filters 2012-08-24 11:41:34 -05:00
joshua stein 7611e7d297 add apple-touch-icon 2012-08-24 11:41:34 -05:00
joshua stein fc1c474fb3 implement private messages 2012-08-24 11:41:34 -05:00
joshua stein e47a054e75 focus certain text boxes on load where appropriate; minor tweaks 2012-08-24 11:41:34 -05:00
joshua stein 7858dcd212 max width of 1000 seems better 2012-08-24 11:41:34 -05:00
joshua stein dd64a9c823 max-width to avoid vertical scrolling on small browsers 2012-08-24 11:41:34 -05:00
joshua stein 116d0d6978 use two blue colors for links 2012-08-24 11:41:34 -05:00
joshua stein 95ef42d872 move confidence and hotness into sql tables for proper sorting 2012-08-24 11:41:34 -05:00
joshua stein 906564a6a0 widen page but shrink comments, story text, and comment boxes 2012-08-24 11:41:34 -05:00
joshua stein 6023a81c71 tweak some styles 2012-08-24 11:41:34 -05:00
joshua stein 141ba5f77d fix root_url stuff 2012-08-24 11:41:34 -05:00
joshua stein e535a1387f make linking to specific comments work 2012-08-24 11:41:34 -05:00
joshua stein d9b95b2a1d email and pushover reply notifications 2012-08-24 11:41:30 -05:00
joshua stein da48f74e45 don't show memo if there is none 2012-08-24 10:57:42 -05:00
joshua stein a5782cbe33 fix an eager loading problem with tags 2012-08-24 10:57:42 -05:00
joshua stein 9de30a870f use a story's short id url as the rss guid since the title can change 2012-08-24 10:57:42 -05:00
joshua stein 6258cb7f75 remove leading and trailing underscores from title_as_url 2012-08-24 10:57:42 -05:00
joshua stein 2e87af1259 showing_user, not current user 2012-08-24 10:57:42 -05:00
joshua stein c38fb2ed95 fixes 2012-08-24 10:57:42 -05:00
joshua stein 6b76eadcec sqlite is only in test 2012-08-24 10:57:42 -05:00
joshua stein c961bd6546 catch no title 2012-08-24 10:57:42 -05:00
joshua stein 73916d6636 going to have to do this sqlite-specific anyway 2012-08-24 10:57:42 -05:00
joshua stein f6d9905fd9 no underlining in markdown, just strong with ** 2012-08-24 10:57:42 -05:00
joshua stein 986e261478 use max width 2012-08-24 10:57:42 -05:00
joshua stein 8dd109c49f drop custom markdowner for rdiscount 2012-08-24 10:57:42 -05:00
joshua stein b5b2c92779 show newest in rss url 2012-08-24 10:57:42 -05:00
joshua stein 27304e4bc3 only underscores 2012-08-24 10:57:42 -05:00
joshua stein 3bfea45145 shorter random string to not wrap in email 2012-08-24 10:57:41 -05:00
joshua stein 282f505cf2 pass around root_url from view/controller into model when needed 2012-08-24 10:57:41 -05:00
joshua stein d85aed9475 value_for 2012-08-24 10:57:41 -05:00
joshua stein 909feb49cb note submitters in keystore 2012-08-24 10:57:41 -05:00
joshua stein ada1571a53 invitation system, user settings 2012-08-24 10:57:11 -05:00
joshua stein 22ae6bc1b2 show about text properly 2012-08-24 10:57:11 -05:00
joshua stein f6560d37ad shorten stories to /s/ instead of /p/ 2012-08-24 10:57:11 -05:00
joshua stein a35784c3ea raw linkified text 2012-08-24 10:57:11 -05:00
joshua stein bbaa8f554f fix markdown help display on story submission 2012-08-24 10:57:11 -05:00
joshua stein d85b7d8db9 add a guid to point to the comments url rather than the linked url 2012-08-24 10:57:10 -05:00
joshua stein 7b3cbdddee rss feeds! 2012-08-24 10:57:10 -05:00
joshua stein 13a584854e stories must have at least one tag 2012-08-24 10:57:10 -05:00
joshua stein 2375e3f210 remove unused stuff 2012-08-24 10:57:10 -05:00
joshua stein e6083e760d use new title fetcher 2012-08-24 10:57:10 -05:00
joshua stein 473a026a0e how did all of these tabs get here 2012-08-24 10:57:10 -05:00
joshua stein f801932a03 use nokogiri to get doc titles 2012-08-24 10:57:10 -05:00
joshua stein 0feff12043 session_token 2012-08-24 10:57:10 -05:00
joshua stein cb4f0f9b4e Utils.random_str 2012-06-30 16:43:18 -05:00
joshua stein 578c96d653 more work 2012-06-30 14:14:35 -05:00
joshua stein 95b4906e6e working voting/scoring, threaded comments 2012-06-30 11:18:36 -05:00
joshua stein 093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00