1
0
Fork 0
mirror of https://github.com/friendica/friendica-directory synced 2024-06-25 06:20:34 +02:00
friendica-docker/src/classes/Models/ProfilePollQueue.php
2018-11-11 21:08:33 -05:00

26 lines
439 B
PHP

<?php
namespace Friendica\Directory\Models;
/**
* @author Hypolite Petovan <mrpetovan@gmail.com>
*/
class ProfilePollQueue extends \Friendica\Directory\Model
{
public function add(string $profile_url): bool
{
$url = trim($profile_url);
if (!$url) {
return false;
}
$this->atlas->perform(
'INSERT IGNORE INTO `profile_poll_queue` SET `profile_url` = :profile_url',
['profile_url' => $url]
);
return true;
}
}