[GiphyBridge] include search text in feed name (#2628)

Co-authored-by: User123698745 <usr123698745+git@gmail.com>
This commit is contained in:
User123698745 2022-04-10 18:06:33 +02:00 committed by GitHub
parent bf2f9a06f9
commit aacf5812ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -31,6 +31,15 @@ class GiphyBridge extends BridgeAbstract {
)
));
public function getName()
{
if (!is_null($this->getInput('s'))) {
return $this->getInput('s') . ' - ' . parent::getName();
}
return parent::getName();
}
protected function getGiphyItems($entries){
foreach($entries as $entry) {
$createdAt = new \DateTime($entry->import_datetime);