mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:35:26 +00:00
Update Embedfiles.php
a little more cleanup
This commit is contained in:
parent
6519dc509a
commit
213a4cded5
1 changed files with 0 additions and 9 deletions
|
@ -25,16 +25,8 @@ class Embedfiles extends Controller
|
|||
|
||||
if (argc() > 1 && argv(1) === 'sharelink') {
|
||||
// API: /embedfiles/sharelink
|
||||
// Takes raw data from the request
|
||||
$json = file_get_contents('php://input');
|
||||
// Converts it into a PHP object
|
||||
$data = json_decode($json);
|
||||
$resource_id = $_POST["hash"];
|
||||
|
||||
// var_dump($_POST);
|
||||
// exit;
|
||||
|
||||
// $x = self::sharelink($resource_id, $channel_id);
|
||||
$x = self::sharelink($resource_id, $channel_id);
|
||||
if ($x) {
|
||||
json_return_and_die(['status' => true, 'sharelink' => $x, 'resource_id' => $resource_id]);
|
||||
|
@ -147,7 +139,6 @@ class Embedfiles extends Controller
|
|||
}
|
||||
|
||||
*/
|
||||
// protected static function sharelink($resource, $channel_id = 0)
|
||||
protected static function sharelink($resource, $channel_id = 0)
|
||||
{
|
||||
if (intval($channel_id)) {
|
||||
|
|
Loading…
Reference in a new issue