Re:HN: New flag feature
by hugh on Tuesday June 24, 2008 @12:41PM
(#226411)
I'm hoping somebody will start submitting some rubbish stories so I can try flagging them.
[ Parent
| on HN ]
Re:HN: New flag feature
by kirubakaran on Tuesday June 24, 2008 @12:43PM
(#226417)
I flagged this post :-) (the post, not your comment)
edit1: I did this before pg explained what 'flag' is for. Now I feel bad.
edit2: oops... I am used to clicking on the last link 'parent'. Did it once by mistake on a comment.
i wish we could un-flag. some will be curious to what will happen if you click on it.
ok; here's the source, btw:
(def flaglink (i user whence)
(when (and user (> (karma user) flag-threshold*))
(pr bar*)
(w/rlink (do (if (mem user i!flags)
(pull user i!flags)
(push user i!flags))
(save-item i)
whence)
(pr (if (mem user i!flags) "unflag" "flag")))))