fix
This commit is contained in:
parent
a8889a293e
commit
0fe387bd36
@ -96,7 +96,7 @@ class MainHandler extends request_handler {
|
|||||||
|
|
||||||
add_meta([
|
add_meta([
|
||||||
'$title' => $pt->title,
|
'$title' => $pt->title,
|
||||||
'$url', $config['domain'].$post->getUrl(),
|
'$url' => $config['domain'].$post->getUrl(),
|
||||||
'$description' => $pt->getDescriptionPreview(155)
|
'$description' => $pt->getDescriptionPreview(155)
|
||||||
]);
|
]);
|
||||||
if (($img = $pt->getFirstImage()) !== null)
|
if (($img = $pt->getFirstImage()) !== null)
|
||||||
|
@ -359,7 +359,7 @@ class posts {
|
|||||||
*/
|
*/
|
||||||
static function getWithUpload(Upload $upload): array {
|
static function getWithUpload(Upload $upload): array {
|
||||||
$db = DB();
|
$db = DB();
|
||||||
$q = $db->query("SELECT id FROM posts_texts WHERE md LIKE '%{image,{$upload->randomId}%'");
|
$q = $db->query("SELECT id FROM posts_texts WHERE md LIKE '%{image:{$upload->randomId}%'");
|
||||||
$ids = [];
|
$ids = [];
|
||||||
while ($row = $db->fetch($q))
|
while ($row = $db->fetch($q))
|
||||||
$ids[] = (int)$row['id'];
|
$ids[] = (int)$row['id'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user