]> cat aescling's git repositories - mastodon.git/commitdiff
Fix mistake
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 23 Jan 2017 21:18:08 +0000 (22:18 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 23 Jan 2017 21:18:08 +0000 (22:18 +0100)
app/assets/javascripts/components/actions/cards.jsx

index 714e805255e1ce27e087f49112157fd26cd3cdde..845d15e9347d277012a6613b0162d7595436718b 100644 (file)
@@ -9,7 +9,7 @@ export function fetchStatusCard(id) {
     dispatch(fetchStatusCardRequest(id));
 
     api(getState).get(`/api/v1/statuses/${id}/card`).then(response => {
-      if (response.data.length === 0) {
+      if (!response.data.url) {
         return;
       }