1
0
Fork 0
forked from mirror/pixelfed
This commit is contained in:
Pierre Jaury 2018-08-19 19:59:32 +02:00
commit 0c88b28f5d
4 changed files with 15 additions and 2 deletions

View file

@ -20,6 +20,7 @@ class TimelineController extends Controller
$following->push(Auth::user()->profile->id); $following->push(Auth::user()->profile->id);
$timeline = Status::whereIn('profile_id', $following) $timeline = Status::whereIn('profile_id', $following)
->orderBy('id','desc') ->orderBy('id','desc')
->withCount(['comments', 'likes'])
->simplePaginate(20); ->simplePaginate(20);
$type = 'personal'; $type = 'personal';
return view('timeline.template', compact('timeline', 'type')); return view('timeline.template', compact('timeline', 'type'));
@ -31,6 +32,7 @@ class TimelineController extends Controller
// $timeline = Timeline::build()->local(); // $timeline = Timeline::build()->local();
$timeline = Status::whereHas('media') $timeline = Status::whereHas('media')
->whereNull('in_reply_to_id') ->whereNull('in_reply_to_id')
->withCount(['comments', 'likes'])
->orderBy('id','desc') ->orderBy('id','desc')
->simplePaginate(20); ->simplePaginate(20);
$type = 'local'; $type = 'local';

View file

@ -17,7 +17,6 @@ class RestrictedNames {
"contact-us", "contact-us",
"contact_us", "contact_us",
"copyright", "copyright",
"css",
"d", "d",
"dashboard", "dashboard",
"dev", "dev",
@ -52,7 +51,6 @@ class RestrictedNames {
"is", "is",
"isatap", "isatap",
"it", "it",
"js",
"localdomain", "localdomain",
"localhost", "localhost",
"mail", "mail",
@ -127,24 +125,35 @@ class RestrictedNames {
"account", "account",
"api", "api",
"auth", "auth",
"css",
"c",
"i", "i",
"dashboard", "dashboard",
"deck",
"discover", "discover",
"docs", "docs",
"fonts",
"home", "home",
"img",
"js",
"login", "login",
"logout", "logout",
"media", "media",
"p", "p",
"password", "password",
"report",
"reports", "reports",
"search", "search",
"settings", "settings",
"statuses", "statuses",
"site", "site",
"sites",
"timeline", "timeline",
"timelines",
"tour",
"user", "user",
"users", "users",
"vendor",
"400", "400",
"401", "401",
"403", "403",

View file

@ -9,5 +9,6 @@ return [
'settings' => 'Paramètres', 'settings' => 'Paramètres',
'admin' => 'Admin', 'admin' => 'Admin',
'logout' => 'Desconnexion', 'logout' => 'Desconnexion',
'directMessages' => 'Messatges dirèctes',
]; ];

View file

@ -4,5 +4,6 @@ return [
'emptyTimeline' => 'Aqueste utilizaire a pas encara de publicacion!', 'emptyTimeline' => 'Aqueste utilizaire a pas encara de publicacion!',
'emptyFollowers' => 'Aqueste utilizaire a pas encara pas seguidors!', 'emptyFollowers' => 'Aqueste utilizaire a pas encara pas seguidors!',
'emptyFollowing' => 'Aqueste utilizaire sèc degun pel moment!', 'emptyFollowing' => 'Aqueste utilizaire sèc degun pel moment!',
'emptySaved' => 'Avètz cap de publicacion salvagardas pel moment !',
'savedWarning' => 'Solament vos vesètz çò que salvagardatz', 'savedWarning' => 'Solament vos vesètz çò que salvagardatz',
]; ];