add deprecation notice for sql_random_function()

This commit is contained in:
Andrew Dolgov
2025-04-14 15:27:58 +03:00
parent 54e8ab7e3d
commit 3c138a71a1
3 changed files with 3 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ class Cache_Starred_Images extends Plugin {
site_url != '' AND
ttrss_user_entries.owner_uid = ? AND
plugin_data NOT LIKE '%starred_cache_images%'
ORDER BY ".Db::sql_random_function()." LIMIT 100");
ORDER BY RANDOM() LIMIT 100");
if ($sth->execute([$this->host->get_owner_uid()])) {