mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-19 13:01:26 +00:00
Merge pull request #4167 from pixelfed/staging
Update ApiV1Controller, add Redis facade
This commit is contained in:
commit
4a1cbb8051
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ use App\Util\ActivityPub\Helpers;
|
|||
use App\Util\Media\Filter;
|
||||
use Laravel\Passport\Passport;
|
||||
use Auth, Cache, DB, Storage, URL;
|
||||
use Illuminate\Support\Facades\Redis;
|
||||
use App\{
|
||||
Avatar,
|
||||
Bookmark,
|
||||
|
|
|
@ -472,9 +472,9 @@ class PublicApiController extends Controller
|
|||
// $types = ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album', 'text'];
|
||||
|
||||
$textOnlyReplies = false;
|
||||
$textOnlyReplies = (bool) Redis::zscore('pf:tl:replies', $pid);
|
||||
|
||||
if(config('exp.top')) {
|
||||
$textOnlyReplies = (bool) Redis::zscore('pf:tl:replies', $pid);
|
||||
$textOnlyPosts = (bool) Redis::zscore('pf:tl:top', $pid);
|
||||
|
||||
if($textOnlyPosts) {
|
||||
|
|
Loading…
Reference in a new issue