diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-14 17:06:29 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-14 17:06:29 -0400 |
commit | 420980f0e0cd1023902b23d4082a0734d16c67a5 (patch) | |
tree | 09828e6839bc482b39ee9b19da96cff340786f37 /plugins/Realtime/RealtimePlugin.php | |
parent | 5ab718bf22fda29dc30fbd004f7866af82eeb879 (diff) |
changes to make realtime work for Meteor
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r-- | plugins/Realtime/RealtimePlugin.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index c9483f991..d01da5a50 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -65,12 +65,12 @@ class RealtimePlugin extends Plugin switch ($action->trimmed('action')) { case 'public': - $timeline = '/timelines/public'; + $timeline = 'timelines-public'; break; case 'tag': $tag = $action->trimmed('tag'); if (!empty($tag)) { - $timeline = '/timelines/tag/'.$tag; + $timeline = 'timelines-tag-'.$tag; } else { return true; } @@ -112,14 +112,14 @@ class RealtimePlugin extends Plugin if ($notice->is_local || ($notice->is_local == 0 && !common_config('public', 'localonly'))) { - $timelines[] = '/timelines/public'; + $timelines[] = 'timelines-public'; } $tags = $this->getNoticeTags($notice); if (!empty($tags)) { foreach ($tags as $tag) { - $timelines[] = '/timelines/tag/' . $tag; + $timelines[] = 'timelines-tag-' . $tag; } } @@ -198,13 +198,13 @@ class RealtimePlugin extends Plugin function _getScripts() { - return array(common_local_path('plugins/Realtime/realtimeupdater.js'), - common_local_path('plugins/Realtime/json2.js')); + return array(common_path('plugins/Realtime/realtimeupdate.js'), + common_path('plugins/Realtime/json2.js')); } function _updateInitialize($timeline, $user_id) { - return '; '; + return "RealtimeUpdate.init($user_id, \"$this->replyurl\", \"$this->favorurl\", \"$this->deleteurl\"); "; } function _connect() |