update isfollowing_byid function