use Friendica\Database\DBA;
use Friendica\Util\DateTimeFormat;
-require_once "include/dba.php";
-
class Conversation
{
/*
*
* @param array $arr Item array with conversation data
* @return array Item array with removed conversation data
+ * @throws \Exception
*/
public static function insert(array $arr)
{
}
// Update structure data all the time but the source only when its from a better protocol.
if (empty($conversation['source']) || (!empty($old_conv['source']) &&
- ($old_conv['protocol'] < defaults($conversation, 'protocol', PARCEL_UNKNOWN)))) {
+ ($old_conv['protocol'] < defaults($conversation, 'protocol', self::PARCEL_UNKNOWN)))) {
unset($conversation['protocol']);
unset($conversation['source']);
}