solved activity stream speed issue

solved activity stream speed issue
This code is not following coding standard. Please use brackets.
Thanks.