このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2022-02-05 14:05:00 +09:00
|
|
|
<?php
|
|
|
|
|
2022-02-11 22:41:29 +09:00
|
|
|
namespace App\Http\Controllers;
|
2022-02-05 14:05:00 +09:00
|
|
|
use Illuminate\Http\Request;
|
2022-02-11 22:41:29 +09:00
|
|
|
use App\Http\Controllers\Common;
|
2022-02-05 14:05:00 +09:00
|
|
|
// use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
|
|
class Myaccount extends Common {
|
|
|
|
private $common;
|
|
|
|
|
|
|
|
public function __construct () {
|
|
|
|
$this->common = new Common;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function index () {
|
|
|
|
if (!isset($this->common->user['me']) || is_null($this->common->user['me'])) {
|
|
|
|
return redirect('/peertube/login');
|
|
|
|
}
|
|
|
|
|
|
|
|
$res = [
|
|
|
|
'page' => 'dummy',
|
|
|
|
'style' => 'dummy',
|
|
|
|
'userinfo' => $this->common->user,
|
|
|
|
];
|
|
|
|
// $res['owner'] = $this->getOwner($id);
|
|
|
|
return view('pages.peertube.notyet', ['res' => $res]);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getOwner ($id) {
|
|
|
|
return $this->ptapi('/api/v1/accounts/'.$id);
|
|
|
|
}
|
|
|
|
}
|