]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Merge pull request #9843 from annando/no-filetag
[friendica.git] / mod / photos.php
index b999eec3867d3fc9c33631d0c08498fcbde69664..71e32d4de4046cffb539328aee7e7aae8a132cc3 100644 (file)
@@ -1266,7 +1266,7 @@ function photos_content(App $a)
                // as a "post" but displaying instead the photo it is linked to
 
                /// @todo Rewrite this query. To do so, $sql_extra must be changed
-               $linked_items = q("SELECT `id` FROM `item` WHERE `resource-id` = '%s' $sql_extra LIMIT 1",
+               $linked_items = q("SELECT `id` FROM `post-view` WHERE `resource-id` = '%s' $sql_extra LIMIT 1",
                        DBA::escape($datum)
                );
                if (DBA::isResult($linked_items)) {