about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/actions/search.js')
-rw-r--r--app/javascript/mastodon/actions/search.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js
index df3ae0db1..78c6109f7 100644
--- a/app/javascript/mastodon/actions/search.js
+++ b/app/javascript/mastodon/actions/search.js
@@ -1,4 +1,4 @@
-import api from '../api'
+import api from '../api';
 
 export const SEARCH_CHANGE = 'SEARCH_CHANGE';
 export const SEARCH_CLEAR  = 'SEARCH_CLEAR';
@@ -11,13 +11,13 @@ export const SEARCH_FETCH_FAIL    = 'SEARCH_FETCH_FAIL';
 export function changeSearch(value) {
   return {
     type: SEARCH_CHANGE,
-    value
+    value,
   };
 };
 
 export function clearSearch() {
   return {
-    type: SEARCH_CLEAR
+    type: SEARCH_CLEAR,
   };
 };
 
@@ -34,8 +34,8 @@ export function submitSearch() {
     api(getState).get('/api/v1/search', {
       params: {
         q: value,
-        resolve: true
-      }
+        resolve: true,
+      },
     }).then(response => {
       dispatch(fetchSearchSuccess(response.data));
     }).catch(error => {
@@ -46,7 +46,7 @@ export function submitSearch() {
 
 export function fetchSearchRequest() {
   return {
-    type: SEARCH_FETCH_REQUEST
+    type: SEARCH_FETCH_REQUEST,
   };
 };
 
@@ -55,19 +55,19 @@ export function fetchSearchSuccess(results) {
     type: SEARCH_FETCH_SUCCESS,
     results,
     accounts: results.accounts,
-    statuses: results.statuses
+    statuses: results.statuses,
   };
 };
 
 export function fetchSearchFail(error) {
   return {
     type: SEARCH_FETCH_FAIL,
-    error
+    error,
   };
 };
 
 export function showSearch() {
   return {
-    type: SEARCH_SHOW
+    type: SEARCH_SHOW,
   };
 };