Vladimir_Golovin 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.

Comment author: Vladimir_Golovin 22 January 2011 08:35:26AM *  1 point [-]

I'd donate a moderate sum towards the implementation of the karma threshold, be it 1 or 5. Can someone estimate how much the implementation might cost?

Also, I have a contact of a Python programmer (a pretty rare breed here in provincial Russia), so I can try to outsource the implementation to him. I never worked with this guy, but I'm looking for a server-side programmer, and this mini-project could serve as a test for him.

Could someone familiar with the LW codebase look into the task and estimate how much time would a new developer need to get acquainted with the relevant part of the code?

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.)