]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Replace "id = parent" checks with "gravity" checks
[friendica.git] / mod / photos.php
index 7a647e06b94ef64f2440fe14802b2496375c0bb4..7b74a39dd8d3fb75b878f32cf38ac52861a8c3fc 100644 (file)
@@ -1456,7 +1456,7 @@ function photos_content(App $a)
 
                                        if (($activity->match($item['verb'], Activity::LIKE) ||
                                             $activity->match($item['verb'], Activity::DISLIKE)) &&
-                                           ($item['id'] != $item['parent'])) {
+                                           ($item['gravity'] != GRAVITY_PARENT)) {
                                                continue;
                                        }