This commit is contained in:
2026-06-13 17:20:42 +03:30
parent 12fc305045
commit 3a2a27be98
5 changed files with 98 additions and 24 deletions
+2 -10
View File
@@ -89,14 +89,6 @@ public function getUrlAttribute()
return $this->external_url;
}
public function getIsSavedAttribute()
{
if (!auth()->check()) return false;
return $this->savedBy()
->where('user_id', auth()->id())
->exists();
}
// is_saved / saved_count come from the HasSaves trait (saved_items table),
// so the /saves/* endpoints and the media list/show all agree.
}