commit
d87eb0bfb8
|
@ -4,6 +4,7 @@
|
||||||
### Added
|
### Added
|
||||||
- Autocomplete Support (hashtags + mentions) ([de514f7d](https://github.com/pixelfed/pixelfed/commit/de514f7d))
|
- Autocomplete Support (hashtags + mentions) ([de514f7d](https://github.com/pixelfed/pixelfed/commit/de514f7d))
|
||||||
- Creative Commons Licenses ([552e950](https://github.com/pixelfed/pixelfed/commit/552e950))
|
- Creative Commons Licenses ([552e950](https://github.com/pixelfed/pixelfed/commit/552e950))
|
||||||
|
- Add Network Timeline ([af7face4](https://github.com/pixelfed/pixelfed/commit/af7face4))
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Updated AdminController, fix variable name in updateSpam method. ([6edaf940](https://github.com/pixelfed/pixelfed/commit/6edaf940))
|
- Updated AdminController, fix variable name in updateSpam method. ([6edaf940](https://github.com/pixelfed/pixelfed/commit/6edaf940))
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Auth;
|
use Auth;
|
||||||
use Cache;
|
use Cache;
|
||||||
use Mail;
|
use Mail;
|
||||||
use Illuminate\Support\Facades\Redis;
|
use Illuminate\Support\Facades\Redis;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
@ -81,7 +81,7 @@ class AccountController extends Controller
|
||||||
|
|
||||||
if ($recentAttempt > 0) {
|
if ($recentAttempt > 0) {
|
||||||
return redirect()->back()->with('error', 'A verification email has already been sent recently. Please check your email, or try again later.');
|
return redirect()->back()->with('error', 'A verification email has already been sent recently. Please check your email, or try again later.');
|
||||||
}
|
}
|
||||||
|
|
||||||
EmailVerification::whereUserId(Auth::id())->delete();
|
EmailVerification::whereUserId(Auth::id())->delete();
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ class AccountController extends Controller
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'user':
|
case 'user':
|
||||||
$profile = Profile::findOrFail($item);
|
$profile = Profile::findOrFail($item);
|
||||||
if ($profile->id == $user->id || $profile->user->is_admin == true) {
|
if ($profile->id == $user->id || ($profile->user && $profile->user->is_admin == true)) {
|
||||||
return abort(403);
|
return abort(403);
|
||||||
}
|
}
|
||||||
$class = get_class($profile);
|
$class = get_class($profile);
|
||||||
|
@ -394,7 +394,7 @@ class AccountController extends Controller
|
||||||
$request->session()->pull('sudoModeAttempts');
|
$request->session()->pull('sudoModeAttempts');
|
||||||
Auth::logout();
|
Auth::logout();
|
||||||
return redirect(route('login'));
|
return redirect(route('login'));
|
||||||
}
|
}
|
||||||
return view('auth.sudo');
|
return view('auth.sudo');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,7 +485,7 @@ class AccountController extends Controller
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function accountRestored(Request $request)
|
public function accountRestored(Request $request)
|
||||||
|
|
|
@ -223,7 +223,7 @@ class PublicApiController extends Controller
|
||||||
{
|
{
|
||||||
if($profile->is_private == true && Auth::check() == false) {
|
if($profile->is_private == true && Auth::check() == false) {
|
||||||
abort(404);
|
abort(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($status->scope) {
|
switch ($status->scope) {
|
||||||
case 'public':
|
case 'public':
|
||||||
|
@ -248,7 +248,7 @@ class PublicApiController extends Controller
|
||||||
case 'draft':
|
case 'draft':
|
||||||
abort(404);
|
abort(404);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort(404);
|
abort(404);
|
||||||
break;
|
break;
|
||||||
|
@ -291,11 +291,11 @@ class PublicApiController extends Controller
|
||||||
$dir = $min ? '>' : '<';
|
$dir = $min ? '>' : '<';
|
||||||
$id = $min ?? $max;
|
$id = $min ?? $max;
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
@ -320,11 +320,11 @@ class PublicApiController extends Controller
|
||||||
->get();
|
->get();
|
||||||
} else {
|
} else {
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
@ -351,7 +351,6 @@ class PublicApiController extends Controller
|
||||||
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
|
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
|
||||||
$res = $this->fractal->createData($fractal)->toArray();
|
$res = $this->fractal->createData($fractal)->toArray();
|
||||||
return response()->json($res);
|
return response()->json($res);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function homeTimelineApi(Request $request)
|
public function homeTimelineApi(Request $request)
|
||||||
|
@ -372,7 +371,7 @@ class PublicApiController extends Controller
|
||||||
$max = $request->input('max_id');
|
$max = $request->input('max_id');
|
||||||
$limit = $request->input('limit') ?? 3;
|
$limit = $request->input('limit') ?? 3;
|
||||||
$user = $request->user();
|
$user = $request->user();
|
||||||
|
|
||||||
$key = 'user:last_active_at:id:'.$user->id;
|
$key = 'user:last_active_at:id:'.$user->id;
|
||||||
$ttl = now()->addMinutes(5);
|
$ttl = now()->addMinutes(5);
|
||||||
Cache::remember($key, $ttl, function() use($user) {
|
Cache::remember($key, $ttl, function() use($user) {
|
||||||
|
@ -396,7 +395,7 @@ class PublicApiController extends Controller
|
||||||
// ->orWhere('status', '!=', null)
|
// ->orWhere('status', '!=', null)
|
||||||
// ->pluck('id');
|
// ->pluck('id');
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// $private = $private->diff($following)->flatten();
|
// $private = $private->diff($following)->flatten();
|
||||||
|
|
||||||
// $filters = UserFilter::whereUserId($pid)
|
// $filters = UserFilter::whereUserId($pid)
|
||||||
|
@ -411,11 +410,11 @@ class PublicApiController extends Controller
|
||||||
$dir = $min ? '>' : '<';
|
$dir = $min ? '>' : '<';
|
||||||
$id = $min ?? $max;
|
$id = $min ?? $max;
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
@ -440,11 +439,11 @@ class PublicApiController extends Controller
|
||||||
->get();
|
->get();
|
||||||
} else {
|
} else {
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
@ -470,12 +469,96 @@ class PublicApiController extends Controller
|
||||||
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
|
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
|
||||||
$res = $this->fractal->createData($fractal)->toArray();
|
$res = $this->fractal->createData($fractal)->toArray();
|
||||||
return response()->json($res);
|
return response()->json($res);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function networkTimelineApi(Request $request)
|
public function networkTimelineApi(Request $request)
|
||||||
{
|
{
|
||||||
return response()->json([]);
|
abort_if(!Auth::check(), 403);
|
||||||
|
abort_if(config('federation.network_timeline') == false, 404);
|
||||||
|
|
||||||
|
$this->validate($request,[
|
||||||
|
'page' => 'nullable|integer|max:40',
|
||||||
|
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
|
'max_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
|
'limit' => 'nullable|integer|max:30'
|
||||||
|
]);
|
||||||
|
|
||||||
|
$page = $request->input('page');
|
||||||
|
$min = $request->input('min_id');
|
||||||
|
$max = $request->input('max_id');
|
||||||
|
$limit = $request->input('limit') ?? 3;
|
||||||
|
$user = $request->user();
|
||||||
|
|
||||||
|
$key = 'user:last_active_at:id:'.$user->id;
|
||||||
|
$ttl = now()->addMinutes(5);
|
||||||
|
Cache::remember($key, $ttl, function() use($user) {
|
||||||
|
$user->last_active_at = now();
|
||||||
|
$user->save();
|
||||||
|
return;
|
||||||
|
});
|
||||||
|
|
||||||
|
if($min || $max) {
|
||||||
|
$dir = $min ? '>' : '<';
|
||||||
|
$id = $min ?? $max;
|
||||||
|
$timeline = Status::select(
|
||||||
|
'id',
|
||||||
|
'uri',
|
||||||
|
'caption',
|
||||||
|
'rendered',
|
||||||
|
'profile_id',
|
||||||
|
'type',
|
||||||
|
'in_reply_to_id',
|
||||||
|
'reblog_of_id',
|
||||||
|
'is_nsfw',
|
||||||
|
'scope',
|
||||||
|
'local',
|
||||||
|
'reply_count',
|
||||||
|
'comments_disabled',
|
||||||
|
'place_id',
|
||||||
|
'likes_count',
|
||||||
|
'reblogs_count',
|
||||||
|
'created_at',
|
||||||
|
'updated_at'
|
||||||
|
)->where('id', $dir, $id)
|
||||||
|
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
||||||
|
->whereNotNull('uri')
|
||||||
|
->whereScope('public')
|
||||||
|
// ->where('created_at', '>', now()->subMonths(3))
|
||||||
|
->orderBy('created_at', 'desc')
|
||||||
|
->limit($limit)
|
||||||
|
->get();
|
||||||
|
} else {
|
||||||
|
$timeline = Status::select(
|
||||||
|
'id',
|
||||||
|
'uri',
|
||||||
|
'caption',
|
||||||
|
'rendered',
|
||||||
|
'profile_id',
|
||||||
|
'type',
|
||||||
|
'in_reply_to_id',
|
||||||
|
'reblog_of_id',
|
||||||
|
'is_nsfw',
|
||||||
|
'scope',
|
||||||
|
'local',
|
||||||
|
'reply_count',
|
||||||
|
'comments_disabled',
|
||||||
|
'created_at',
|
||||||
|
'place_id',
|
||||||
|
'likes_count',
|
||||||
|
'reblogs_count',
|
||||||
|
'updated_at'
|
||||||
|
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
||||||
|
->with('profile', 'hashtags', 'mentions')
|
||||||
|
->whereNotNull('uri')
|
||||||
|
->whereScope('public')
|
||||||
|
->where('created_at', '>', now()->subMonths(3))
|
||||||
|
->orderBy('created_at', 'desc')
|
||||||
|
->simplePaginate($limit);
|
||||||
|
}
|
||||||
|
|
||||||
|
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
|
||||||
|
$res = $this->fractal->createData($fractal)->toArray();
|
||||||
|
return response()->json($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function relationships(Request $request)
|
public function relationships(Request $request)
|
||||||
|
@ -489,7 +572,7 @@ class PublicApiController extends Controller
|
||||||
'id.*' => 'required|integer'
|
'id.*' => 'required|integer'
|
||||||
]);
|
]);
|
||||||
$ids = collect($request->input('id'));
|
$ids = collect($request->input('id'));
|
||||||
$filtered = $ids->filter(function($v) {
|
$filtered = $ids->filter(function($v) {
|
||||||
return $v != Auth::user()->profile->id;
|
return $v != Auth::user()->profile->id;
|
||||||
});
|
});
|
||||||
$relations = Profile::whereNull('status')->findOrFail($filtered->all());
|
$relations = Profile::whereNull('status')->findOrFail($filtered->all());
|
||||||
|
@ -569,10 +652,10 @@ class PublicApiController extends Controller
|
||||||
$limit = $request->limit ?? 9;
|
$limit = $request->limit ?? 9;
|
||||||
$max_id = $request->max_id;
|
$max_id = $request->max_id;
|
||||||
$min_id = $request->min_id;
|
$min_id = $request->min_id;
|
||||||
$scope = $request->only_media == true ?
|
$scope = $request->only_media == true ?
|
||||||
['photo', 'photo:album', 'video', 'video:album'] :
|
['photo', 'photo:album', 'video', 'video:album'] :
|
||||||
['photo', 'photo:album', 'video', 'video:album', 'share', 'reply'];
|
['photo', 'photo:album', 'video', 'video:album', 'share', 'reply'];
|
||||||
|
|
||||||
if($profile->is_private) {
|
if($profile->is_private) {
|
||||||
if(!Auth::check()) {
|
if(!Auth::check()) {
|
||||||
return response()->json([]);
|
return response()->json([]);
|
||||||
|
@ -605,11 +688,11 @@ class PublicApiController extends Controller
|
||||||
$dir = '>';
|
$dir = '>';
|
||||||
$id = 1;
|
$id = 1;
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
@ -643,11 +726,11 @@ class PublicApiController extends Controller
|
||||||
$dir = $min_id ? '>' : '<';
|
$dir = $min_id ? '>' : '<';
|
||||||
$id = $min_id ?? $max_id;
|
$id = $min_id ?? $max_id;
|
||||||
$timeline = Status::select(
|
$timeline = Status::select(
|
||||||
'id',
|
'id',
|
||||||
'uri',
|
'uri',
|
||||||
'caption',
|
'caption',
|
||||||
'rendered',
|
'rendered',
|
||||||
'profile_id',
|
'profile_id',
|
||||||
'type',
|
'type',
|
||||||
'in_reply_to_id',
|
'in_reply_to_id',
|
||||||
'reblog_of_id',
|
'reblog_of_id',
|
||||||
|
|
|
@ -2,37 +2,32 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Auth, Cache;
|
|
||||||
use App\Follower;
|
|
||||||
use App\Profile;
|
|
||||||
use App\Status;
|
|
||||||
use App\User;
|
|
||||||
use App\UserFilter;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class TimelineController extends Controller
|
class TimelineController extends Controller
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->middleware('auth');
|
$this->middleware('auth');
|
||||||
$this->middleware('twofactor');
|
$this->middleware('twofactor');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function local(Request $request)
|
public function local(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'layout' => 'nullable|string|in:grid,feed'
|
'layout' => 'nullable|string|in:grid,feed'
|
||||||
]);
|
]);
|
||||||
$layout = $request->input('layout', 'feed');
|
$layout = $request->input('layout', 'feed');
|
||||||
return view('timeline.local', compact('layout'));
|
return view('timeline.local', compact('layout'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function network(Request $request)
|
public function network(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
abort_if(config('federation.network_timeline') == false, 404);
|
||||||
'layout' => 'nullable|string|in:grid,feed'
|
$this->validate($request, [
|
||||||
]);
|
'layout' => 'nullable|string|in:grid,feed'
|
||||||
$layout = $request->input('layout', 'feed');
|
]);
|
||||||
return view('timeline.network', compact('layout'));
|
$layout = $request->input('layout', 'feed');
|
||||||
}
|
return view('timeline.network', compact('layout'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@ return [
|
||||||
| ActivityPub configuration
|
| ActivityPub configuration
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'activitypub' => [
|
'activitypub' => [
|
||||||
'enabled' => env('ACTIVITY_PUB', false),
|
'enabled' => env('ACTIVITY_PUB', false),
|
||||||
'outbox' => env('AP_OUTBOX', true),
|
'outbox' => env('AP_OUTBOX', true),
|
||||||
|
@ -41,4 +40,6 @@ return [
|
||||||
'enabled' => env('WEBFINGER', true)
|
'enabled' => env('WEBFINGER', true)
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
'network_timeline' => env('PF_NETWORK_TIMELINE', false)
|
||||||
|
|
||||||
|
];
|
||||||
|
|
2
public/js/mode-dot.js
vendored
2
public/js/mode-dot.js
vendored
File diff suppressed because one or more lines are too long
1
public/js/network-timeline.js
vendored
Normal file
1
public/js/network-timeline.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
public/js/profile-directory.js
vendored
2
public/js/profile-directory.js
vendored
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{19:function(t,e,s){t.exports=s("ETg6")},"7wkd":function(t,e,s){"use strict";s.r(e);var o={data:function(){return{loaded:!1,showLoadMore:!0,profiles:[],page:1}},beforeMount:function(){this.fetchData()},methods:{fetchData:function(){var t=this;axios.get("/api/pixelfed/v2/discover/profiles",{params:{page:this.page}}).then((function(e){if(0==e.data.length)return t.showLoadMore=!1,void(t.loaded=!0);t.profiles=e.data,t.showLoadMore=8==t.profiles.length,t.loaded=!0}))},prettyCount:function(t){return App.util.format.count(t)},loadMore:function(){this.loaded=!1,this.page++,this.fetchData()},thumbUrl:function(t){return t.media_attachments[0].url}}},a=s("KHd+"),n=Object(a.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"col-12"},[s("p",{staticClass:"font-weight-bold text-lighter text-uppercase"},[t._v("Profiles Directory")]),t._v(" "),t.loaded?s("div",{},[s("div",{staticClass:"row"},[t._l(t.profiles,(function(e,o){return s("div",{staticClass:"col-12 col-md-6 p-1"},[s("div",{staticClass:"card card-body border shadow-none py-2"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.avatar,alt:"...",width:"40px",height:"40px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mt-0 mb-0 font-weight-bold"},[s("a",{staticClass:"text-dark",attrs:{href:e.url}},[t._v(t._s(e.username))])]),t._v(" "),s("p",{staticClass:"mb-1 small text-lighter d-flex justify-content-between font-weight-bold"},[s("span",[s("span",[t._v(t._s(t.prettyCount(e.statuses_count)))]),t._v(" POSTS\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",[s("span",[t._v(t._s(t.prettyCount(e.followers_count)))]),t._v(" FOLLOWERS\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"mb-1"},t._l(e.posts,(function(e,o){return s("span",{key:"profile_posts_"+o,staticClass:"shadow-sm"},[s("a",{staticClass:"text-decoration-none mr-1",attrs:{href:e.url}},[s("img",{staticClass:"border rounded",attrs:{src:t.thumbUrl(e),width:"62.3px",height:"62.3px"}})])])})),0)])])])])})),t._v(" "),t.showLoadMore?s("div",{staticClass:"col-12"},[s("p",{staticClass:"text-center mb-0 pt-3"},[s("button",{staticClass:"btn btn-outline-secondary btn-sm px-4 py-1 font-weight-bold",on:{click:function(e){return t.loadMore()}}},[t._v("Load More")])])]):t._e()],2)]):s("div",[t._m(0)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 d-flex justify-content-center align-items-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])])}],!1,null,"7b3eea1c",null);e.default=n.exports},ETg6:function(t,e,s){Vue.component("profile-directory",s("7wkd").default)},"KHd+":function(t,e,s){"use strict";function o(t,e,s,o,a,n,r,i){var c,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=s,d._compiled=!0),o&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):a&&(c=i?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(t,e){return c.call(e),l(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:d}}s.d(e,"a",(function(){return o}))}},[[19,0]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{19:function(t,e,s){t.exports=s("ETg6")},"7wkd":function(t,e,s){"use strict";s.r(e);var o={data:function(){return{loaded:!1,showLoadMore:!0,profiles:[],page:1}},beforeMount:function(){this.fetchData()},methods:{fetchData:function(){var t=this;axios.get("/api/pixelfed/v2/discover/profiles",{params:{page:this.page}}).then((function(e){if(0==e.data.length)return t.showLoadMore=!1,void(t.loaded=!0);t.profiles=e.data,t.showLoadMore=8==t.profiles.length,t.loaded=!0}))},prettyCount:function(t){return App.util.format.count(t)},loadMore:function(){this.loaded=!1,this.page++,this.fetchData()},thumbUrl:function(t){return t.media_attachments[0].url}}},a=s("KHd+"),n=Object(a.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"col-12"},[s("p",{staticClass:"font-weight-bold text-lighter text-uppercase"},[t._v("Profiles Directory")]),t._v(" "),t.loaded?s("div",{},[s("div",{staticClass:"row"},[t._l(t.profiles,(function(e,o){return s("div",{staticClass:"col-12 col-md-6 p-1"},[s("div",{staticClass:"card card-body border shadow-none py-2"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.avatar,alt:"...",width:"40px",height:"40px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mt-0 mb-0 font-weight-bold"},[s("a",{staticClass:"text-dark",attrs:{href:e.url}},[t._v(t._s(e.username))])]),t._v(" "),s("p",{staticClass:"mb-1 small text-lighter d-flex justify-content-between font-weight-bold"},[s("span",[s("span",[t._v(t._s(t.prettyCount(e.statuses_count)))]),t._v(" POSTS\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",[s("span",[t._v(t._s(t.prettyCount(e.followers_count)))]),t._v(" FOLLOWERS\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"mb-1"},t._l(e.posts,(function(e,o){return s("span",{key:"profile_posts_"+o,staticClass:"shadow-sm"},[s("a",{staticClass:"text-decoration-none mr-1",attrs:{href:e.url}},[s("img",{staticClass:"border rounded",attrs:{src:t.thumbUrl(e),width:"62.3px",height:"62.3px"}})])])})),0)])])])])})),t._v(" "),t.showLoadMore?s("div",{staticClass:"col-12"},[s("p",{staticClass:"text-center mb-0 pt-3"},[s("button",{staticClass:"btn btn-outline-secondary btn-sm px-4 py-1 font-weight-bold",on:{click:function(e){return t.loadMore()}}},[t._v("Load More")])])]):t._e()],2)]):s("div",[t._m(0)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 d-flex justify-content-center align-items-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])])}],!1,null,"7b3eea1c",null);e.default=n.exports},ETg6:function(t,e,s){Vue.component("profile-directory",s("7wkd").default)},"KHd+":function(t,e,s){"use strict";function o(t,e,s,o,a,n,r,i){var c,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=s,d._compiled=!0),o&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),r?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):a&&(c=i?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(t,e){return c.call(e),l(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:d}}s.d(e,"a",(function(){return o}))}},[[19,0]]]);
|
2
public/js/profile.js
vendored
2
public/js/profile.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/quill.js
vendored
2
public/js/quill.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/rempos.js
vendored
2
public/js/rempos.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/rempro.js
vendored
2
public/js/rempro.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/search.js
vendored
2
public/js/search.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/status.js
vendored
2
public/js/status.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/story-compose.js
vendored
2
public/js/story-compose.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/theme-monokai.js
vendored
2
public/js/theme-monokai.js
vendored
|
@ -1 +1 @@
|
||||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{15:function(e,a,o){e.exports=o("YMO/")},"YMO/":function(e,a,o){(function(e){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,a,o){a.isDark=!0,a.cssClass="ace-monokai",a.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(a.cssText,a.cssClass)})),ace.require(["ace/theme/monokai"],(function(c){"object"==o(e)&&"object"==o(a)&&e&&(e.exports=c)}))}).call(this,o("YuTi")(e))},YuTi:function(e,a){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},[[15,0]]]);
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{15:function(e,a,o){e.exports=o("YMO/")},"YMO/":function(e,a,o){(function(e){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,a,o){a.isDark=!0,a.cssClass="ace-monokai",a.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(a.cssText,a.cssClass)})),ace.require(["ace/theme/monokai"],(function(c){"object"==o(e)&&"object"==o(a)&&e&&(e.exports=c)}))}).call(this,o("YuTi")(e))},YuTi:function(e,a){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}},[[15,0]]]);
|
2
public/js/timeline.js
vendored
2
public/js/timeline.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/vendor.js
vendored
2
public/js/vendor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"/js/manifest.js": "/js/manifest.js?id=7db827d654313dce4250",
|
"/js/manifest.js": "/js/manifest.js?id=7db827d654313dce4250",
|
||||||
"/js/vendor.js": "/js/vendor.js?id=d93ff5de66e63c8bb611",
|
"/js/vendor.js": "/js/vendor.js?id=1b5b575aa98fd0fc24cf",
|
||||||
"/js/ace.js": "/js/ace.js?id=11e5550a450fece75c33",
|
"/js/ace.js": "/js/ace.js?id=11e5550a450fece75c33",
|
||||||
"/js/activity.js": "/js/activity.js?id=64252d7f9c17e958b8d2",
|
"/js/activity.js": "/js/activity.js?id=64252d7f9c17e958b8d2",
|
||||||
"/js/app.js": "/js/app.js?id=fdbdd51482b98e1324e8",
|
"/js/app.js": "/js/app.js?id=fdbdd51482b98e1324e8",
|
||||||
|
@ -18,17 +18,16 @@
|
||||||
"/js/discover.js": "/js/discover.js?id=b954935be21c33a6bafa",
|
"/js/discover.js": "/js/discover.js?id=b954935be21c33a6bafa",
|
||||||
"/js/hashtag.js": "/js/hashtag.js?id=2238ded8e17551cea303",
|
"/js/hashtag.js": "/js/hashtag.js?id=2238ded8e17551cea303",
|
||||||
"/js/loops.js": "/js/loops.js?id=4ae79e81965c4fd1ae66",
|
"/js/loops.js": "/js/loops.js?id=4ae79e81965c4fd1ae66",
|
||||||
"/js/memoryprofile.js": "/js/memoryprofile.js?id=1dbacb8b611b63cc22f2",
|
"/js/mode-dot.js": "/js/mode-dot.js?id=d54ad862baf30ee756f8",
|
||||||
"/js/mode-dot.js": "/js/mode-dot.js?id=dd9c87024fbaa8e75ac4",
|
"/js/network-timeline.js": "/js/network-timeline.js?id=82884f73719c6b3abd80",
|
||||||
"/js/my2020.js": "/js/my2020.js?id=4a9d534053da8e6467c0",
|
"/js/profile.js": "/js/profile.js?id=f0e108062a688a576b64",
|
||||||
"/js/profile.js": "/js/profile.js?id=f3469b5168a03a23c26d",
|
"/js/profile-directory.js": "/js/profile-directory.js?id=886f17ad7ab4b2e08019",
|
||||||
"/js/profile-directory.js": "/js/profile-directory.js?id=e63d5f2c6f2d5710a8bd",
|
"/js/quill.js": "/js/quill.js?id=866b31b9b9540305751d",
|
||||||
"/js/quill.js": "/js/quill.js?id=4769f11fc9a6c32dde50",
|
"/js/rempos.js": "/js/rempos.js?id=4f815ad22faac9af33ac",
|
||||||
"/js/rempos.js": "/js/rempos.js?id=52fbe94346b945e11d37",
|
"/js/rempro.js": "/js/rempro.js?id=0497d022decb1f1a4ac6",
|
||||||
"/js/rempro.js": "/js/rempro.js?id=6cca99808897aaf5acf5",
|
"/js/search.js": "/js/search.js?id=f5f6a6ee32db30d29c2d",
|
||||||
"/js/search.js": "/js/search.js?id=f4319adfd5750db3be3f",
|
"/js/status.js": "/js/status.js?id=fe385b6698a7a6638964",
|
||||||
"/js/status.js": "/js/status.js?id=311b2e82ad99e438673c",
|
"/js/story-compose.js": "/js/story-compose.js?id=5e184aae1ae4cde04361",
|
||||||
"/js/story-compose.js": "/js/story-compose.js?id=99dc1cd352d71e41843d",
|
"/js/theme-monokai.js": "/js/theme-monokai.js?id=8842103833ba4861bcfa",
|
||||||
"/js/theme-monokai.js": "/js/theme-monokai.js?id=85f0af57479412548223",
|
"/js/timeline.js": "/js/timeline.js?id=a163af153c2c1cae34b7"
|
||||||
"/js/timeline.js": "/js/timeline.js?id=e9b136c9c89d1be0a80b"
|
|
||||||
}
|
}
|
||||||
|
|
2197
resources/assets/js/components/NetworkTimeline.vue
Normal file
2197
resources/assets/js/components/NetworkTimeline.vue
Normal file
File diff suppressed because it is too large
Load diff
49
resources/assets/js/network-timeline.js
vendored
Normal file
49
resources/assets/js/network-timeline.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
Vue.component(
|
||||||
|
'notification-card',
|
||||||
|
require('./components/NotificationCard.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'photo-presenter',
|
||||||
|
require('./components/presenter/PhotoPresenter.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'video-presenter',
|
||||||
|
require('./components/presenter/VideoPresenter.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'photo-album-presenter',
|
||||||
|
require('./components/presenter/PhotoAlbumPresenter.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'video-album-presenter',
|
||||||
|
require('./components/presenter/VideoAlbumPresenter.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'mixed-album-presenter',
|
||||||
|
require('./components/presenter/MixedAlbumPresenter.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'post-menu',
|
||||||
|
require('./components/PostMenu.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'network-timeline',
|
||||||
|
require('./components/NetworkTimeline.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'announcements-card',
|
||||||
|
require('./components/AnnouncementsCard.vue').default
|
||||||
|
);
|
||||||
|
|
||||||
|
Vue.component(
|
||||||
|
'story-component',
|
||||||
|
require('./components/StoryTimelineComponent.vue').default
|
||||||
|
);
|
|
@ -15,7 +15,7 @@
|
||||||
@endauth
|
@endauth
|
||||||
|
|
||||||
@guest
|
@guest
|
||||||
|
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
<li>
|
<li>
|
||||||
<a class="nav-link font-weight-bold text-dark" href="{{ route('login') }}" title="Login">
|
<a class="nav-link font-weight-bold text-dark" href="{{ route('login') }}" title="Login">
|
||||||
|
@ -64,14 +64,30 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('discover')}}">
|
@if(config('federation.network_timeline'))
|
||||||
<span class="far fa-compass pr-2 text-lighter"></span>
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
||||||
{{__('navmenu.discover')}}
|
<span class="fas fa-stream pr-2 text-lighter"></span>
|
||||||
|
Public
|
||||||
|
</a>
|
||||||
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.network')}}">
|
||||||
|
<span class="fas fa-globe pr-2 text-lighter"></span>
|
||||||
|
Network
|
||||||
|
</a>
|
||||||
|
@else
|
||||||
|
<a class="dropdown-item font-weight-bold" href="/">
|
||||||
|
<span class="fas fa-home pr-2 text-lighter"></span>
|
||||||
|
Home
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.public')}}">
|
||||||
<span class="fas fa-stream pr-2 text-lighter"></span>
|
<span class="fas fa-stream pr-2 text-lighter"></span>
|
||||||
Public
|
Public
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item font-weight-bold" href="{{route('discover')}}">
|
||||||
|
<span class="far fa-compass pr-2 text-lighter"></span>
|
||||||
|
{{__('navmenu.discover')}}
|
||||||
|
</a>
|
||||||
<a class="dropdown-item font-weight-bold" href="/i/stories/new">
|
<a class="dropdown-item font-weight-bold" href="/i/stories/new">
|
||||||
<span class="fas fa-history text-lighter pr-2"></span>
|
<span class="fas fa-history text-lighter pr-2"></span>
|
||||||
Stories
|
Stories
|
||||||
|
|
|
@ -2,39 +2,39 @@
|
||||||
|
|
||||||
@section('section')
|
@section('section')
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h3 class="font-weight-bold">Timelines</h3>
|
<h3 class="font-weight-bold">Timelines</h3>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<p class="lead">Timelines are chronological feeds of posts.</p>
|
<p class="lead">Timelines are chronological feeds of posts.</p>
|
||||||
<p class="font-weight-bold h5 py-3">Pixelfed has 2 different timelines:</p>
|
{{-- <p class="font-weight-bold h5 py-3">Pixelfed has 3 different timelines:</p> --}}
|
||||||
|
|
||||||
<ul>
|
<ul class="list-unstyled">
|
||||||
<li class="lead">
|
<li class="lead mb-2">
|
||||||
<span class="font-weight-bold"><i class="fas fa-home text-muted mr-2"></i> Personal</span>
|
<span class="font-weight-bold"><i class="fas fa-home mr-2"></i> Home</span>
|
||||||
<span class="px-2">—</span>
|
<span class="px-2">—</span>
|
||||||
<span class="font-weight-light">Timeline with posts from accounts you follow</span>
|
<span class="font-weight-light">Timeline with content from accounts you follow</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="lead">
|
<li class="lead mb-2">
|
||||||
<span class="font-weight-bold"><i class="far fa-map text-muted mr-2"></i> Public</span>
|
<span class="font-weight-bold"><i class="fas fa-stream mr-2"></i> Public</span>
|
||||||
<span class="px-2">—</span>
|
<span class="px-2">—</span>
|
||||||
<span class="font-weight-light">Timeline with posts from other users on the same instance</span>
|
<span class="font-weight-light">Timeline with content from other users on this server</span>
|
||||||
</li>
|
</li>
|
||||||
{{-- <li class="lead text-muted">
|
<li class="lead">
|
||||||
<span class="font-weight-bold"><i class="fas fa-globe text-muted mr-2"></i> Network</span>
|
<span class="font-weight-bold"><i class="fas fa-globe mr-2"></i> Network</span>
|
||||||
<span class="px-2">—</span>
|
<span class="px-2">—</span>
|
||||||
<span class="font-weight-light text-muted">Timeline with posts from local and remote accounts - coming soon!</span>
|
<span class="font-weight-light">Timeline with unmoderated content from other servers</span>
|
||||||
</li> --}}
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="py-3"></div>
|
<div class="py-3"></div>
|
||||||
<div class="card bg-primary border-primary" style="box-shadow: none !important;border: 3px solid #08d!important;">
|
<div class="card bg-primary border-primary" style="box-shadow: none !important;border: 3px solid #08d!important;">
|
||||||
<div class="card-header text-light font-weight-bold h4 p-4 bg-primary">Timeline Tips</div>
|
<div class="card-header text-light font-weight-bold h4 p-4 bg-primary">Timeline Tips</div>
|
||||||
<div class="card-body bg-white p-3">
|
<div class="card-body bg-white p-3">
|
||||||
<ul class="pt-3">
|
<ul class="pt-3">
|
||||||
<li class="lead mb-4">You can mute or block accounts to prevent them from appearing in timelines.</li>
|
<li class="lead mb-4">You can mute or block accounts to prevent them from appearing in home and public timelines.</li>
|
||||||
<li class="lead mb-4">You can create <span class="font-weight-bold">Unlisted</span> posts that don't appear in public timelines.</li>
|
<li class="lead mb-4">You can create <span class="font-weight-bold">Unlisted</span> posts that don't appear in public timelines.</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -2,16 +2,12 @@
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<timeline scope="network"></timeline>
|
<network-timeline></network-timeline>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script type="text/javascript" src="{{ mix('js/timeline.js') }}"></script>
|
<script type="text/javascript" src="{{ mix('js/network-timeline.js') }}"></script>
|
||||||
<script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>
|
<script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">window.App.boot();</script>
|
||||||
new Vue({
|
@endpush
|
||||||
el: '#content'
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endpush
|
|
||||||
|
|
898
routes/web.php
898
routes/web.php
|
@ -1,494 +1,496 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(function () {
|
Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(function () {
|
||||||
Route::redirect('/', '/dashboard');
|
Route::redirect('/', '/dashboard');
|
||||||
Route::redirect('timeline', config('app.url').'/timeline');
|
Route::redirect('timeline', config('app.url').'/timeline');
|
||||||
Route::get('dashboard', 'AdminController@home')->name('admin.home');
|
Route::get('dashboard', 'AdminController@home')->name('admin.home');
|
||||||
Route::get('reports', 'AdminController@reports')->name('admin.reports');
|
Route::get('reports', 'AdminController@reports')->name('admin.reports');
|
||||||
Route::get('reports/show/{id}', 'AdminController@showReport');
|
Route::get('reports/show/{id}', 'AdminController@showReport');
|
||||||
Route::post('reports/show/{id}', 'AdminController@updateReport');
|
Route::post('reports/show/{id}', 'AdminController@updateReport');
|
||||||
Route::post('reports/bulk', 'AdminController@bulkUpdateReport');
|
Route::post('reports/bulk', 'AdminController@bulkUpdateReport');
|
||||||
Route::get('reports/autospam/{id}', 'AdminController@showSpam');
|
Route::get('reports/autospam/{id}', 'AdminController@showSpam');
|
||||||
Route::post('reports/autospam/{id}', 'AdminController@updateSpam');
|
Route::post('reports/autospam/{id}', 'AdminController@updateSpam');
|
||||||
Route::get('reports/autospam', 'AdminController@spam');
|
Route::get('reports/autospam', 'AdminController@spam');
|
||||||
Route::get('reports/appeals', 'AdminController@appeals');
|
Route::get('reports/appeals', 'AdminController@appeals');
|
||||||
Route::get('reports/appeal/{id}', 'AdminController@showAppeal');
|
Route::get('reports/appeal/{id}', 'AdminController@showAppeal');
|
||||||
Route::post('reports/appeal/{id}', 'AdminController@updateAppeal');
|
Route::post('reports/appeal/{id}', 'AdminController@updateAppeal');
|
||||||
Route::redirect('statuses', '/statuses/list');
|
Route::redirect('statuses', '/statuses/list');
|
||||||
Route::get('statuses/list', 'AdminController@statuses')->name('admin.statuses');
|
Route::get('statuses/list', 'AdminController@statuses')->name('admin.statuses');
|
||||||
Route::get('statuses/show/{id}', 'AdminController@showStatus');
|
Route::get('statuses/show/{id}', 'AdminController@showStatus');
|
||||||
Route::redirect('profiles', '/i/admin/profiles/list');
|
Route::redirect('profiles', '/i/admin/profiles/list');
|
||||||
Route::get('profiles/list', 'AdminController@profiles')->name('admin.profiles');
|
Route::get('profiles/list', 'AdminController@profiles')->name('admin.profiles');
|
||||||
Route::get('profiles/edit/{id}', 'AdminController@profileShow');
|
Route::get('profiles/edit/{id}', 'AdminController@profileShow');
|
||||||
Route::redirect('users', '/users/list');
|
Route::redirect('users', '/users/list');
|
||||||
Route::get('users/list', 'AdminController@users')->name('admin.users');
|
Route::get('users/list', 'AdminController@users')->name('admin.users');
|
||||||
Route::get('users/show/{id}', 'AdminController@userShow');
|
Route::get('users/show/{id}', 'AdminController@userShow');
|
||||||
Route::get('users/edit/{id}', 'AdminController@userEdit');
|
Route::get('users/edit/{id}', 'AdminController@userEdit');
|
||||||
Route::post('users/edit/{id}', 'AdminController@userEditSubmit');
|
Route::post('users/edit/{id}', 'AdminController@userEditSubmit');
|
||||||
Route::get('users/activity/{id}', 'AdminController@userActivity');
|
Route::get('users/activity/{id}', 'AdminController@userActivity');
|
||||||
Route::get('users/message/{id}', 'AdminController@userMessage');
|
Route::get('users/message/{id}', 'AdminController@userMessage');
|
||||||
Route::post('users/message/{id}', 'AdminController@userMessageSend');
|
Route::post('users/message/{id}', 'AdminController@userMessageSend');
|
||||||
Route::get('users/modtools/{id}', 'AdminController@userModTools');
|
Route::get('users/modtools/{id}', 'AdminController@userModTools');
|
||||||
Route::get('users/modlogs/{id}', 'AdminController@userModLogs');
|
Route::get('users/modlogs/{id}', 'AdminController@userModLogs');
|
||||||
Route::post('users/modlogs/{id}', 'AdminController@userModLogsMessage');
|
Route::post('users/modlogs/{id}', 'AdminController@userModLogsMessage');
|
||||||
Route::post('users/modlogs/{id}/delete', 'AdminController@userModLogDelete');
|
Route::post('users/modlogs/{id}/delete', 'AdminController@userModLogDelete');
|
||||||
Route::get('users/delete/{id}', 'AdminController@userDelete');
|
Route::get('users/delete/{id}', 'AdminController@userDelete');
|
||||||
Route::post('users/delete/{id}', 'AdminController@userDeleteProcess');
|
Route::post('users/delete/{id}', 'AdminController@userDeleteProcess');
|
||||||
Route::post('users/moderation/update', 'AdminController@userModerate');
|
Route::post('users/moderation/update', 'AdminController@userModerate');
|
||||||
Route::get('media', 'AdminController@media')->name('admin.media');
|
Route::get('media', 'AdminController@media')->name('admin.media');
|
||||||
Route::redirect('media/list', '/i/admin/media');
|
Route::redirect('media/list', '/i/admin/media');
|
||||||
Route::get('media/show/{id}', 'AdminController@mediaShow');
|
Route::get('media/show/{id}', 'AdminController@mediaShow');
|
||||||
Route::get('settings', 'AdminController@settings')->name('admin.settings');
|
Route::get('settings', 'AdminController@settings')->name('admin.settings');
|
||||||
Route::post('settings', 'AdminController@settingsHomeStore');
|
Route::post('settings', 'AdminController@settingsHomeStore');
|
||||||
Route::get('settings/config', 'AdminController@settingsConfig')->name('admin.settings.config');
|
Route::get('settings/config', 'AdminController@settingsConfig')->name('admin.settings.config');
|
||||||
Route::post('settings/config', 'AdminController@settingsConfigStore');
|
Route::post('settings/config', 'AdminController@settingsConfigStore');
|
||||||
Route::post('settings/config/restore', 'AdminController@settingsConfigRestore');
|
Route::post('settings/config/restore', 'AdminController@settingsConfigRestore');
|
||||||
Route::get('settings/features', 'AdminController@settingsFeatures')->name('admin.settings.features');
|
Route::get('settings/features', 'AdminController@settingsFeatures')->name('admin.settings.features');
|
||||||
Route::get('settings/pages', 'AdminController@settingsPages')->name('admin.settings.pages');
|
Route::get('settings/pages', 'AdminController@settingsPages')->name('admin.settings.pages');
|
||||||
Route::get('settings/pages/edit', 'PageController@edit')->name('admin.settings.pages.edit');
|
Route::get('settings/pages/edit', 'PageController@edit')->name('admin.settings.pages.edit');
|
||||||
Route::post('settings/pages/edit', 'PageController@store');
|
Route::post('settings/pages/edit', 'PageController@store');
|
||||||
Route::post('settings/pages/delete', 'PageController@delete');
|
Route::post('settings/pages/delete', 'PageController@delete');
|
||||||
Route::post('settings/pages/create', 'PageController@generatePage');
|
Route::post('settings/pages/create', 'PageController@generatePage');
|
||||||
Route::get('settings/maintenance', 'AdminController@settingsMaintenance')->name('admin.settings.maintenance');
|
Route::get('settings/maintenance', 'AdminController@settingsMaintenance')->name('admin.settings.maintenance');
|
||||||
Route::get('settings/backups', 'AdminController@settingsBackups')->name('admin.settings.backups');
|
Route::get('settings/backups', 'AdminController@settingsBackups')->name('admin.settings.backups');
|
||||||
Route::get('settings/storage', 'AdminController@settingsStorage')->name('admin.settings.storage');
|
Route::get('settings/storage', 'AdminController@settingsStorage')->name('admin.settings.storage');
|
||||||
Route::get('settings/system', 'AdminController@settingsSystem')->name('admin.settings.system');
|
Route::get('settings/system', 'AdminController@settingsSystem')->name('admin.settings.system');
|
||||||
|
|
||||||
Route::get('instances', 'AdminController@instances')->name('admin.instances');
|
Route::get('instances', 'AdminController@instances')->name('admin.instances');
|
||||||
Route::post('instances', 'AdminController@instanceScan');
|
Route::post('instances', 'AdminController@instanceScan');
|
||||||
Route::get('instances/show/{id}', 'AdminController@instanceShow');
|
Route::get('instances/show/{id}', 'AdminController@instanceShow');
|
||||||
Route::post('instances/edit/{id}', 'AdminController@instanceEdit');
|
Route::post('instances/edit/{id}', 'AdminController@instanceEdit');
|
||||||
Route::get('apps/home', 'AdminController@appsHome')->name('admin.apps');
|
Route::get('apps/home', 'AdminController@appsHome')->name('admin.apps');
|
||||||
Route::get('hashtags/home', 'AdminController@hashtagsHome')->name('admin.hashtags');
|
Route::get('hashtags/home', 'AdminController@hashtagsHome')->name('admin.hashtags');
|
||||||
Route::get('discover/home', 'AdminController@discoverHome')->name('admin.discover');
|
Route::get('discover/home', 'AdminController@discoverHome')->name('admin.discover');
|
||||||
Route::get('discover/category/create', 'AdminController@discoverCreateCategory')->name('admin.discover.create-category');
|
Route::get('discover/category/create', 'AdminController@discoverCreateCategory')->name('admin.discover.create-category');
|
||||||
Route::post('discover/category/create', 'AdminController@discoverCreateCategoryStore');
|
Route::post('discover/category/create', 'AdminController@discoverCreateCategoryStore');
|
||||||
Route::get('discover/category/edit/{id}', 'AdminController@discoverCategoryEdit');
|
Route::get('discover/category/edit/{id}', 'AdminController@discoverCategoryEdit');
|
||||||
Route::post('discover/category/edit/{id}', 'AdminController@discoverCategoryUpdate');
|
Route::post('discover/category/edit/{id}', 'AdminController@discoverCategoryUpdate');
|
||||||
Route::post('discover/category/hashtag/create', 'AdminController@discoveryCategoryTagStore')->name('admin.discover.create-hashtag');
|
Route::post('discover/category/hashtag/create', 'AdminController@discoveryCategoryTagStore')->name('admin.discover.create-hashtag');
|
||||||
|
|
||||||
Route::get('messages/home', 'AdminController@messagesHome')->name('admin.messages');
|
Route::get('messages/home', 'AdminController@messagesHome')->name('admin.messages');
|
||||||
Route::get('messages/show/{id}', 'AdminController@messagesShow');
|
Route::get('messages/show/{id}', 'AdminController@messagesShow');
|
||||||
Route::post('messages/mark-read', 'AdminController@messagesMarkRead');
|
Route::post('messages/mark-read', 'AdminController@messagesMarkRead');
|
||||||
Route::redirect('site-news', '/i/admin/newsroom');
|
Route::redirect('site-news', '/i/admin/newsroom');
|
||||||
Route::get('newsroom', 'AdminController@newsroomHome')->name('admin.newsroom.home');
|
Route::get('newsroom', 'AdminController@newsroomHome')->name('admin.newsroom.home');
|
||||||
Route::get('newsroom/create', 'AdminController@newsroomCreate')->name('admin.newsroom.create');
|
Route::get('newsroom/create', 'AdminController@newsroomCreate')->name('admin.newsroom.create');
|
||||||
Route::get('newsroom/edit/{id}', 'AdminController@newsroomEdit');
|
Route::get('newsroom/edit/{id}', 'AdminController@newsroomEdit');
|
||||||
Route::post('newsroom/edit/{id}', 'AdminController@newsroomUpdate');
|
Route::post('newsroom/edit/{id}', 'AdminController@newsroomUpdate');
|
||||||
Route::delete('newsroom/edit/{id}', 'AdminController@newsroomDelete');
|
Route::delete('newsroom/edit/{id}', 'AdminController@newsroomDelete');
|
||||||
Route::post('newsroom/create', 'AdminController@newsroomStore');
|
Route::post('newsroom/create', 'AdminController@newsroomStore');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization','interstitial'])->group(function () {
|
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization','interstitial'])->group(function () {
|
||||||
Route::get('/', 'SiteController@home')->name('timeline.personal');
|
Route::get('/', 'SiteController@home')->name('timeline.personal');
|
||||||
Route::post('/', 'StatusController@store');
|
Route::post('/', 'StatusController@store');
|
||||||
|
|
||||||
Auth::routes();
|
Auth::routes();
|
||||||
|
|
||||||
Route::get('.well-known/webfinger', 'FederationController@webfinger')->name('well-known.webfinger');
|
Route::get('.well-known/webfinger', 'FederationController@webfinger')->name('well-known.webfinger');
|
||||||
Route::get('.well-known/nodeinfo', 'FederationController@nodeinfoWellKnown')->name('well-known.nodeinfo');
|
Route::get('.well-known/nodeinfo', 'FederationController@nodeinfoWellKnown')->name('well-known.nodeinfo');
|
||||||
Route::get('.well-known/host-meta', 'FederationController@hostMeta')->name('well-known.hostMeta');
|
Route::get('.well-known/host-meta', 'FederationController@hostMeta')->name('well-known.hostMeta');
|
||||||
Route::redirect('.well-known/change-password', '/settings/password');
|
Route::redirect('.well-known/change-password', '/settings/password');
|
||||||
|
|
||||||
Route::get('/home', 'HomeController@index')->name('home');
|
Route::get('/home', 'HomeController@index')->name('home');
|
||||||
|
|
||||||
Route::get('discover/c/{slug}', 'DiscoverController@showCategory');
|
Route::get('discover/c/{slug}', 'DiscoverController@showCategory');
|
||||||
Route::redirect('discover/personal', '/discover');
|
Route::redirect('discover/personal', '/discover');
|
||||||
Route::get('discover', 'DiscoverController@home')->name('discover');
|
Route::get('discover', 'DiscoverController@home')->name('discover');
|
||||||
Route::get('discover/loops', 'DiscoverController@showLoops');
|
Route::get('discover/loops', 'DiscoverController@showLoops');
|
||||||
Route::get('discover/profiles', 'DiscoverController@profilesDirectory')->name('discover.profiles');
|
Route::get('discover/profiles', 'DiscoverController@profilesDirectory')->name('discover.profiles');
|
||||||
|
|
||||||
Route::group(['prefix' => 'api'], function () {
|
|
||||||
Route::get('search', 'SearchController@searchAPI');
|
|
||||||
Route::get('nodeinfo/2.0.json', 'FederationController@nodeinfo');
|
|
||||||
Route::post('status/view', 'StatusController@storeView');
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'compose'], function() {
|
Route::group(['prefix' => 'api'], function () {
|
||||||
Route::group(['prefix' => 'v0'], function() {
|
Route::get('search', 'SearchController@searchAPI');
|
||||||
Route::post('/media/upload', 'ComposeController@mediaUpload');
|
Route::get('nodeinfo/2.0.json', 'FederationController@nodeinfo');
|
||||||
Route::post('/media/update', 'ComposeController@mediaUpdate');
|
Route::post('status/view', 'StatusController@storeView');
|
||||||
Route::delete('/media/delete', 'ComposeController@mediaDelete');
|
|
||||||
Route::get('/search/tag', 'ComposeController@searchTag');
|
|
||||||
Route::get('/search/location', 'ComposeController@searchLocation');
|
|
||||||
Route::get('/search/mention', 'ComposeController@searchMentionAutocomplete');
|
|
||||||
Route::get('/search/hashtag', 'ComposeController@searchHashtagAutocomplete');
|
|
||||||
|
|
||||||
Route::post('/publish', 'ComposeController@store');
|
Route::group(['prefix' => 'compose'], function() {
|
||||||
Route::post('/publish/text', 'ComposeController@storeText');
|
Route::group(['prefix' => 'v0'], function() {
|
||||||
Route::get('/media/processing', 'ComposeController@mediaProcessingCheck');
|
Route::post('/media/upload', 'ComposeController@mediaUpload');
|
||||||
});
|
Route::post('/media/update', 'ComposeController@mediaUpdate');
|
||||||
});
|
Route::delete('/media/delete', 'ComposeController@mediaDelete');
|
||||||
|
Route::get('/search/tag', 'ComposeController@searchTag');
|
||||||
|
Route::get('/search/location', 'ComposeController@searchLocation');
|
||||||
|
Route::get('/search/mention', 'ComposeController@searchMentionAutocomplete');
|
||||||
|
Route::get('/search/hashtag', 'ComposeController@searchHashtagAutocomplete');
|
||||||
|
|
||||||
Route::group(['prefix' => 'direct'], function () {
|
Route::post('/publish', 'ComposeController@store');
|
||||||
Route::get('browse', 'DirectMessageController@browse');
|
Route::post('/publish/text', 'ComposeController@storeText');
|
||||||
Route::post('create', 'DirectMessageController@create');
|
Route::get('/media/processing', 'ComposeController@mediaProcessingCheck');
|
||||||
Route::get('thread', 'DirectMessageController@thread');
|
});
|
||||||
Route::post('mute', 'DirectMessageController@mute');
|
});
|
||||||
Route::post('unmute', 'DirectMessageController@unmute');
|
|
||||||
Route::delete('message', 'DirectMessageController@delete');
|
|
||||||
Route::post('media', 'DirectMessageController@mediaUpload');
|
|
||||||
Route::post('lookup', 'DirectMessageController@composeLookup');
|
|
||||||
Route::post('read', 'DirectMessageController@read');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'v2'], function() {
|
Route::group(['prefix' => 'direct'], function () {
|
||||||
Route::get('config', 'ApiController@siteConfiguration');
|
Route::get('browse', 'DirectMessageController@browse');
|
||||||
Route::get('discover', 'InternalApiController@discover');
|
Route::post('create', 'DirectMessageController@create');
|
||||||
Route::get('discover/posts', 'InternalApiController@discoverPosts')->middleware('auth:api');
|
Route::get('thread', 'DirectMessageController@thread');
|
||||||
Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
|
Route::post('mute', 'DirectMessageController@mute');
|
||||||
Route::get('profile/{username}/status/{postid}/state', 'PublicApiController@statusState');
|
Route::post('unmute', 'DirectMessageController@unmute');
|
||||||
Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
|
Route::delete('message', 'DirectMessageController@delete');
|
||||||
Route::get('likes/profile/{username}/status/{id}', 'PublicApiController@statusLikes');
|
Route::post('media', 'DirectMessageController@mediaUpload');
|
||||||
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
Route::post('lookup', 'DirectMessageController@composeLookup');
|
||||||
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
Route::post('read', 'DirectMessageController@read');
|
||||||
Route::post('moderator/action', 'InternalApiController@modAction');
|
});
|
||||||
Route::get('discover/categories', 'InternalApiController@discoverCategories');
|
|
||||||
Route::get('loops', 'DiscoverController@loopsApi');
|
|
||||||
Route::post('loops/watch', 'DiscoverController@loopWatch');
|
|
||||||
Route::get('discover/tag', 'DiscoverController@getHashtags');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'pixelfed'], function() {
|
|
||||||
Route::group(['prefix' => 'v1'], function() {
|
|
||||||
Route::get('accounts/verify_credentials', 'ApiController@verifyCredentials');
|
|
||||||
Route::get('accounts/relationships', 'Api\ApiV1Controller@accountRelationshipsById');
|
|
||||||
Route::get('accounts/search', 'Api\ApiV1Controller@accountSearch');
|
|
||||||
Route::get('accounts/{id}/statuses', 'PublicApiController@accountStatuses');
|
|
||||||
Route::get('accounts/{id}/following', 'PublicApiController@accountFollowing');
|
|
||||||
Route::get('accounts/{id}/followers', 'PublicApiController@accountFollowers');
|
|
||||||
Route::post('accounts/{id}/block', 'Api\ApiV1Controller@accountBlockById');
|
|
||||||
Route::post('accounts/{id}/unblock', 'Api\ApiV1Controller@accountUnblockById');
|
|
||||||
Route::get('accounts/{id}', 'PublicApiController@account');
|
|
||||||
Route::post('avatar/update', 'ApiController@avatarUpdate');
|
|
||||||
Route::get('custom_emojis', 'Api\ApiV1Controller@customEmojis');
|
|
||||||
Route::get('likes', 'ApiController@hydrateLikes');
|
|
||||||
Route::post('media', 'ApiController@uploadMedia');
|
|
||||||
Route::delete('media', 'ApiController@deleteMedia');
|
|
||||||
Route::get('notifications', 'ApiController@notifications');
|
|
||||||
Route::get('timelines/public', 'PublicApiController@publicTimelineApi');
|
|
||||||
Route::get('timelines/home', 'PublicApiController@homeTimelineApi');
|
|
||||||
Route::get('newsroom/timeline', 'NewsroomController@timelineApi');
|
|
||||||
Route::post('newsroom/markasread', 'NewsroomController@markAsRead');
|
|
||||||
Route::get('favourites', 'Api\BaseApiController@accountLikes');
|
|
||||||
Route::get('mutes', 'AccountController@accountMutes');
|
|
||||||
Route::get('blocks', 'AccountController@accountBlocks');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'v2'], function() {
|
Route::group(['prefix' => 'v2'], function() {
|
||||||
Route::get('config', 'ApiController@siteConfiguration');
|
Route::get('config', 'ApiController@siteConfiguration');
|
||||||
Route::get('discover', 'InternalApiController@discover');
|
Route::get('discover', 'InternalApiController@discover');
|
||||||
Route::get('discover/posts', 'InternalApiController@discoverPosts');
|
Route::get('discover/posts', 'InternalApiController@discoverPosts')->middleware('auth:api');
|
||||||
Route::get('discover/profiles', 'DiscoverController@profilesDirectoryApi');
|
Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
|
||||||
Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
|
Route::get('profile/{username}/status/{postid}/state', 'PublicApiController@statusState');
|
||||||
Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
|
Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
|
||||||
Route::get('likes/profile/{username}/status/{id}', 'PublicApiController@statusLikes');
|
Route::get('likes/profile/{username}/status/{id}', 'PublicApiController@statusLikes');
|
||||||
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
||||||
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
||||||
Route::post('moderator/action', 'InternalApiController@modAction');
|
Route::post('moderator/action', 'InternalApiController@modAction');
|
||||||
Route::get('discover/categories', 'InternalApiController@discoverCategories');
|
Route::get('discover/categories', 'InternalApiController@discoverCategories');
|
||||||
Route::get('loops', 'DiscoverController@loopsApi');
|
Route::get('loops', 'DiscoverController@loopsApi');
|
||||||
Route::post('loops/watch', 'DiscoverController@loopWatch');
|
Route::post('loops/watch', 'DiscoverController@loopWatch');
|
||||||
Route::get('discover/tag', 'DiscoverController@getHashtags');
|
Route::get('discover/tag', 'DiscoverController@getHashtags');
|
||||||
Route::post('status/compose', 'InternalApiController@composePost')->middleware('throttle:maxPostsPerHour,60')->middleware('throttle:maxPostsPerDay,1440');
|
});
|
||||||
Route::get('discover/posts/trending', 'DiscoverController@trendingApi');
|
|
||||||
Route::get('discover/posts/hashtags', 'DiscoverController@trendingHashtags');
|
|
||||||
Route::get('discover/posts/places', 'DiscoverController@trendingPlaces');
|
|
||||||
Route::get('seasonal/yir', 'SeasonalController@getData');
|
|
||||||
Route::post('seasonal/yir', 'SeasonalController@store');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'local'], function () {
|
Route::group(['prefix' => 'pixelfed'], function() {
|
||||||
// Route::post('status/compose', 'InternalApiController@composePost')->middleware('throttle:maxPostsPerHour,60')->middleware('throttle:maxPostsPerDay,1440');
|
Route::group(['prefix' => 'v1'], function() {
|
||||||
Route::get('exp/rec', 'ApiController@userRecommendations');
|
Route::get('accounts/verify_credentials', 'ApiController@verifyCredentials');
|
||||||
Route::post('discover/tag/subscribe', 'HashtagFollowController@store')->middleware('throttle:maxHashtagFollowsPerHour,60')->middleware('throttle:maxHashtagFollowsPerDay,1440');
|
Route::get('accounts/relationships', 'Api\ApiV1Controller@accountRelationshipsById');
|
||||||
Route::get('discover/tag/list', 'HashtagFollowController@getTags');
|
Route::get('accounts/search', 'Api\ApiV1Controller@accountSearch');
|
||||||
// Route::get('profile/sponsor/{id}', 'ProfileSponsorController@get');
|
Route::get('accounts/{id}/statuses', 'PublicApiController@accountStatuses');
|
||||||
Route::get('bookmarks', 'InternalApiController@bookmarks');
|
Route::get('accounts/{id}/following', 'PublicApiController@accountFollowing');
|
||||||
Route::get('collection/items/{id}', 'CollectionController@getItems');
|
Route::get('accounts/{id}/followers', 'PublicApiController@accountFollowers');
|
||||||
Route::post('collection/item', 'CollectionController@storeId');
|
Route::post('accounts/{id}/block', 'Api\ApiV1Controller@accountBlockById');
|
||||||
Route::delete('collection/item', 'CollectionController@deleteId');
|
Route::post('accounts/{id}/unblock', 'Api\ApiV1Controller@accountUnblockById');
|
||||||
Route::get('collection/{id}', 'CollectionController@get');
|
Route::get('accounts/{id}', 'PublicApiController@account');
|
||||||
Route::post('collection/{id}', 'CollectionController@store');
|
Route::post('avatar/update', 'ApiController@avatarUpdate');
|
||||||
Route::delete('collection/{id}', 'CollectionController@delete')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
Route::get('custom_emojis', 'Api\ApiV1Controller@customEmojis');
|
||||||
Route::post('collection/{id}/publish', 'CollectionController@publish')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
Route::get('likes', 'ApiController@hydrateLikes');
|
||||||
Route::get('profile/collections/{id}', 'CollectionController@getUserCollections');
|
Route::post('media', 'ApiController@uploadMedia');
|
||||||
|
Route::delete('media', 'ApiController@deleteMedia');
|
||||||
|
Route::get('notifications', 'ApiController@notifications');
|
||||||
|
Route::get('timelines/public', 'PublicApiController@publicTimelineApi');
|
||||||
|
Route::get('timelines/home', 'PublicApiController@homeTimelineApi');
|
||||||
|
Route::get('timelines/network', 'PublicApiController@networkTimelineApi');
|
||||||
|
Route::get('newsroom/timeline', 'NewsroomController@timelineApi');
|
||||||
|
Route::post('newsroom/markasread', 'NewsroomController@markAsRead');
|
||||||
|
Route::get('favourites', 'Api\BaseApiController@accountLikes');
|
||||||
|
Route::get('mutes', 'AccountController@accountMutes');
|
||||||
|
Route::get('blocks', 'AccountController@accountBlocks');
|
||||||
|
});
|
||||||
|
|
||||||
Route::get('compose/location/search', 'ApiController@composeLocationSearch');
|
Route::group(['prefix' => 'v2'], function() {
|
||||||
Route::post('compose/tag/untagme', 'MediaTagController@untagProfile');
|
Route::get('config', 'ApiController@siteConfiguration');
|
||||||
});
|
Route::get('discover', 'InternalApiController@discover');
|
||||||
Route::group(['prefix' => 'admin'], function () {
|
Route::get('discover/posts', 'InternalApiController@discoverPosts');
|
||||||
Route::post('moderate', 'Api\AdminApiController@moderate');
|
Route::get('discover/profiles', 'DiscoverController@profilesDirectoryApi');
|
||||||
});
|
Route::get('profile/{username}/status/{postid}', 'PublicApiController@status');
|
||||||
Route::group(['prefix' => 'stories'], function () {
|
Route::get('comments/{username}/status/{postId}', 'PublicApiController@statusComments');
|
||||||
Route::get('v0/recent', 'StoryController@apiV1Recent');
|
Route::get('likes/profile/{username}/status/{id}', 'PublicApiController@statusLikes');
|
||||||
Route::post('v0/add', 'StoryController@apiV1Add')->middleware('throttle:maxStoriesPerDay,1440');
|
Route::get('shares/profile/{username}/status/{id}', 'PublicApiController@statusShares');
|
||||||
Route::get('v0/fetch/{id}', 'StoryController@apiV1Fetch');
|
Route::get('status/{id}/replies', 'InternalApiController@statusReplies');
|
||||||
Route::get('v0/profile/{id}', 'StoryController@apiV1Profile');
|
Route::post('moderator/action', 'InternalApiController@modAction');
|
||||||
Route::get('v0/exists/{id}', 'StoryController@apiV1Exists');
|
Route::get('discover/categories', 'InternalApiController@discoverCategories');
|
||||||
Route::delete('v0/delete/{id}', 'StoryController@apiV1Delete')->middleware('throttle:maxStoryDeletePerDay,1440');
|
Route::get('loops', 'DiscoverController@loopsApi');
|
||||||
Route::get('v0/me', 'StoryController@apiV1Me');
|
Route::post('loops/watch', 'DiscoverController@loopWatch');
|
||||||
Route::get('v0/item/{id}', 'StoryController@apiV1Item');
|
Route::get('discover/tag', 'DiscoverController@getHashtags');
|
||||||
});
|
Route::post('status/compose', 'InternalApiController@composePost')->middleware('throttle:maxPostsPerHour,60')->middleware('throttle:maxPostsPerDay,1440');
|
||||||
|
Route::get('discover/posts/trending', 'DiscoverController@trendingApi');
|
||||||
|
Route::get('discover/posts/hashtags', 'DiscoverController@trendingHashtags');
|
||||||
|
Route::get('discover/posts/places', 'DiscoverController@trendingPlaces');
|
||||||
|
Route::get('seasonal/yir', 'SeasonalController@getData');
|
||||||
|
Route::post('seasonal/yir', 'SeasonalController@store');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
});
|
Route::group(['prefix' => 'local'], function () {
|
||||||
|
// Route::post('status/compose', 'InternalApiController@composePost')->middleware('throttle:maxPostsPerHour,60')->middleware('throttle:maxPostsPerDay,1440');
|
||||||
|
Route::get('exp/rec', 'ApiController@userRecommendations');
|
||||||
|
Route::post('discover/tag/subscribe', 'HashtagFollowController@store')->middleware('throttle:maxHashtagFollowsPerHour,60')->middleware('throttle:maxHashtagFollowsPerDay,1440');
|
||||||
|
Route::get('discover/tag/list', 'HashtagFollowController@getTags');
|
||||||
|
// Route::get('profile/sponsor/{id}', 'ProfileSponsorController@get');
|
||||||
|
Route::get('bookmarks', 'InternalApiController@bookmarks');
|
||||||
|
Route::get('collection/items/{id}', 'CollectionController@getItems');
|
||||||
|
Route::post('collection/item', 'CollectionController@storeId');
|
||||||
|
Route::delete('collection/item', 'CollectionController@deleteId');
|
||||||
|
Route::get('collection/{id}', 'CollectionController@get');
|
||||||
|
Route::post('collection/{id}', 'CollectionController@store');
|
||||||
|
Route::delete('collection/{id}', 'CollectionController@delete')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
||||||
|
Route::post('collection/{id}/publish', 'CollectionController@publish')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
||||||
|
Route::get('profile/collections/{id}', 'CollectionController@getUserCollections');
|
||||||
|
|
||||||
Route::get('discover/tags/{hashtag}', 'DiscoverController@showTags');
|
Route::get('compose/location/search', 'ApiController@composeLocationSearch');
|
||||||
Route::get('discover/places', 'PlaceController@directoryHome')->name('discover.places');
|
Route::post('compose/tag/untagme', 'MediaTagController@untagProfile');
|
||||||
Route::get('discover/places/{id}/{slug}', 'PlaceController@show');
|
});
|
||||||
Route::get('discover/location/country/{country}', 'PlaceController@directoryCities');
|
Route::group(['prefix' => 'admin'], function () {
|
||||||
|
Route::post('moderate', 'Api\AdminApiController@moderate');
|
||||||
|
});
|
||||||
|
Route::group(['prefix' => 'stories'], function () {
|
||||||
|
Route::get('v0/recent', 'StoryController@apiV1Recent');
|
||||||
|
Route::post('v0/add', 'StoryController@apiV1Add')->middleware('throttle:maxStoriesPerDay,1440');
|
||||||
|
Route::get('v0/fetch/{id}', 'StoryController@apiV1Fetch');
|
||||||
|
Route::get('v0/profile/{id}', 'StoryController@apiV1Profile');
|
||||||
|
Route::get('v0/exists/{id}', 'StoryController@apiV1Exists');
|
||||||
|
Route::delete('v0/delete/{id}', 'StoryController@apiV1Delete')->middleware('throttle:maxStoryDeletePerDay,1440');
|
||||||
|
Route::get('v0/me', 'StoryController@apiV1Me');
|
||||||
|
Route::get('v0/item/{id}', 'StoryController@apiV1Item');
|
||||||
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'i'], function () {
|
});
|
||||||
Route::redirect('/', '/');
|
|
||||||
Route::get('compose', 'StatusController@compose')->name('compose');
|
|
||||||
Route::post('comment', 'CommentController@store')->middleware('throttle:maxCommentsPerDay,1440');
|
|
||||||
Route::post('delete', 'StatusController@delete');
|
|
||||||
Route::post('mute', 'AccountController@mute');
|
|
||||||
Route::post('unmute', 'AccountController@unmute');
|
|
||||||
Route::post('block', 'AccountController@block');
|
|
||||||
Route::post('unblock', 'AccountController@unblock');
|
|
||||||
Route::post('like', 'LikeController@store')->middleware('throttle:maxLikesPerDay,1440');
|
|
||||||
Route::post('share', 'StatusController@storeShare')->middleware('throttle:maxSharesPerHour,60')->middleware('throttle:maxSharesPerDay,1440');
|
|
||||||
Route::post('follow', 'FollowerController@store');
|
|
||||||
Route::post('bookmark', 'BookmarkController@store');
|
|
||||||
Route::get('lang/{locale}', 'SiteController@changeLocale');
|
|
||||||
Route::get('restored', 'AccountController@accountRestored');
|
|
||||||
|
|
||||||
Route::get('verify-email', 'AccountController@verifyEmail');
|
Route::get('discover/tags/{hashtag}', 'DiscoverController@showTags');
|
||||||
Route::post('verify-email', 'AccountController@sendVerifyEmail');
|
Route::get('discover/places', 'PlaceController@directoryHome')->name('discover.places');
|
||||||
Route::get('confirm-email/{userToken}/{randomToken}', 'AccountController@confirmVerifyEmail');
|
Route::get('discover/places/{id}/{slug}', 'PlaceController@show');
|
||||||
|
Route::get('discover/location/country/{country}', 'PlaceController@directoryCities');
|
||||||
|
|
||||||
Route::get('auth/sudo', 'AccountController@sudoMode');
|
Route::group(['prefix' => 'i'], function () {
|
||||||
Route::post('auth/sudo', 'AccountController@sudoModeVerify');
|
Route::redirect('/', '/');
|
||||||
Route::get('auth/checkpoint', 'AccountController@twoFactorCheckpoint');
|
Route::get('compose', 'StatusController@compose')->name('compose');
|
||||||
Route::post('auth/checkpoint', 'AccountController@twoFactorVerify');
|
Route::post('comment', 'CommentController@store')->middleware('throttle:maxCommentsPerDay,1440');
|
||||||
|
Route::post('delete', 'StatusController@delete');
|
||||||
|
Route::post('mute', 'AccountController@mute');
|
||||||
|
Route::post('unmute', 'AccountController@unmute');
|
||||||
|
Route::post('block', 'AccountController@block');
|
||||||
|
Route::post('unblock', 'AccountController@unblock');
|
||||||
|
Route::post('like', 'LikeController@store')->middleware('throttle:maxLikesPerDay,1440');
|
||||||
|
Route::post('share', 'StatusController@storeShare')->middleware('throttle:maxSharesPerHour,60')->middleware('throttle:maxSharesPerDay,1440');
|
||||||
|
Route::post('follow', 'FollowerController@store');
|
||||||
|
Route::post('bookmark', 'BookmarkController@store');
|
||||||
|
Route::get('lang/{locale}', 'SiteController@changeLocale');
|
||||||
|
Route::get('restored', 'AccountController@accountRestored');
|
||||||
|
|
||||||
Route::get('media/preview/{profileId}/{mediaId}/{timestamp}', 'ApiController@showTempMedia')->name('temp-media');
|
Route::get('verify-email', 'AccountController@verifyEmail');
|
||||||
|
Route::post('verify-email', 'AccountController@sendVerifyEmail');
|
||||||
|
Route::get('confirm-email/{userToken}/{randomToken}', 'AccountController@confirmVerifyEmail');
|
||||||
|
|
||||||
Route::get('results', 'SearchController@results');
|
Route::get('auth/sudo', 'AccountController@sudoMode');
|
||||||
Route::post('visibility', 'StatusController@toggleVisibility');
|
Route::post('auth/sudo', 'AccountController@sudoModeVerify');
|
||||||
|
Route::get('auth/checkpoint', 'AccountController@twoFactorCheckpoint');
|
||||||
|
Route::post('auth/checkpoint', 'AccountController@twoFactorVerify');
|
||||||
|
|
||||||
Route::post('metro/dark-mode', 'SettingsController@metroDarkMode');
|
Route::get('media/preview/{profileId}/{mediaId}/{timestamp}', 'ApiController@showTempMedia')->name('temp-media');
|
||||||
|
|
||||||
Route::group(['prefix' => 'report'], function () {
|
Route::get('results', 'SearchController@results');
|
||||||
Route::get('/', 'ReportController@showForm')->name('report.form');
|
Route::post('visibility', 'StatusController@toggleVisibility');
|
||||||
Route::post('/', 'ReportController@formStore');
|
|
||||||
Route::get('not-interested', 'ReportController@notInterestedForm')->name('report.not-interested');
|
|
||||||
Route::get('spam', 'ReportController@spamForm')->name('report.spam');
|
|
||||||
Route::get('spam/comment', 'ReportController@spamCommentForm')->name('report.spam.comment');
|
|
||||||
Route::get('spam/post', 'ReportController@spamPostForm')->name('report.spam.post');
|
|
||||||
Route::get('spam/profile', 'ReportController@spamProfileForm')->name('report.spam.profile');
|
|
||||||
Route::get('sensitive/comment', 'ReportController@sensitiveCommentForm')->name('report.sensitive.comment');
|
|
||||||
Route::get('sensitive/post', 'ReportController@sensitivePostForm')->name('report.sensitive.post');
|
|
||||||
Route::get('sensitive/profile', 'ReportController@sensitiveProfileForm')->name('report.sensitive.profile');
|
|
||||||
Route::get('abusive/comment', 'ReportController@abusiveCommentForm')->name('report.abusive.comment');
|
|
||||||
Route::get('abusive/post', 'ReportController@abusivePostForm')->name('report.abusive.post');
|
|
||||||
Route::get('abusive/profile', 'ReportController@abusiveProfileForm')->name('report.abusive.profile');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('collections/create', 'CollectionController@create');
|
Route::post('metro/dark-mode', 'SettingsController@metroDarkMode');
|
||||||
|
|
||||||
Route::get('me', 'ProfileController@meRedirect');
|
Route::group(['prefix' => 'report'], function () {
|
||||||
Route::get('intent/follow', 'SiteController@followIntent');
|
Route::get('/', 'ReportController@showForm')->name('report.form');
|
||||||
Route::post('stories/viewed', 'StoryController@apiV1Viewed');
|
Route::post('/', 'ReportController@formStore');
|
||||||
Route::get('stories/new', 'StoryController@compose');
|
Route::get('not-interested', 'ReportController@notInterestedForm')->name('report.not-interested');
|
||||||
Route::get('my/story', 'StoryController@iRedirect');
|
Route::get('spam', 'ReportController@spamForm')->name('report.spam');
|
||||||
Route::get('web/profile/_/{id}', 'InternalApiController@remoteProfile');
|
Route::get('spam/comment', 'ReportController@spamCommentForm')->name('report.spam.comment');
|
||||||
Route::get('web/post/_/{profileId}/{statusid}', 'InternalApiController@remoteStatus');
|
Route::get('spam/post', 'ReportController@spamPostForm')->name('report.spam.post');
|
||||||
|
Route::get('spam/profile', 'ReportController@spamProfileForm')->name('report.spam.profile');
|
||||||
|
Route::get('sensitive/comment', 'ReportController@sensitiveCommentForm')->name('report.sensitive.comment');
|
||||||
|
Route::get('sensitive/post', 'ReportController@sensitivePostForm')->name('report.sensitive.post');
|
||||||
|
Route::get('sensitive/profile', 'ReportController@sensitiveProfileForm')->name('report.sensitive.profile');
|
||||||
|
Route::get('abusive/comment', 'ReportController@abusiveCommentForm')->name('report.abusive.comment');
|
||||||
|
Route::get('abusive/post', 'ReportController@abusivePostForm')->name('report.abusive.post');
|
||||||
|
Route::get('abusive/profile', 'ReportController@abusiveProfileForm')->name('report.abusive.profile');
|
||||||
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'import', 'middleware' => 'dangerzone'], function() {
|
Route::get('collections/create', 'CollectionController@create');
|
||||||
Route::get('job/{uuid}/1', 'ImportController@instagramStepOne');
|
|
||||||
Route::post('job/{uuid}/1', 'ImportController@instagramStepOneStore');
|
|
||||||
Route::get('job/{uuid}/2', 'ImportController@instagramStepTwo');
|
|
||||||
Route::post('job/{uuid}/2', 'ImportController@instagramStepTwoStore');
|
|
||||||
Route::get('job/{uuid}/3', 'ImportController@instagramStepThree');
|
|
||||||
Route::post('job/{uuid}/3', 'ImportController@instagramStepThreeStore');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('redirect', 'SiteController@redirectUrl');
|
Route::get('me', 'ProfileController@meRedirect');
|
||||||
Route::post('admin/media/block/add', 'MediaBlocklistController@add');
|
Route::get('intent/follow', 'SiteController@followIntent');
|
||||||
Route::post('admin/media/block/delete', 'MediaBlocklistController@delete');
|
Route::post('stories/viewed', 'StoryController@apiV1Viewed');
|
||||||
|
Route::get('stories/new', 'StoryController@compose');
|
||||||
|
Route::get('my/story', 'StoryController@iRedirect');
|
||||||
|
Route::get('web/profile/_/{id}', 'InternalApiController@remoteProfile');
|
||||||
|
Route::get('web/post/_/{profileId}/{statusid}', 'InternalApiController@remoteStatus');
|
||||||
|
|
||||||
Route::get('warning', 'AccountInterstitialController@get');
|
Route::group(['prefix' => 'import', 'middleware' => 'dangerzone'], function() {
|
||||||
Route::post('warning', 'AccountInterstitialController@read');
|
Route::get('job/{uuid}/1', 'ImportController@instagramStepOne');
|
||||||
Route::get('my2020', 'SeasonalController@yearInReview');
|
Route::post('job/{uuid}/1', 'ImportController@instagramStepOneStore');
|
||||||
});
|
Route::get('job/{uuid}/2', 'ImportController@instagramStepTwo');
|
||||||
|
Route::post('job/{uuid}/2', 'ImportController@instagramStepTwoStore');
|
||||||
|
Route::get('job/{uuid}/3', 'ImportController@instagramStepThree');
|
||||||
|
Route::post('job/{uuid}/3', 'ImportController@instagramStepThreeStore');
|
||||||
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'account'], function () {
|
Route::get('redirect', 'SiteController@redirectUrl');
|
||||||
Route::redirect('/', '/');
|
Route::post('admin/media/block/add', 'MediaBlocklistController@add');
|
||||||
Route::get('direct', 'AccountController@direct');
|
Route::post('admin/media/block/delete', 'MediaBlocklistController@delete');
|
||||||
Route::get('direct/t/{id}', 'AccountController@directMessage');
|
|
||||||
Route::get('activity', 'AccountController@notifications')->name('notifications');
|
|
||||||
Route::get('follow-requests', 'AccountController@followRequests')->name('follow-requests');
|
|
||||||
Route::post('follow-requests', 'AccountController@followRequestHandle');
|
|
||||||
Route::get('follow-requests.json', 'AccountController@followRequestsJson');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'settings'], function () {
|
Route::get('warning', 'AccountInterstitialController@get');
|
||||||
Route::redirect('/', '/settings/home');
|
Route::post('warning', 'AccountInterstitialController@read');
|
||||||
Route::get('home', 'SettingsController@home')
|
Route::get('my2020', 'SeasonalController@yearInReview');
|
||||||
->name('settings');
|
});
|
||||||
Route::post('home', 'SettingsController@homeUpdate');
|
|
||||||
Route::get('avatar', 'SettingsController@avatar')->name('settings.avatar');
|
|
||||||
Route::post('avatar', 'AvatarController@store');
|
|
||||||
Route::delete('avatar', 'AvatarController@deleteAvatar');
|
|
||||||
Route::get('password', 'SettingsController@password')->name('settings.password')->middleware('dangerzone');
|
|
||||||
Route::post('password', 'SettingsController@passwordUpdate')->middleware('dangerzone');
|
|
||||||
Route::get('email', 'SettingsController@email')->name('settings.email');
|
|
||||||
Route::post('email', 'SettingsController@emailUpdate');
|
|
||||||
Route::get('notifications', 'SettingsController@notifications')->name('settings.notifications');
|
|
||||||
Route::get('privacy', 'SettingsController@privacy')->name('settings.privacy');
|
|
||||||
Route::post('privacy', 'SettingsController@privacyStore');
|
|
||||||
Route::get('privacy/muted-users', 'SettingsController@mutedUsers')->name('settings.privacy.muted-users');
|
|
||||||
Route::post('privacy/muted-users', 'SettingsController@mutedUsersUpdate');
|
|
||||||
Route::get('privacy/blocked-users', 'SettingsController@blockedUsers')->name('settings.privacy.blocked-users');
|
|
||||||
Route::post('privacy/blocked-users', 'SettingsController@blockedUsersUpdate');
|
|
||||||
Route::get('privacy/blocked-instances', 'SettingsController@blockedInstances')->name('settings.privacy.blocked-instances');
|
|
||||||
Route::post('privacy/blocked-instances', 'SettingsController@blockedInstanceStore')->middleware('throttle:maxInstanceBansPerDay,1440');
|
|
||||||
Route::post('privacy/blocked-instances/unblock', 'SettingsController@blockedInstanceUnblock')->name('settings.privacy.blocked-instances.unblock');
|
|
||||||
Route::get('privacy/blocked-keywords', 'SettingsController@blockedKeywords')->name('settings.privacy.blocked-keywords');
|
|
||||||
Route::post('privacy/account', 'SettingsController@privateAccountOptions')->name('settings.privacy.account');
|
|
||||||
Route::get('reports', 'SettingsController@reportsHome')->name('settings.reports');
|
|
||||||
Route::group(['prefix' => 'remove', 'middleware' => 'dangerzone'], function() {
|
|
||||||
Route::get('request/temporary', 'SettingsController@removeAccountTemporary')->name('settings.remove.temporary');
|
|
||||||
Route::post('request/temporary', 'SettingsController@removeAccountTemporarySubmit');
|
|
||||||
Route::get('request/permanent', 'SettingsController@removeAccountPermanent')->name('settings.remove.permanent');
|
|
||||||
Route::post('request/permanent', 'SettingsController@removeAccountPermanentSubmit');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'security', 'middleware' => 'dangerzone'], function() {
|
Route::group(['prefix' => 'account'], function () {
|
||||||
Route::get(
|
Route::redirect('/', '/');
|
||||||
'/',
|
Route::get('direct', 'AccountController@direct');
|
||||||
'SettingsController@security'
|
Route::get('direct/t/{id}', 'AccountController@directMessage');
|
||||||
)->name('settings.security');
|
Route::get('activity', 'AccountController@notifications')->name('notifications');
|
||||||
Route::get(
|
Route::get('follow-requests', 'AccountController@followRequests')->name('follow-requests');
|
||||||
'2fa/setup',
|
Route::post('follow-requests', 'AccountController@followRequestHandle');
|
||||||
'SettingsController@securityTwoFactorSetup'
|
Route::get('follow-requests.json', 'AccountController@followRequestsJson');
|
||||||
)->name('settings.security.2fa.setup');
|
});
|
||||||
Route::post(
|
|
||||||
'2fa/setup',
|
|
||||||
'SettingsController@securityTwoFactorSetupStore'
|
|
||||||
);
|
|
||||||
Route::get(
|
|
||||||
'2fa/edit',
|
|
||||||
'SettingsController@securityTwoFactorEdit'
|
|
||||||
)->name('settings.security.2fa.edit');
|
|
||||||
Route::post(
|
|
||||||
'2fa/edit',
|
|
||||||
'SettingsController@securityTwoFactorUpdate'
|
|
||||||
);
|
|
||||||
Route::get(
|
|
||||||
'2fa/recovery-codes',
|
|
||||||
'SettingsController@securityTwoFactorRecoveryCodes'
|
|
||||||
)->name('settings.security.2fa.recovery');
|
|
||||||
Route::post(
|
|
||||||
'2fa/recovery-codes',
|
|
||||||
'SettingsController@securityTwoFactorRecoveryCodesRegenerate'
|
|
||||||
);
|
|
||||||
|
|
||||||
});
|
Route::group(['prefix' => 'settings'], function () {
|
||||||
|
Route::redirect('/', '/settings/home');
|
||||||
|
Route::get('home', 'SettingsController@home')
|
||||||
|
->name('settings');
|
||||||
|
Route::post('home', 'SettingsController@homeUpdate');
|
||||||
|
Route::get('avatar', 'SettingsController@avatar')->name('settings.avatar');
|
||||||
|
Route::post('avatar', 'AvatarController@store');
|
||||||
|
Route::delete('avatar', 'AvatarController@deleteAvatar');
|
||||||
|
Route::get('password', 'SettingsController@password')->name('settings.password')->middleware('dangerzone');
|
||||||
|
Route::post('password', 'SettingsController@passwordUpdate')->middleware('dangerzone');
|
||||||
|
Route::get('email', 'SettingsController@email')->name('settings.email');
|
||||||
|
Route::post('email', 'SettingsController@emailUpdate');
|
||||||
|
Route::get('notifications', 'SettingsController@notifications')->name('settings.notifications');
|
||||||
|
Route::get('privacy', 'SettingsController@privacy')->name('settings.privacy');
|
||||||
|
Route::post('privacy', 'SettingsController@privacyStore');
|
||||||
|
Route::get('privacy/muted-users', 'SettingsController@mutedUsers')->name('settings.privacy.muted-users');
|
||||||
|
Route::post('privacy/muted-users', 'SettingsController@mutedUsersUpdate');
|
||||||
|
Route::get('privacy/blocked-users', 'SettingsController@blockedUsers')->name('settings.privacy.blocked-users');
|
||||||
|
Route::post('privacy/blocked-users', 'SettingsController@blockedUsersUpdate');
|
||||||
|
Route::get('privacy/blocked-instances', 'SettingsController@blockedInstances')->name('settings.privacy.blocked-instances');
|
||||||
|
Route::post('privacy/blocked-instances', 'SettingsController@blockedInstanceStore')->middleware('throttle:maxInstanceBansPerDay,1440');
|
||||||
|
Route::post('privacy/blocked-instances/unblock', 'SettingsController@blockedInstanceUnblock')->name('settings.privacy.blocked-instances.unblock');
|
||||||
|
Route::get('privacy/blocked-keywords', 'SettingsController@blockedKeywords')->name('settings.privacy.blocked-keywords');
|
||||||
|
Route::post('privacy/account', 'SettingsController@privateAccountOptions')->name('settings.privacy.account');
|
||||||
|
Route::get('reports', 'SettingsController@reportsHome')->name('settings.reports');
|
||||||
|
Route::group(['prefix' => 'remove', 'middleware' => 'dangerzone'], function() {
|
||||||
|
Route::get('request/temporary', 'SettingsController@removeAccountTemporary')->name('settings.remove.temporary');
|
||||||
|
Route::post('request/temporary', 'SettingsController@removeAccountTemporarySubmit');
|
||||||
|
Route::get('request/permanent', 'SettingsController@removeAccountPermanent')->name('settings.remove.permanent');
|
||||||
|
Route::post('request/permanent', 'SettingsController@removeAccountPermanentSubmit');
|
||||||
|
});
|
||||||
|
|
||||||
Route::get('applications', 'SettingsController@applications')->name('settings.applications')->middleware('dangerzone');
|
Route::group(['prefix' => 'security', 'middleware' => 'dangerzone'], function() {
|
||||||
Route::get('data-export', 'SettingsController@dataExport')->name('settings.dataexport')->middleware('dangerzone');
|
Route::get(
|
||||||
Route::post('data-export/following', 'SettingsController@exportFollowing')->middleware('dangerzone');
|
'/',
|
||||||
Route::post('data-export/followers', 'SettingsController@exportFollowers')->middleware('dangerzone');
|
'SettingsController@security'
|
||||||
Route::post('data-export/mute-block-list', 'SettingsController@exportMuteBlockList')->middleware('dangerzone');
|
)->name('settings.security');
|
||||||
Route::post('data-export/account', 'SettingsController@exportAccount')->middleware('dangerzone');
|
Route::get(
|
||||||
Route::post('data-export/statuses', 'SettingsController@exportStatuses')->middleware('dangerzone');
|
'2fa/setup',
|
||||||
Route::get('developers', 'SettingsController@developers')->name('settings.developers')->middleware('dangerzone');
|
'SettingsController@securityTwoFactorSetup'
|
||||||
Route::get('labs', 'SettingsController@labs')->name('settings.labs');
|
)->name('settings.security.2fa.setup');
|
||||||
Route::post('labs', 'SettingsController@labsStore');
|
Route::post(
|
||||||
|
'2fa/setup',
|
||||||
|
'SettingsController@securityTwoFactorSetupStore'
|
||||||
|
);
|
||||||
|
Route::get(
|
||||||
|
'2fa/edit',
|
||||||
|
'SettingsController@securityTwoFactorEdit'
|
||||||
|
)->name('settings.security.2fa.edit');
|
||||||
|
Route::post(
|
||||||
|
'2fa/edit',
|
||||||
|
'SettingsController@securityTwoFactorUpdate'
|
||||||
|
);
|
||||||
|
Route::get(
|
||||||
|
'2fa/recovery-codes',
|
||||||
|
'SettingsController@securityTwoFactorRecoveryCodes'
|
||||||
|
)->name('settings.security.2fa.recovery');
|
||||||
|
Route::post(
|
||||||
|
'2fa/recovery-codes',
|
||||||
|
'SettingsController@securityTwoFactorRecoveryCodesRegenerate'
|
||||||
|
);
|
||||||
|
|
||||||
Route::get('accessibility', 'SettingsController@accessibility')->name('settings.accessibility');
|
});
|
||||||
Route::post('accessibility', 'SettingsController@accessibilityStore');
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'relationships'], function() {
|
Route::get('applications', 'SettingsController@applications')->name('settings.applications')->middleware('dangerzone');
|
||||||
Route::redirect('/', '/settings/relationships/home');
|
Route::get('data-export', 'SettingsController@dataExport')->name('settings.dataexport')->middleware('dangerzone');
|
||||||
Route::get('home', 'SettingsController@relationshipsHome')->name('settings.relationships');
|
Route::post('data-export/following', 'SettingsController@exportFollowing')->middleware('dangerzone');
|
||||||
});
|
Route::post('data-export/followers', 'SettingsController@exportFollowers')->middleware('dangerzone');
|
||||||
Route::get('invites/create', 'UserInviteController@create')->name('settings.invites.create');
|
Route::post('data-export/mute-block-list', 'SettingsController@exportMuteBlockList')->middleware('dangerzone');
|
||||||
Route::post('invites/create', 'UserInviteController@store');
|
Route::post('data-export/account', 'SettingsController@exportAccount')->middleware('dangerzone');
|
||||||
Route::get('invites', 'UserInviteController@show')->name('settings.invites');
|
Route::post('data-export/statuses', 'SettingsController@exportStatuses')->middleware('dangerzone');
|
||||||
// Route::get('sponsor', 'SettingsController@sponsor')->name('settings.sponsor');
|
Route::get('developers', 'SettingsController@developers')->name('settings.developers')->middleware('dangerzone');
|
||||||
// Route::post('sponsor', 'SettingsController@sponsorStore');
|
Route::get('labs', 'SettingsController@labs')->name('settings.labs');
|
||||||
Route::prefix('import')->group(function() {
|
Route::post('labs', 'SettingsController@labsStore');
|
||||||
Route::get('/', 'SettingsController@dataImport')->name('settings.import');
|
|
||||||
Route::prefix('instagram')->group(function() {
|
|
||||||
Route::get('/', 'ImportController@instagram')->name('settings.import.ig');
|
|
||||||
Route::post('/', 'ImportController@instagramStart');
|
|
||||||
});
|
|
||||||
Route::prefix('mastodon')->group(function() {
|
|
||||||
Route::get('/', 'ImportController@mastodon')->name('settings.import.mastodon');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'site'], function () {
|
Route::get('accessibility', 'SettingsController@accessibility')->name('settings.accessibility');
|
||||||
Route::redirect('/', '/');
|
Route::post('accessibility', 'SettingsController@accessibilityStore');
|
||||||
Route::get('about', 'SiteController@about')->name('site.about');
|
|
||||||
Route::view('help', 'site.help')->name('site.help');
|
|
||||||
Route::view('developer-api', 'site.developer')->name('site.developers');
|
|
||||||
Route::view('fediverse', 'site.fediverse')->name('site.fediverse');
|
|
||||||
Route::view('open-source', 'site.opensource')->name('site.opensource');
|
|
||||||
Route::view('banned-instances', 'site.bannedinstances')->name('site.bannedinstances');
|
|
||||||
Route::get('terms', 'SiteController@terms')->name('site.terms');
|
|
||||||
Route::get('privacy', 'SiteController@privacy')->name('site.privacy');
|
|
||||||
Route::view('platform', 'site.platform')->name('site.platform');
|
|
||||||
Route::view('language', 'site.language')->name('site.language');
|
|
||||||
Route::get('contact', 'ContactController@show')->name('site.contact');
|
|
||||||
Route::post('contact', 'ContactController@store');
|
|
||||||
Route::group(['prefix'=>'kb'], function() {
|
|
||||||
Route::view('getting-started', 'site.help.getting-started')->name('help.getting-started');
|
|
||||||
Route::view('sharing-media', 'site.help.sharing-media')->name('help.sharing-media');
|
|
||||||
Route::view('your-profile', 'site.help.your-profile')->name('help.your-profile');
|
|
||||||
Route::view('stories', 'site.help.stories')->name('help.stories');
|
|
||||||
Route::view('embed', 'site.help.embed')->name('help.embed');
|
|
||||||
Route::view('hashtags', 'site.help.hashtags')->name('help.hashtags');
|
|
||||||
Route::view('instance-actor', 'site.help.instance-actor')->name('help.instance-actor');
|
|
||||||
Route::view('discover', 'site.help.discover')->name('help.discover');
|
|
||||||
Route::view('direct-messages', 'site.help.dm')->name('help.dm');
|
|
||||||
Route::view('timelines', 'site.help.timelines')->name('help.timelines');
|
|
||||||
Route::view('what-is-the-fediverse', 'site.help.what-is-fediverse')->name('help.what-is-fediverse');
|
|
||||||
Route::view('safety-tips', 'site.help.safety-tips')->name('help.safety-tips');
|
|
||||||
|
|
||||||
Route::get('community-guidelines', 'SiteController@communityGuidelines')->name('help.community-guidelines');
|
Route::group(['prefix' => 'relationships'], function() {
|
||||||
Route::view('controlling-visibility', 'site.help.controlling-visibility')->name('help.controlling-visibility');
|
Route::redirect('/', '/settings/relationships/home');
|
||||||
Route::view('blocking-accounts', 'site.help.blocking-accounts')->name('help.blocking-accounts');
|
Route::get('home', 'SettingsController@relationshipsHome')->name('settings.relationships');
|
||||||
Route::view('report-something', 'site.help.report-something')->name('help.report-something');
|
});
|
||||||
Route::view('data-policy', 'site.help.data-policy')->name('help.data-policy');
|
Route::get('invites/create', 'UserInviteController@create')->name('settings.invites.create');
|
||||||
Route::view('labs-deprecation', 'site.help.labs-deprecation')->name('help.labs-deprecation');
|
Route::post('invites/create', 'UserInviteController@store');
|
||||||
Route::view('tagging-people', 'site.help.tagging-people')->name('help.tagging-people');
|
Route::get('invites', 'UserInviteController@show')->name('settings.invites');
|
||||||
});
|
// Route::get('sponsor', 'SettingsController@sponsor')->name('settings.sponsor');
|
||||||
Route::get('newsroom/{year}/{month}/{slug}', 'NewsroomController@show');
|
// Route::post('sponsor', 'SettingsController@sponsorStore');
|
||||||
Route::get('newsroom/archive', 'NewsroomController@archive');
|
Route::prefix('import')->group(function() {
|
||||||
Route::get('newsroom/search', 'NewsroomController@search');
|
Route::get('/', 'SettingsController@dataImport')->name('settings.import');
|
||||||
Route::get('newsroom', 'NewsroomController@index');
|
Route::prefix('instagram')->group(function() {
|
||||||
});
|
Route::get('/', 'ImportController@instagram')->name('settings.import.ig');
|
||||||
|
Route::post('/', 'ImportController@instagramStart');
|
||||||
|
});
|
||||||
|
Route::prefix('mastodon')->group(function() {
|
||||||
|
Route::get('/', 'ImportController@mastodon')->name('settings.import.mastodon');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'timeline'], function () {
|
Route::group(['prefix' => 'site'], function () {
|
||||||
Route::redirect('/', '/');
|
Route::redirect('/', '/');
|
||||||
Route::get('public', 'TimelineController@local')->name('timeline.public');
|
Route::get('about', 'SiteController@about')->name('site.about');
|
||||||
});
|
Route::view('help', 'site.help')->name('site.help');
|
||||||
|
Route::view('developer-api', 'site.developer')->name('site.developers');
|
||||||
|
Route::view('fediverse', 'site.fediverse')->name('site.fediverse');
|
||||||
|
Route::view('open-source', 'site.opensource')->name('site.opensource');
|
||||||
|
Route::view('banned-instances', 'site.bannedinstances')->name('site.bannedinstances');
|
||||||
|
Route::get('terms', 'SiteController@terms')->name('site.terms');
|
||||||
|
Route::get('privacy', 'SiteController@privacy')->name('site.privacy');
|
||||||
|
Route::view('platform', 'site.platform')->name('site.platform');
|
||||||
|
Route::view('language', 'site.language')->name('site.language');
|
||||||
|
Route::get('contact', 'ContactController@show')->name('site.contact');
|
||||||
|
Route::post('contact', 'ContactController@store');
|
||||||
|
Route::group(['prefix'=>'kb'], function() {
|
||||||
|
Route::view('getting-started', 'site.help.getting-started')->name('help.getting-started');
|
||||||
|
Route::view('sharing-media', 'site.help.sharing-media')->name('help.sharing-media');
|
||||||
|
Route::view('your-profile', 'site.help.your-profile')->name('help.your-profile');
|
||||||
|
Route::view('stories', 'site.help.stories')->name('help.stories');
|
||||||
|
Route::view('embed', 'site.help.embed')->name('help.embed');
|
||||||
|
Route::view('hashtags', 'site.help.hashtags')->name('help.hashtags');
|
||||||
|
Route::view('instance-actor', 'site.help.instance-actor')->name('help.instance-actor');
|
||||||
|
Route::view('discover', 'site.help.discover')->name('help.discover');
|
||||||
|
Route::view('direct-messages', 'site.help.dm')->name('help.dm');
|
||||||
|
Route::view('timelines', 'site.help.timelines')->name('help.timelines');
|
||||||
|
Route::view('what-is-the-fediverse', 'site.help.what-is-fediverse')->name('help.what-is-fediverse');
|
||||||
|
Route::view('safety-tips', 'site.help.safety-tips')->name('help.safety-tips');
|
||||||
|
|
||||||
Route::group(['prefix' => 'users'], function () {
|
Route::get('community-guidelines', 'SiteController@communityGuidelines')->name('help.community-guidelines');
|
||||||
Route::redirect('/', '/');
|
Route::view('controlling-visibility', 'site.help.controlling-visibility')->name('help.controlling-visibility');
|
||||||
Route::get('{user}.atom', 'ProfileController@showAtomFeed');
|
Route::view('blocking-accounts', 'site.help.blocking-accounts')->name('help.blocking-accounts');
|
||||||
Route::get('{username}/outbox', 'FederationController@userOutbox');
|
Route::view('report-something', 'site.help.report-something')->name('help.report-something');
|
||||||
Route::get('{username}/followers', 'FederationController@userFollowers');
|
Route::view('data-policy', 'site.help.data-policy')->name('help.data-policy');
|
||||||
Route::get('{username}/following', 'FederationController@userFollowing');
|
Route::view('labs-deprecation', 'site.help.labs-deprecation')->name('help.labs-deprecation');
|
||||||
Route::get('{username}', 'ProfileController@permalinkRedirect');
|
Route::view('tagging-people', 'site.help.tagging-people')->name('help.tagging-people');
|
||||||
});
|
});
|
||||||
|
Route::get('newsroom/{year}/{month}/{slug}', 'NewsroomController@show');
|
||||||
|
Route::get('newsroom/archive', 'NewsroomController@archive');
|
||||||
|
Route::get('newsroom/search', 'NewsroomController@search');
|
||||||
|
Route::get('newsroom', 'NewsroomController@index');
|
||||||
|
});
|
||||||
|
|
||||||
Route::get('stories/{username}', 'ProfileController@stories');
|
Route::group(['prefix' => 'timeline'], function () {
|
||||||
Route::get('p/{id}', 'StatusController@shortcodeRedirect');
|
Route::redirect('/', '/');
|
||||||
Route::get('c/{collection}', 'CollectionController@show');
|
Route::get('public', 'TimelineController@local')->name('timeline.public');
|
||||||
Route::get('p/{username}/{id}/c', 'CommentController@showAll');
|
Route::get('network', 'TimelineController@network')->name('timeline.network');
|
||||||
Route::get('p/{username}/{id}/embed', 'StatusController@showEmbed');
|
});
|
||||||
Route::get('p/{username}/{id}/edit', 'StatusController@edit');
|
|
||||||
Route::post('p/{username}/{id}/edit', 'StatusController@editStore')->middleware('throttle:maxPostEditsPerHour,60')->middleware('throttle:maxPostEditsPerDay,1440');
|
Route::group(['prefix' => 'users'], function () {
|
||||||
Route::get('p/{username}/{id}.json', 'StatusController@showObject');
|
Route::redirect('/', '/');
|
||||||
Route::get('p/{username}/{id}', 'StatusController@show');
|
Route::get('{user}.atom', 'ProfileController@showAtomFeed');
|
||||||
Route::get('{username}/embed', 'ProfileController@embed');
|
Route::get('{username}/outbox', 'FederationController@userOutbox');
|
||||||
Route::get('@{username}', 'SiteController@legacyProfileRedirect');
|
Route::get('{username}/followers', 'FederationController@userFollowers');
|
||||||
Route::get('{username}', 'ProfileController@show');
|
Route::get('{username}/following', 'FederationController@userFollowing');
|
||||||
|
Route::get('{username}', 'ProfileController@permalinkRedirect');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::get('stories/{username}', 'ProfileController@stories');
|
||||||
|
Route::get('p/{id}', 'StatusController@shortcodeRedirect');
|
||||||
|
Route::get('c/{collection}', 'CollectionController@show');
|
||||||
|
Route::get('p/{username}/{id}/c', 'CommentController@showAll');
|
||||||
|
Route::get('p/{username}/{id}/embed', 'StatusController@showEmbed');
|
||||||
|
Route::get('p/{username}/{id}/edit', 'StatusController@edit');
|
||||||
|
Route::post('p/{username}/{id}/edit', 'StatusController@editStore')->middleware('throttle:maxPostEditsPerHour,60')->middleware('throttle:maxPostEditsPerDay,1440');
|
||||||
|
Route::get('p/{username}/{id}.json', 'StatusController@showObject');
|
||||||
|
Route::get('p/{username}/{id}', 'StatusController@show');
|
||||||
|
Route::get('{username}/embed', 'ProfileController@embed');
|
||||||
|
Route::get('@{username}', 'SiteController@legacyProfileRedirect');
|
||||||
|
Route::get('{username}', 'ProfileController@show');
|
||||||
});
|
});
|
||||||
|
|
23
webpack.mix.js
vendored
23
webpack.mix.js
vendored
|
@ -1,17 +1,9 @@
|
||||||
let mix = require('laravel-mix');
|
let mix = require('laravel-mix');
|
||||||
|
|
||||||
mix.sass('resources/assets/sass/app.scss', 'public/css', {
|
mix.sass('resources/assets/sass/app.scss', 'public/css')
|
||||||
implementation: require('node-sass')
|
.sass('resources/assets/sass/appdark.scss', 'public/css')
|
||||||
})
|
.sass('resources/assets/sass/landing.scss', 'public/css')
|
||||||
.sass('resources/assets/sass/appdark.scss', 'public/css', {
|
.sass('resources/assets/sass/quill.scss', 'public/css').version();
|
||||||
implementation: require('node-sass')
|
|
||||||
})
|
|
||||||
.sass('resources/assets/sass/landing.scss', 'public/css', {
|
|
||||||
implementation: require('node-sass')
|
|
||||||
})
|
|
||||||
.sass('resources/assets/sass/quill.scss', 'public/css', {
|
|
||||||
implementation: require('node-sass')
|
|
||||||
}).version();
|
|
||||||
|
|
||||||
mix.js('resources/assets/js/app.js', 'public/js')
|
mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
.js('resources/assets/js/activity.js', 'public/js')
|
.js('resources/assets/js/activity.js', 'public/js')
|
||||||
|
@ -41,6 +33,11 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
.js('resources/assets/js/rempro.js', 'public/js')
|
.js('resources/assets/js/rempro.js', 'public/js')
|
||||||
.js('resources/assets/js/rempos.js', 'public/js')
|
.js('resources/assets/js/rempos.js', 'public/js')
|
||||||
//.js('resources/assets/js/timeline_next.js', 'public/js')
|
//.js('resources/assets/js/timeline_next.js', 'public/js')
|
||||||
|
// .js('resources/assets/js/memoryprofile.js', 'public/js')
|
||||||
|
// .js('resources/assets/js/my2020.js', 'public/js')
|
||||||
|
.js('resources/assets/js/network-timeline.js', 'public/js')
|
||||||
|
// .js('resources/assets/js/drive.js', 'public/js')
|
||||||
|
// .js('resources/assets/js/register.js', 'public/js')
|
||||||
|
|
||||||
.extract([
|
.extract([
|
||||||
'lodash',
|
'lodash',
|
||||||
|
@ -49,6 +46,6 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
'axios',
|
'axios',
|
||||||
'bootstrap',
|
'bootstrap',
|
||||||
'vue',
|
'vue',
|
||||||
'readmore-js'
|
'readmore-js'
|
||||||
])
|
])
|
||||||
.version();
|
.version();
|
||||||
|
|
Loading…
Reference in a new issue