mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
allow claim id to be directly passed to dmca page
This commit is contained in:
parent
c65078f94e
commit
9fd48d6513
1 changed files with 8 additions and 1 deletions
|
@ -24,6 +24,10 @@ class ReportActions extends Actions
|
||||||
$values[$field] = $value;
|
$values[$field] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($_GET['claim_id'] && !$values['identifier']) {
|
||||||
|
$values['identifier'] = htmlspecialchars($_GET['claim_id']);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$errors) {
|
if (!$errors) {
|
||||||
$values['report_id'] = Encoding::base58Encode(random_bytes(6));
|
$values['report_id'] = Encoding::base58Encode(random_bytes(6));
|
||||||
Mailgun::sendDmcaReport($values);
|
Mailgun::sendDmcaReport($values);
|
||||||
|
@ -31,6 +35,9 @@ class ReportActions extends Actions
|
||||||
return Controller::redirect(Request::getRelativeUri(), 303);
|
return Controller::redirect(Request::getRelativeUri(), 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['report/dmca', ['errors' => $errors, 'values' => $values]];
|
return ['report/dmca', [
|
||||||
|
'errors' => $errors,
|
||||||
|
'values' => $values
|
||||||
|
]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue