Topic replies invisible until topic owner decides to reveal them?

I did my best to keep things as efficient as possible, i.e. evaluate as lazily as I could and bail out of any filters as quickly as possible.

There is absolutely some room for small optimizations like caching the staff userid’s and the id’s of the protected topics, but I think I did pretty well for a first version. If anyone disagrees, please feel free to criticize my code.

9 לייקים