visuddhinanda преди 2 години
родител
ревизия
fd3f14926a
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      app/Http/Resources/SentResource.php

+ 3 - 1
app/Http/Resources/SentResource.php

@@ -58,7 +58,9 @@ class SentResource extends JsonResource
                                              null,
                                              $mode,
                                              $channel['type'],
-                                             $this->content_type);
+                                             $this->content_type,
+                                             $request->get('format','react')
+                                            );
         }
         if($request->get('mode') === "edit" || $request->get('mode') === "wbw"){
             $data['suggestionCount'] = SuggestionApi::getCountBySent($this->book_id,