Merge pull request #1843 from pixelfed/staging

Staging
This commit is contained in:
daniel 2019-11-27 19:21:17 -07:00 committed by GitHub
commit 3eb9e00311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 11 deletions

View file

@ -14,16 +14,16 @@ class AccountService {
public static function get($id) public static function get($id)
{ {
$key = self::CACHE_KEY . ':' . $id; // $key = self::CACHE_KEY . ':' . $id;
$ttl = now()->addHours(12); // $ttl = now()->addSeconds(10);
// return Cache::remember($key, $ttl, function() use($id) {
// });
return Cache::remember($key, $ttl, function() use($id) {
$fractal = new Fractal\Manager(); $fractal = new Fractal\Manager();
$fractal->setSerializer(new ArraySerializer()); $fractal->setSerializer(new ArraySerializer());
$profile = Profile::whereNull('status')->findOrFail($id); $profile = Profile::whereNull('status')->findOrFail($id);
$resource = new Fractal\Resource\Item($profile, new AccountTransformer()); $resource = new Fractal\Resource\Item($profile, new AccountTransformer());
return $fractal->createData($resource)->toArray(); return $fractal->createData($resource)->toArray();
});
} }
} }

View file

@ -0,0 +1,17 @@
<?php
return [
'search' => 'S&oslash;g',
'home' => 'Hvem',
'local' => 'Lokalt',
'network' => 'Netv&aelig;rk',
'discover' => 'Opdag',
'viewMyProfile' => 'Se min profil',
'myProfile' => 'Min Profil',
'myTimeline' => 'Min Tidslinje',
'publicTimeline' => 'Offentlig Tidslinje',
'remoteFollow' => 'Remote Follow',
'settings' => 'Indstillinger',
'admin' => 'Admin',
'logout' => 'Log ud',
'directMessages' => 'Direkte Beskeder',
];

View file

@ -3,5 +3,10 @@
return [ return [
'likedPhoto' => 'syntes om dit billede.', 'likedPhoto' => 'syntes om dit billede.',
'likedComment' => 'Syntes om din kommentar.',
'startedFollowingYou' => 'f&oslash;lger dig nu.',
'commented' => 'har kommenteret på dit opslag.',
'mentionedYou' => 'har n&aelig;vnt dig.',
'shared' => 'har delt dit opslag.',
]; ];

View file

@ -13,4 +13,5 @@ return [
'contact' => 'Contact', 'contact' => 'Contact',
'contact-us' => 'Neem contact op', 'contact-us' => 'Neem contact op',
'places' => 'Places', 'places' => 'Places',
'profiles' => 'Profielen',
]; ];