class Conversation
{
+ const PROTOCOL_UNKNOWN = 0;
+ const PROTOCOL_DFRN = 1;
+ const PROTOCOL_DIASPORA = 2;
+ const PROTOCOL_OSTATUS_SALMON = 3;
+ const PROTOCOL_OSTATUS_FEED = 4; // Deprecated
+ const PROTOCOL_GS_CONVERSATION = 5; // Deprecated
+ const PROTOCOL_SPLITTED_CONV = 6;
+
/**
* @brief Store the conversation data
*
unset($conversation['source']);
}
if (!dba::update('conversation', $conversation, ['item-uri' => $conversation['item-uri']], $old_conv)) {
- logger('Conversation: update for '.$conversation['item-uri'].' from '.$conv['protocol'].' to '.$conversation['protocol'].' failed', LOGGER_DEBUG);
+ logger('Conversation: update for '.$conversation['item-uri'].' from '.$old_conv['protocol'].' to '.$conversation['protocol'].' failed', LOGGER_DEBUG);
}
} else {
if (!dba::insert('conversation', $conversation, true)) {