firehose fixes and optimisations. In particular get rid of the unresponsive script warning when trying to load updates (sine they aren't our posts, we can't check for unseen, hence we can't really load updates). Also make the url selection pluggable.

This commit is contained in:
friendica
2014-03-27 15:35:29 -07:00
parent 7b24b78af9
commit a0674af416
6 changed files with 82 additions and 74 deletions

View File

@@ -52,8 +52,14 @@ class Conversation extends BaseObject {
switch($mode) {
case 'network':
$this->profile_owner = local_user();
$this->writable = true;
if(array_key_exists('firehose',$a->data) && intval($a->data['firehose'])) {
$this->profile_owner = intval($a->data['firehose']);
$this->writable = false;
}
else {
$this->profile_owner = local_user();
$this->writable = true;
}
break;
case 'channel':
$this->profile_owner = $a->profile['profile_uid'];