Просмотр исходного кода

Merge pull request #20 from jblanked/dev_1.0

flip/unflip as intended
JBlanked 1 год назад
Родитель
Сommit
47fba8d6fd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      feed/flip_social_feed.c

+ 1 - 1
feed/flip_social_feed.c

@@ -163,7 +163,7 @@ bool flip_social_load_feed_post(int post_id)
     snprintf(flip_feed_item->date_created, MAX_LINE_LENGTH, "%s", furi_string_get_cstr(date_created));
     snprintf(flip_feed_item->date_created, MAX_LINE_LENGTH, "%s", furi_string_get_cstr(date_created));
 
 
     // Store boolean and integer values
     // Store boolean and integer values
-    flip_feed_item->is_flipped = strstr(furi_string_get_cstr(flipped), "true") != NULL;
+    flip_feed_item->is_flipped = strstr(furi_string_get_cstr(flipped), "true") ? true : false;
     flip_feed_item->id = post_id;
     flip_feed_item->id = post_id;
     flip_feed_item->flips = atoi(furi_string_get_cstr(flips));
     flip_feed_item->flips = atoi(furi_string_get_cstr(flips));