mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 00:02:05 -04:00
CreatorStudio tags redesign and fix
This commit is contained in:
@@ -1160,11 +1160,9 @@ class StudioPlusVideoController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function saveTags(Request $request, StudioPlusChannel $studioPlusChannel, StudioPlusVideo $studioPlusVideo)
|
||||
public function savePrimaryTags(Request $request, StudioPlusChannel $studioPlusChannel, StudioPlusVideo $studioPlusVideo)
|
||||
{
|
||||
if ($studioPlusVideo) {
|
||||
$studioPlusVideo->tags = json_encode($request->tags);
|
||||
$studioPlusVideo->update();
|
||||
|
||||
if ($request->has('youtube')) {
|
||||
$meta = StudioPlusVideoMeta::where('studioplus_video_id', $studioPlusVideo->id)->where('name', 'youtube')->first();
|
||||
@@ -1203,7 +1201,23 @@ class StudioPlusVideoController extends Controller
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Video tags has been saved.'
|
||||
'message' => 'Video primary tags has been saved.'
|
||||
]);
|
||||
}
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Video not found.'
|
||||
], 404);
|
||||
}
|
||||
|
||||
public function saveCustomTags(Request $request, StudioPlusChannel $studioPlusChannel, StudioPlusVideo $studioPlusVideo)
|
||||
{
|
||||
if ($studioPlusVideo) {
|
||||
$studioPlusVideo->tags = json_encode($request->tags);
|
||||
$studioPlusVideo->update();
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Video custom tags has been saved.'
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user