kopia lustrzana https://github.com/pixelfed/pixelfed
Update StatusService, fix json bug
rodzic
3a428366fb
commit
1ea2db74b2
|
@ -2,9 +2,11 @@
|
|||
|
||||
namespace App\Services;
|
||||
|
||||
use Redis;
|
||||
use Illuminate\Support\Facades\Redis;
|
||||
use App\Status;
|
||||
//use App\Transformer\Api\v3\StatusTransformer;
|
||||
use App\Transformer\Api\StatusStatelessTransformer;
|
||||
use App\Transformer\Api\StatusTransformer;
|
||||
use League\Fractal;
|
||||
use League\Fractal\Serializer\ArraySerializer;
|
||||
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
|
||||
|
@ -15,7 +17,7 @@ class StatusService {
|
|||
|
||||
public static function get($id)
|
||||
{
|
||||
return Redis::get(self::CACHE_KEY . $id) ?? self::coldGet($id);
|
||||
return json_decode(Redis::get(self::CACHE_KEY . $id) ?? self::coldGet($id));
|
||||
}
|
||||
|
||||
public static function coldGet($id)
|
||||
|
|
Ładowanie…
Reference in New Issue