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:
@@ -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'];
|
||||
|
Reference in New Issue
Block a user