don't fail if nothing changes

This commit is contained in:
Niko Storni 2019-11-14 12:33:02 -05:00
parent 8dfdc13b28
commit 2db45306e2

View file

@ -87,6 +87,9 @@ class AcquisitionActions extends Actions
{ {
$current_value = LBRY::statusYoutube($status_token); $current_value = LBRY::statusYoutube($status_token);
if ($current_value['data']['email'] == $email) { if ($current_value['data']['email'] == $email) {
if ($channel_name === "" && $sync_consent === false) {
Controller::redirect("/youtube/status/". $status_token);
}
$status = LBRY::editYoutube($status_token, $channel_name, null, $sync_consent); $status = LBRY::editYoutube($status_token, $channel_name, null, $sync_consent);
} else { } else {
$status = LBRY::editYoutube($status_token, $channel_name, $email, $sync_consent); $status = LBRY::editYoutube($status_token, $channel_name, $email, $sync_consent);