Commit graph

265 commits

Author SHA1 Message Date
joshua stein 6600d36c3b fix tests by creating tag1 and tag2 tags so story blueprint can use them 2012-11-23 13:50:09 -06:00
joshua stein b8f3ffa30b Merge pull request #38 from krainboltgreene/using-the-new-patchset
bump rbenv version to 1.9.3-p327
2012-11-23 09:34:46 -08:00
Kurtis Rainbolt-Greene e0fc89f1fa Adding an rvmrc for rvm users 2012-11-22 19:53:28 -08:00
Kurtis Rainbolt-Greene d2929c55a9 Updating the patchset to the latest secure version 2012-11-22 19:53:19 -08:00
joshua stein 088084965c rss: only hide comments link when no url
stories with a url but also a description were previously not
getting comments link shown
2012-11-21 22:15:00 -06:00
joshua stein 3e689b1c35 check for show_story first 2012-11-21 22:13:50 -06:00
joshua stein cb8901473c add an #invite anchor to the settings url 2012-11-21 22:04:29 -06:00
joshua stein 70f9208a7b shorten top links to avoid running into each other on small screens 2012-11-21 22:04:29 -06:00
joshua stein 69facd5408 pushover: send a default message if none supplied 2012-11-21 22:04:29 -06:00
joshua stein 367982adef whitespace cleanup 2012-11-21 22:04:29 -06:00
joshua stein ae66c583b6 Merge pull request #37 from wilkie/bugfix/reply_link_on_comments_index
Remove reply link on comment when not on a story page.
2012-11-21 20:01:59 -08:00
wilkie e37053cea4 Removes link to reply on comment when not on a story page.
The reply link does not work on any page that isn't a story page because
it replies on the fact that a comment_form div exists on a page. That
form is the base comment field present on a story page. Therefore,
removing the link when the story is displayed next to the comment
selects for that case easily.

Closes #36 by virtue of removing the link.
2012-11-15 21:25:34 -05:00
joshua stein fd4a278d3b fix duplicate description= definition 2012-11-13 11:39:50 -06:00
joshua stein 6deadc731a designate certain tags as media types, require a tag other than those
just tagging something "video" doesn't make it appropriate for
submission, it still requires a categorization tag
2012-11-12 11:02:18 -06:00
joshua stein 9ece6666bf add stupid temporary hack to strip out utf8mb4 chars that are screwing up mysql
4-byte utf8 chars like emoji are passed around in ruby fine, but
when they are put into mysql queries, strings get truncated at the
first mb4 character.  to prevent truncation, strip out mb4
characters in most user-controlled fields like comments, story
descriptions and titles, and messages.

to properly support utf8mb4, mysql server 5.5 is needed, the table
encodings need to be changed to utf8mb4, and the mysql2 gem needs to
be upgraded once it supports utf8mb4:

https://github.com/brianmario/mysql2/issues/249
2012-11-07 21:58:10 -06:00
joshua stein 0eac1c375a show user count on user tree page 2012-10-26 17:08:19 -05:00
joshua stein 47f1c44fc9 do incremented_value_for in a transaction to make sure we get the right key back
do sqlite checks based on Keystore.connection.adapter_name rather
than assuming one environment uses sqlite and the others don't
2012-10-24 14:55:14 -05:00
joshua stein 72b67b0103 move monkey patches to a separate file 2012-10-24 14:55:14 -05:00
joshua stein dc71bbbd98 block archivers 2012-10-24 11:53:43 -05:00
joshua stein 5ee6c227a3 <> -> < />, add noarchive robots header 2012-10-24 11:53:43 -05:00
joshua stein d07c555595 comments can be deleted or moderated to be considered gone 2012-10-24 11:53:43 -05:00
joshua stein a2b034ea36 fix pulling vote for current story when showing a specific comment 2012-10-24 11:53:43 -05:00
joshua stein d64c0d95c1 Merge pull request #34 from alanpca/master
RSS: show a "Comment" link if there is no story text
2012-10-24 09:51:06 -07:00
Alan P. Laudicina 1ab6f592b6 Wrap long line 2012-10-24 07:03:25 -04:00
Alan P. Laudicina ba284f7f29 Add default description, which points to comments 2012-10-24 06:57:12 -04:00
joshua stein b6b8a0d7ca Merge pull request #31 from bendyworks/master
README: should have 64-byte secret_token, not 128-bit
2012-10-20 10:05:03 -07:00
Bradley Grzesiak ff95d96af2 Should have 64-byte secret_token, not 128-bit 2012-10-20 12:02:44 -05:00
joshua stein c9ec13a00c add empty apple-touch-icon-precomposed.png so it doesn't hit rails 2012-10-09 11:20:26 -05:00
joshua stein d495e9472a move hotness window back to 48 hours 2012-10-09 11:06:43 -05:00
joshua stein 24ed0e1f6f only count downvotes in downvote summary 2012-10-09 11:04:53 -05:00
joshua stein 468a0cbe60 no need to make a delta for seconds, just use created_at 2012-10-09 11:04:53 -05:00
joshua stein c4f1a5e756 we're not doing comment flagging, remove 2012-10-09 11:04:43 -05:00
joshua stein c0ba39834b only do new tag check for new stories 2012-10-07 01:44:33 -05:00
joshua stein b8ec2daabe only apply light link color to story list, not story detail page 2012-09-25 10:54:25 -05:00
joshua stein 8af36b2280 make visited story links a lighter blue
closes #24
2012-09-25 10:51:10 -05:00
joshua stein 8f54529fac Merge pull request #26 from SamHasler/master
Highlight video tags like pdf tags
2012-09-25 08:36:50 -07:00
Sam Hasler eb24304686 Highlight video tags like pdf tags 2012-09-25 17:18:34 +02:00
joshua stein b04f3dfe51 rss: set isPermaLink="false" on guid because google reader is stupid
closes #25
2012-09-20 19:00:14 -05:00
joshua stein 6cb466bc83 shrink story hotness window down to 24 hours as we are growing 2012-09-20 11:00:11 -05:00
joshua stein a05421082c don't set @heading, there's already a navbar link for filters 2012-09-20 10:56:54 -05:00
joshua stein 058cf16863 don't allow privileged tags to be filtered 2012-09-20 10:56:31 -05:00
joshua stein 39bb9b77de minor cleanup 2012-09-20 10:53:11 -05:00
joshua stein 78a000a0b8 bring back selected tags for editing existing stories 2012-09-20 10:50:19 -05:00
joshua stein 52836803f4 Merge pull request #23 from rjsamson/private-tags
Modify tags to allow for admin / mod specific tags (like 'announcements')
2012-09-20 08:49:59 -07:00
Robert J Samson 45d87069dd Check that user has appropriate permissions on tags before_save 2012-09-19 22:13:20 -04:00
Robert J Samson f3eb44972b Check to make sure a user isn't improperly using a privileged tag when saving a Story. 2012-09-19 20:57:45 -04:00
Robert J Samson 7fd75a7f3a More descriptive method and attribute names 2012-09-19 20:28:09 -04:00
Robert J Samson 5ada55f10d Add a 'private' attribute to tags to allow for admin / mod specific tags
Private tags would allow admins to create tags that only admins could
use, and that regular users could not filter. The best example use case
for this is an 'announements' tag for site announements that all users
should see.
2012-09-19 16:44:57 -04:00
joshua stein 64c6949edf paginate /comments 2012-09-19 13:40:02 -05:00
joshua stein 2c6eeeca1b link to /comments in the header 2012-09-19 13:32:52 -05:00