viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Add safe:all to media:new, a=chris

Chris Pollett [2019-06-12 03:Jun:th]
Add safe:all to media:new, a=chris
Filename
src/controllers/CrawlController.php
src/library/media_jobs/FeedsUpdateJob.php
diff --git a/src/controllers/CrawlController.php b/src/controllers/CrawlController.php
index 12768637c..8d3be5051 100644
--- a/src/controllers/CrawlController.php
+++ b/src/controllers/CrawlController.php
@@ -193,9 +193,9 @@ class CrawlController extends Controller implements CrawlConstants
         if (!isset($_REQUEST["arg"]) ) {
             return;
         }
+        $timestamp = unserialize(L\webdecode($_REQUEST["arg"]));
         $timestamp = substr($this->clean($timestamp, "int"), 0,
             C\TIMESTAMP_LEN);
-        $timestamp = unserialize(L\webdecode($_REQUEST["arg"]));
         $this->model("crawl")->deleteCrawl($timestamp);
     }

diff --git a/src/library/media_jobs/FeedsUpdateJob.php b/src/library/media_jobs/FeedsUpdateJob.php
index 2a9fed003..f7991a546 100644
--- a/src/library/media_jobs/FeedsUpdateJob.php
+++ b/src/library/media_jobs/FeedsUpdateJob.php
@@ -660,8 +660,10 @@ class FeedsUpdateJob extends MediaJob
                 if (PhraseParser::computeSafeSearchScore($word_list, $len,
                     $item["LINK"]) < 0.012) {
                     $meta_ids[] = "safe:true";
+                    $meta_ids[] = "safe:all";
                 } else {
                     $meta_ids[] = "safe:false";
+                    $meta_ids[] = "safe:all";
                 }
                 $prune_shard->addDocumentWords($doc_keys, $item['PUBDATE'],
                     $word_and_qa_lists["WORD_LIST"], $meta_ids, true, false);
ViewGit