Merge branch 'feature/orm-and-misc' into 'master'

Use ORM in more places, deprecate const SUBSTRING_FOR_DATE, some minor fixes

See merge request tt-rss/tt-rss!135
This commit is contained in:
Andrew Dolgov
2025-05-19 08:06:56 +03:00
9 changed files with 74 additions and 119 deletions

View File

@@ -123,7 +123,7 @@ class Share extends Plugin {
$pdo = Db::pdo();
$sth = $pdo->prepare("SELECT id,title,link,content,feed_id,comments,int_id,lang,
".SUBSTRING_FOR_DATE."(updated,1,16) as updated,
SUBSTRING_FOR_DATE(updated,1,16) as updated,
(SELECT site_url FROM ttrss_feeds WHERE id = feed_id) as site_url,
(SELECT title FROM ttrss_feeds WHERE id = feed_id) as feed_title,
(SELECT hide_images FROM ttrss_feeds WHERE id = feed_id) as hide_images,