fix user profile url
add json data type
continue if list type not in if else statement
if userid is NULL set userid from app user id