Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Volvagia356 committed Jun 25, 2014
2 parents 469e66e + 03c69ec commit 8d0bccb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -905,11 +905,11 @@ <h3 data-i18n-text="api_setting">API Settings</h3>
<label class="label" data-i18n-text="oauth_base"
>OAuth Base</label>
</li><li class="mochi_list_item">
<input id="tbox_prefs_search_api_base2"
<input id="tbox_prefs_search_api_base3"
title="Search API Base"
type="text" class="mochi_entry widget"/>
<label class="label"
data-i18n-text="search_api_base2"
data-i18n-text="search_api_base3"
>Search API Base</label>
</li><li class="mochi_list_item">
<input id="tbox_prefs_upload_api_base"
Expand Down
7 changes: 4 additions & 3 deletions data/js/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ conf = {
vars: {
'platform': 'Chrome'
, 'wrapper': 'unknown'
, 'version': '0.9.8.14'
, 'version': '0.9.8.15'
, 'codename': 'Ada'
, 'consumer_key': 'SCEdx4ZEOO68QDCTC7FFUQ'
, 'consumer_secret': '2IBoGkVrpwOo7UZhjkYYekw0ciXG1WHpsqQtUqZCSw'
Expand Down Expand Up @@ -78,6 +78,7 @@ default_prefs: {
, 'sign_oauth_base': 'https://api.twitter.com/oauth/'
, 'use_same_sign_oauth_base': true
, 'search_api_base2': 'https://twitter.com/phoenix_search.phoenix'
, 'search_api_base3': 'https://api.twitter.com/1.1/search/tweets.json'
, 'upload_api_base': 'https://upload.twitter.com/1/'
// extensions and others
, 'exts_enabled': ["org.hotot.imagepreview", "org.hotot.gmap", "org.hotot.translate", "org.hotot.imageupload", "org.hotot.videopreview", "org.hotot.shorturl", "org.hotot.cfw"]
Expand Down Expand Up @@ -126,7 +127,7 @@ default_prefs: {
, 'oauth_base': 'https://identi.ca/api/oauth/'
, 'sign_oauth_base': 'https://identi.ca/api/oauth/'
, 'use_same_sign_oauth_base': true
, 'search_api_base2': 'https://identi.ca/api/'
, 'search_api_base3': 'https://identi.ca/api/'
, 'upload_api_base': 'https://identi.ca/api/'
// extensions:
, 'exts_enabled': ["org.hotot.imagepreview", "org.hotot.gmap", "org.hotot.translate", "org.hotot.imageupload", "org.hotot.videopreview", "org.hotot.shorturl", "org.hotot.cfw"]
Expand Down Expand Up @@ -326,7 +327,7 @@ function apply_prefs(name, full) {
}
})(prefs.api_base);
globals.twitterClient.sign_api_base = prefs.sign_api_base;
globals.twitterClient.search_api_base2 = prefs.search_api_base2;
globals.twitterClient.search_api_base3 = prefs.search_api_base3;
globals.twitterClient.upload_api_base = prefs.upload_api_base;
globals.twitterClient.use_same_sign_api_base = prefs.use_same_sign_api_base;
var oauth = globals.twitterClient.oauth;
Expand Down
9 changes: 5 additions & 4 deletions data/js/lib.twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function TwitterClient() {
self.password = '';
self.api_base = 'https://api.twitter.com/';
self.sign_api_base = 'https://api.twitter.com/';
self.search_api_base2 = 'https://twitter.com/phoenix_search.phoenix';
self.search_api_base3 = 'https://api.twitter.com/1.1/search/tweets.json';
self.upload_api_base = 'https://upload.twitter.com/1/';

self.use_same_sign_api_base = true;
Expand Down Expand Up @@ -764,7 +764,7 @@ function TwitterClient() {
};

self.search = function search(query, page, since_id, max_id, on_success, on_error) {
var url = self.search_api_base2;
var url = self.search_api_base3;
if (url == 'https://twitter.com/phoenix_search.phoenix') {
var params = {
'q': query
Expand All @@ -786,9 +786,10 @@ function TwitterClient() {
var params = {
'q': query
};
if (since_id != null) params['since_id'] = since_id;
params['count'] = 100;
params['include_entities'] = 'true';
params['result_type'] = 'recent';
if (max_id != null) params['max_id'] = max_id;
if (page != null) params['page'] = page;
self.source = '';
self.get(url, params, on_success, on_error);
self.source = 'Hotot';
Expand Down
6 changes: 3 additions & 3 deletions data/js/ui.prefs_dlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function load_prefs() {
.prop('checked', prefs.enable_gpu_acceleration);
$('#tbox_prefs_api_base').val(prefs.api_base);
$('#tbox_prefs_sign_api_base').val(prefs.sign_api_base);
$('#tbox_prefs_search_api_base2').val(prefs.search_api_base2);
$('#tbox_prefs_search_api_base3').val(prefs.search_api_base3);
$('#tbox_prefs_upload_api_base').val(prefs.upload_api_base);
$('#tbox_prefs_oauth_base').val(prefs.oauth_base);
$('#tbox_prefs_sign_oauth_base').val(prefs.sign_oauth_base);
Expand Down Expand Up @@ -393,8 +393,8 @@ function save_prefs() {
= $('#tbox_prefs_api_base').attr('value');
prefs.sign_api_base
= $('#tbox_prefs_sign_api_base').attr('value');
prefs.search_api_base2
= $('#tbox_prefs_search_api_base2').attr('value');
prefs.search_api_base3
= $('#tbox_prefs_search_api_base3').attr('value');
prefs.upload_api_base
= $('#tbox_prefs_upload_api_base').attr('value');
prefs.oauth_base
Expand Down
4 changes: 2 additions & 2 deletions data/js/ui.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -1388,9 +1388,9 @@ function (dataObj) {
}
} else {
if(now.diff(mobj, 'days', true) > 1) {
time_str = mobj.format('MM-DD-YYYY HH:mm:ss');
time_str = mobj.format('YYYY-MM-DD HH:mm:ss');
} else {
time_str = mobj.format('HH:mm:ss');
time_str = mobj.format('YYYY-MM-DD HH:mm:ss');
}
}

Expand Down
5 changes: 1 addition & 4 deletions data/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"manifest_version": 2,
"name": "Hotot",
"description": "Hotot Twitter client for Chrome",
"version": "0.9.8.14",
"version": "0.9.8.15",
"default_locale": "en",
"content_security_policy": "script-src 'self' 'unsafe-eval' https://maps.google.com; object-src 'self'",
"background": {
"page": "background.html"
},
"app": {
"launch": {
"local_path": "index.html"
Expand Down

0 comments on commit 8d0bccb

Please sign in to comment.