joshua stein
75570194ac
sprinkle some to_s paranoia on params where it matters
2013-02-08 10:39:51 -06:00
joshua stein
305789381c
indent <pre>
2013-02-08 10:38:29 -06:00
joshua stein
5fc1827fb9
load @messages on message create screen
2013-02-07 17:38:23 -06:00
joshua stein
95cdd886a1
fix tag filtering
...
a story with tags [c, go] with a user's tag filter of [go] was just
removing the [go] tag from the story, not removing it from the list
completely
2013-02-07 17:35:20 -06:00
joshua stein
464b3c3f80
add support for viewing sent private messages
2013-01-24 14:21:22 -06:00
Jon Evans
08a8165fa9
Use new ShortId class to generate short id
2013-01-22 23:32:45 -07:00
Jon Evans
0a48959cda
Pull short id generation into separate class
2013-01-22 23:15:05 -07:00
joshua stein
36b51d46c7
recommend rake secret
for generating secret_token.rb key
2013-01-22 15:35:09 -06:00
joshua stein
14ed917baa
show rss <link> header on /comments
2013-01-13 21:39:52 -06:00
joshua stein
ae2c0421e6
update to rails 3.2.11
...
keep ActionDispatch params parsers off
2013-01-08 15:26:12 -06:00
joshua stein
56261c999a
tabs to spaces
2013-01-07 17:23:09 -06:00
joshua stein
f130dd7ab0
add some js to allow moderators to enter reason when deleting stories
2013-01-07 17:20:41 -06:00
joshua stein
10abf0bd7b
don't deliver mention or reply notifications to posting user
2013-01-07 16:29:00 -06:00
joshua stein
48bdcfd89c
add 144x144 version of apple-touch-icon.png for ipad
...
the logo font is baskerville semi-bold, just for the record
2013-01-04 00:12:44 -06:00
joshua stein
907a18267b
update to rails 3.2.10 to fix CVE-2012-5664
2013-01-02 17:18:57 -06:00
joshua stein
11385d6b65
add json view of story, including comments
...
for issue #42
2012-12-30 12:17:59 -06:00
joshua stein
048c614590
Story: make update_comment_count factor in deleted comments/threads
2012-12-30 12:12:24 -06:00
joshua stein
19ba94fd31
don't collapse moderated threads, remove them entirely
2012-12-30 12:11:47 -06:00
joshua stein
1031ea8cb1
require logged in user for preview_new as well
2012-12-30 11:47:43 -06:00
joshua stein
8848ea8a17
Merge pull request #44 from rpwll/css-img-fix
...
limit width of images in story descriptions to that of the story container
2012-12-20 11:31:33 -08:00
Rhys Powell
10ad698616
Fixed an issue where images would exceed their container
2012-12-19 21:09:57 +11:00
joshua stein
f7cac129b4
when comments are moderated, collapse their replies
...
also try to show which moderator deleted the comment and the reason
2012-12-18 21:36:32 -06:00
joshua stein
d64f713054
User: don't export id to json; consumers should use username as pk
2012-12-18 17:26:29 -06:00
joshua stein
109718ba90
expose User and Story created_at to json
2012-12-18 17:16:02 -06:00
joshua stein
cb5e1592b0
Story: export comment_count and score to json
2012-12-17 18:19:19 -06:00
joshua stein
a4e5684994
moderation log: fix tag change summary; fixes issue #43
2012-12-16 20:27:54 -06:00
joshua stein
d108158d15
add json views to /newest.json and /hottest.json for issue #42
2012-12-16 20:05:27 -06:00
joshua stein
3bba719cd9
explicitly prevent caching in development mode, triggers some kind of bug
...
throws "undefined class/module Story" after changing the model in
between refreshes
2012-12-16 20:03:01 -06:00
joshua stein
9cc54edb5b
move avatar url generation into User model
2012-12-16 20:02:02 -06:00
joshua stein
a7d463999d
don't count json and rss views towards traffic counter
2012-12-16 20:01:39 -06:00
joshua stein
175ff9d2b1
add some custom as_json output to Story and User
2012-12-16 20:00:41 -06:00
joshua stein
6b0a965c66
test that a story with one real tag doesn't error out
2012-12-16 19:59:41 -06:00
joshua stein
fecc2ef5bb
add test for bad email address
2012-12-16 19:59:34 -06:00
joshua stein
c6c4169ae3
don't count spider traffic towards traffic counter
2012-12-16 18:46:38 -06:00
joshua stein
a9e169175b
show story vote summaries to submitters and mods if it has any downvotes
2012-12-08 22:39:06 -06:00
joshua stein
90a57ef8c9
whitespace
2012-12-08 22:39:05 -06:00
joshua stein
ef1b2e9dda
on login and signup page, mention open signup isn't available and link to user tree
2012-12-08 13:14:43 -06:00
joshua stein
ffa9d35477
whitespace
2012-12-08 13:14:33 -06:00
joshua stein
f34607f17f
set meta referrer tag to "always"
...
http://wiki.whatwg.org/wiki/Meta_referrer
lobsters isn't secret, but because it's all behind https, browsers
don't send a referrer header when visiting linked stories that
aren't behind ssl. for site owners, it can be useful to see where a
sudden burst of traffic is coming from and view comments, so force
supporting browsers (currently only chrome) to send the lobsters
referral url.
2012-12-08 13:08:27 -06:00
joshua stein
ad762d233a
rss: comments link must be encoded as well
2012-11-28 15:18:41 -06:00
joshua stein
91b1255d96
story form: auto-apply video tag to vimeo links, too
2012-11-27 11:47:44 -06:00
joshua stein
e5a0b671b8
story: simplify tags malarky and just use mark_for_destruction on associated objects
2012-11-26 13:39:16 -06:00
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