Unverified Commit 68703009 authored by daniel's avatar daniel Committed by GitHub
Browse files

Merge pull request #2909 from pixelfed/staging

Update AccountService, fix status bug
parents 82c5e74f 9e630851
......@@ -25,7 +25,7 @@ class AccountService
return Cache::remember($key, $ttl, function() use($id) {
$fractal = new Fractal\Manager();
$fractal->setSerializer(new ArraySerializer());
$profile = Profile::whereNull('status')->findOrFail($id);
$profile = Profile::findOrFail($id);
$resource = new Fractal\Resource\Item($profile, new AccountTransformer());
return $fractal->createData($resource)->toArray();
});
......
......@@ -18,7 +18,7 @@ class StatusService {
public static function key($id, $publicOnly = true)
{
$p = $publicOnly ? '' : 'all:';
$p = $publicOnly ? 'pub:' : 'all:';
return self::CACHE_KEY . $p . $id;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment