solved activity stream speed issue

solved activity stream speed issue
Ternary operator saves lines of code but it doesn't improve code readability. Please use if and else instead of ternary operator.