News for hackers. Stuff that matters.
Re:HN: New flag feature by pg on Tuesday June 24, 2008 @01:02PM (#226462)
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")))))

There are no comments on this comment yet.