Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Custom plugin on photo post - how to tell the post type?
ISSUE SUMMARY:
I would like to run a custom database query whenever a user posts a photo. I have set up a custom plugin that runs during the onBeforeStreamCreate event, but the problem is that it runs every time the user post any kind of status update. How do I determine if the status update is a photo upload versus a text update, event, video, etc?
STEPS TO REPLICATE:
1 Post a photo
2 Post a non-photo status update
RESULT Database query runs for both steps
EXPECTED RESULT Database query should only run for step 1
BROWSER Any