Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


flagging mechanism

I created an app where users can be exposed to pornographic content. The app review board says that i need to implement a flagging mechanism so users can report other users for sending objectionable content. But the problem is i dont really know how to create a mechanism like that. Any suggestions would be helpful. By the way the app is powered by parse.com. Thanks

Mike Baxter
Mike Baxter
4,442 Points

It looks like Parse has some sample code you can borrow; the photo app would be great. They have a section on how to allow users to like a comment. You should be able to modify that to allow for reporting.

I think the bigger question though is what Apple considers to be a proper implementation of flagging. Their developer documents are usually quite clear on things like user/child safety, which is part of what makes them such an awesome company. Maybe check the developer agreement you got when you signed on as a developer? Maybe also check out the conflict resolution center. I guess the first place I would think to go is to figure out what constitutes proper flagging. i.e., if a single user flags a piece of content, is the content then removed? Do you have to set up a review process? Do you have some minimum number of flags before some piece of content is removed? Does Apple provide some suggested value for this?

I realize that's not quite an answer, which is why I leave it as a comment, but maybe that helps!