Skip to content

A free, self-hostable news aggregator…

Add a default string representation

Alexis Degrugillier74c020edc846
diff --git a/app/Models/Search.php b/app/Models/Search.php
index 85340ff13..84688be2e 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -36,6 +36,10 @@ class FreshRSS_Search {
$input = $this->parseTagsSeach($input);
$this->search = $this->cleanSearch($input);
}
+
+ public function __toString() {
+ return $this->getRawInput();
+ }
public function getRawInput() {
return $this->raw_input;