fixed wrong urls
This commit is contained in:
parent
89af06d7e0
commit
17af6398ca
2 changed files with 5 additions and 5 deletions
|
@ -73,7 +73,7 @@ Twittia.prototype.getItem = function(status) {
|
||||||
|
|
||||||
template.image.src = status.user.profile_image_url;
|
template.image.src = status.user.profile_image_url;
|
||||||
template.username.innerText = status.user.screen_name;
|
template.username.innerText = status.user.screen_name;
|
||||||
template.username.href = API_PATH + status.user.screen_name
|
template.username.href = WEBSITE_PATH + status.user.screen_name
|
||||||
|
|
||||||
if(original_status != null) {
|
if(original_status != null) {
|
||||||
var retweeted = document.createElement("span")
|
var retweeted = document.createElement("span")
|
||||||
|
@ -83,15 +83,15 @@ Twittia.prototype.getItem = function(status) {
|
||||||
retweeted.appendChild(retweeted_icon);
|
retweeted.appendChild(retweeted_icon);
|
||||||
var retweeted_by = document.createElement("a");
|
var retweeted_by = document.createElement("a");
|
||||||
retweeted_by.innerText = original_status.user.screen_name + " ";
|
retweeted_by.innerText = original_status.user.screen_name + " ";
|
||||||
retweeted_by.href = API_PATH + original_status.user.screen_name;
|
retweeted_by.href = WEBSITE_PATH + original_status.user.screen_name;
|
||||||
retweeted.appendChild(document.createTextNode("@"));
|
retweeted.appendChild(document.createTextNode("@"));
|
||||||
retweeted.appendChild(retweeted_by);
|
retweeted.appendChild(retweeted_by);
|
||||||
template.in_reply.parentNode.parentNode.insertBefore(retweeted, template.in_reply.parent);
|
template.in_reply.parentNode.parentNode.insertBefore(retweeted, template.in_reply.parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(status.in_reply_to_status_id != null) template.in_reply.innerText = status.in_reply_to_screen_name;
|
if(status.in_reply_to_status_id_str != null) template.in_reply.innerText = status.in_reply_to_screen_name;
|
||||||
else template.in_reply.parentNode.className = "hidden";
|
else template.in_reply.parentNode.className = "hidden";
|
||||||
template.in_reply.href = WEBSITE_PATH + status.in_reply_to_screen_name + "/status/" + status.in_reply_to_status_id;
|
template.in_reply.href = WEBSITE_PATH + status.in_reply_to_screen_name + "/status/" + status.in_reply_to_status_id_str;
|
||||||
|
|
||||||
template.message.innerHTML = replaceTwitterLinks(replaceURLWithHTMLLinks(status.text));
|
template.message.innerHTML = replaceTwitterLinks(replaceURLWithHTMLLinks(status.text));
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>Icon.icns</string>
|
<string>Icon.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>net.jeena.apps.twittia</string>
|
<string>net.jeena.apps.twittia.test</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
|
|
Reference in a new issue