mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
17 lines
388 B
PHP
17 lines
388 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Services;
|
||
|
|
||
|
use App\Bookmark;
|
||
|
use Illuminate\Support\Facades\Cache;
|
||
|
|
||
|
class BookmarkService
|
||
|
{
|
||
|
public static function get($profileId, $statusId)
|
||
|
{
|
||
|
// return Cache::remember('pf:bookmarks:' . $profileId . ':' . $statusId, 84600, function() use($profileId, $statusId) {
|
||
|
return Bookmark::whereProfileId($profileId)->whereStatusId($statusId)->exists();
|
||
|
// });
|
||
|
}
|
||
|
}
|