Added status logic to friendship_invitations