]> git.mxchange.org Git - friendica.git/commitdiff
Fix test
authorMichael <heluecht@pirati.ca>
Sat, 9 Oct 2021 21:30:14 +0000 (21:30 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 Oct 2021 21:30:14 +0000 (21:30 +0000)
include/api.php

index 9a3d577e56fd3e70a5896d3dad16e898bdefdd8b..211c2f6ecc01ab53f7a2c6c89f38b65473f559ed 100644 (file)
@@ -4769,13 +4769,12 @@ function prepare_photo_data($type, $scale, $photo_id)
        // added allow_cid, allow_gid, deny_cid, deny_gid to output as string like stored in database
        // clients needs to convert this in their way for further processing
        $r = DBA::toArray(DBA::p(
-               "SELECT %s `resource-id`, `created`, `edited`, `title`, `desc`, `album`, `filename`,
+               "SELECT $data_sql `resource-id`, `created`, `edited`, `title`, `desc`, `album`, `filename`,
                                        `type`, `height`, `width`, `datasize`, `profile`, `allow_cid`, `deny_cid`, `allow_gid`, `deny_gid`,
                                        MIN(`scale`) AS `minscale`, MAX(`scale`) AS `maxscale`
                        FROM `photo` WHERE `uid` = ? AND `resource-id` = ? $scale_sql GROUP BY
                               `resource-id`, `created`, `edited`, `title`, `desc`, `album`, `filename`,
                               `type`, `height`, `width`, `datasize`, `profile`, `allow_cid`, `deny_cid`, `allow_gid`, `deny_gid`",
-               $data_sql,
                local_user(),
                $photo_id
        ));