このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/app/Http/Controllers/Peertube/Myaccount/Blocklist/Accounts.php

35 行
881 B
PHP
Raw 通常表示 履歴

2021-12-16 01:25:29 +09:00
<?php
namespace App\Http\Controllers\Peertube\Myaccount\Blocklist;
2021-12-16 01:25:29 +09:00
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Peertube\Common;
// use Illuminate\Support\Facades\Log;
class Accounts extends Common {
2021-12-16 01:25:29 +09:00
private $common;
public function __construct () {
$this->common = new Common;
}
public function index () {
if (!isset($this->common->user['me']) || is_null($this->common->user['me'])) {
2021-12-16 01:25:29 +09:00
return redirect('/peertube/login');
}
$res = [
'page' => 'dummy',
2021-12-16 16:31:55 +09:00
'style' => 'dummy',
2021-12-16 01:25:29 +09:00
'userinfo' => $this->common->user,
];
// $res['owner'] = $this->getOwner($id);
return view('pages.peertube.notyet', ['res' => $res]);
}
function getOwner ($id) {
//https://video.076.ne.jp/api/v1/users/me/subscriptions?start=0&count=10
return $this->ptapi('/api/v1/accounts/'.$id);
2021-12-16 01:25:29 +09:00
}
}