diff --git a/app/Services/AccountService.php b/app/Services/AccountService.php index e14aadf80..2ef8a6215 100644 --- a/app/Services/AccountService.php +++ b/app/Services/AccountService.php @@ -14,16 +14,16 @@ class AccountService { public static function get($id) { - $key = self::CACHE_KEY . ':' . $id; - $ttl = now()->addHours(12); - - return Cache::remember($key, $ttl, function() use($id) { - $fractal = new Fractal\Manager(); - $fractal->setSerializer(new ArraySerializer()); - $profile = Profile::whereNull('status')->findOrFail($id); - $resource = new Fractal\Resource\Item($profile, new AccountTransformer()); - return $fractal->createData($resource)->toArray(); - }); + // $key = self::CACHE_KEY . ':' . $id; + // $ttl = now()->addSeconds(10); + // return Cache::remember($key, $ttl, function() use($id) { + // }); + + $fractal = new Fractal\Manager(); + $fractal->setSerializer(new ArraySerializer()); + $profile = Profile::whereNull('status')->findOrFail($id); + $resource = new Fractal\Resource\Item($profile, new AccountTransformer()); + return $fractal->createData($resource)->toArray(); } } \ No newline at end of file diff --git a/resources/lang/da/navmenu.php b/resources/lang/da/navmenu.php new file mode 100644 index 000000000..4cd0ecb9f --- /dev/null +++ b/resources/lang/da/navmenu.php @@ -0,0 +1,17 @@ + 'Søg', + 'home' => 'Hvem', + 'local' => 'Lokalt', + 'network' => 'Netvæ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', +]; diff --git a/resources/lang/da/notification.php b/resources/lang/da/notification.php index 5410a77e6..f2192f845 100644 --- a/resources/lang/da/notification.php +++ b/resources/lang/da/notification.php @@ -2,6 +2,11 @@ return [ - 'likedPhoto' => 'syntes om dit billede.', + 'likedPhoto' => 'syntes om dit billede.', + 'likedComment' => 'Syntes om din kommentar.', + 'startedFollowingYou' => 'følger dig nu.', + 'commented' => 'har kommenteret på dit opslag.', + 'mentionedYou' => 'har nævnt dig.', + 'shared' => 'har delt dit opslag.', ]; diff --git a/resources/lang/nl/site.php b/resources/lang/nl/site.php index de13d2f18..5a656ec04 100644 --- a/resources/lang/nl/site.php +++ b/resources/lang/nl/site.php @@ -13,4 +13,5 @@ return [ 'contact' => 'Contact', 'contact-us' => 'Neem contact op', 'places' => 'Places', + 'profiles' => 'Profielen', ];