mirror of https://github.com/pixelfed/pixelfed
Add BookmarkService
parent
c0b1e0427e
commit
0157566c25
@ -0,0 +1,16 @@
|
||||
<?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();
|
||||
// });
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue