Hi
We are using AEM 6.2 and Communities(FP2). We created the Custom Event class to capture the "flagging" event for comments to do our custom code.
But when I debug the code this class gets called two time and both the time the event action is "FLAG"
public class CustomSocialEventHandler implements ActivityStreamProviderExtension {
public boolean evaluate(final SocialEvent<?> evt, final Resource resource) {
if (evt.getAction() != null && evt.getAction() instanceof SocialEvent.SocialActions) {
....//Custom code
}
}
//Set the ranking as 5
@Override
public int getRanking() {
return 5;
}
@Override
public String[] getStreamProviderPid() {
return new String[]{"*"};
}
}
Does internally two events get triggered when "Flag the Comment".
If any one has faced the same issue, any help is much appreciated.
Thanks,
Monika