This alone will break the searchcommunity. You need to remove the allow_sync check in the create_introduction_request method.
I.e. remove the allow_sync from line 225.