added isFriend helper to post