humpolec comments on Meta: A 5 karma requirement to post in discussion - Less Wrong

46 Post author: Jack 20 January 2011 06:22AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (51)

You are viewing a single comment's thread. Show more comments above.

Comment author: humpolec 22 January 2011 05:54:58PM *  3 points [-]

I have no familiarity with Reddit/Lesswrong codebase, but isn't this (r2/r2/models/subreddit.py) the only relevant place?

elif self == Subreddit._by_name(g.default_sr) and user.safe_karma >= g.karma_to_post:

So it's a matter of changing that g.karma_to_post (which apparently is a global configuration variable) into a subreddit's option (like the ones defines on top of the file).

(And, of course, applying that change to the database, which I have no idea about, but this also shouldn't be hard...)

ETA: Or, if I understand the code correctly, one could just change elif self.type == 'public': (a few lines above) to elif self.type == 'public' and user.safe_karma >= 1:, but it's a dirty hack.)