fixed wrong urls

This commit is contained in:
Jeena Paradies 2011-06-25 21:55:45 +02:00
parent 89af06d7e0
commit 17af6398ca
2 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@ Twittia.prototype.getItem = function(status) {
template.image.src = status.user.profile_image_url;
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) {
var retweeted = document.createElement("span")
@ -83,15 +83,15 @@ Twittia.prototype.getItem = function(status) {
retweeted.appendChild(retweeted_icon);
var retweeted_by = document.createElement("a");
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(retweeted_by);
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";
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));

View file

@ -34,7 +34,7 @@
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
<key>CFBundleIdentifier</key>
<string>net.jeena.apps.twittia</string>
<string>net.jeena.apps.twittia.test</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>