Skip to content

Commit

Permalink
fixed annoying delay opening Twitter app
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Aug 3, 2009
1 parent 92b9a27 commit 22785ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/omb/plugins/omb.php
Expand Up @@ -477,7 +477,9 @@ function set_identity_from_nick(&$request,&$route) {
}
}

if ($id) {
if (substr($nick,0,1) == '_' && $id) {
$request->set_param('id',$id);
} elseif ($id) {
if (empty($request->client_wants)) {
if (count($request->activeroute->patterns) == 1 ) {
$request->set_param('resource','posts');
Expand Down
2 changes: 1 addition & 1 deletion app/twitter/models/AkTwitter.php
Expand Up @@ -22,7 +22,7 @@ function AkTwitter() {

$this->has_one('entry');

$this->has_and_belongs_to_many('identities');
//$this->has_and_belongs_to_many('identities');

// primary key
$this->set_primary_key( 'id' );
Expand Down
2 changes: 2 additions & 0 deletions app/twitter/twitter.php
Expand Up @@ -202,6 +202,8 @@ function update_my_tweets() {
$t->save_changes();
}

$AkTwitter->has_and_belongs_to_many('identities');

$join =& $db->get_table($Entry->join_table_for('ak_twitter', 'identities'));

$j = $join->base();
Expand Down

0 comments on commit 22785ea

Please sign in to comment.