First time here? Check out the FAQ!
4

sharing questions - tiny url problem

I am having a problem when I try to share questions (through any of the social networks) because of tinyurl.

When I share a question, the url I am passing as a parameter is undefined

Here is the url: http://www.linkedin.com/shareArticle?mini=true&url=undefined&title=test%20question%201202

This is the ajax call I am doing:

image description

If I try to make the same call in a direct call I am getting this message:

jQuery17208261362977791578_1337297739022({"ok": false, "error": "The API call urlfetch.Fetch() required more quota than is available."})

Does any of you have the same problem? Is it anything broken in the latest sources or I destroyed something? I am running askbot 0.7.42.

Bu the way, if I replace in post.js this line

url = url.replace('{URL}', data.tinyurl);

with this line

url = url.replace('{URL}', URL);

sharing is working! But not with tiny urls.

Any advice?

alexandros.z's avatar
596
alexandros.z
asked 2012-05-17 18:55:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

It seems that there is a quota problem

alexandros.z's avatar alexandros.z (2012-05-17 19:04:17 -0500) edit

Looks like we need a fallback from the shortener service to full urls.

Evgeny's avatar Evgeny (2012-05-17 19:33:10 -0500) edit
1
todofixthis's avatar todofixthis (2012-05-17 21:26:11 -0500) edit

@todofixthis Yes! You are 100% right, my question is indeed related with this post. However, now problem seems to be solved, since server responds with no quota problem. I agree with @Evgeny that a fallback should be added. Something like "if tinyurl is undefined then use the whole url"

alexandros.z's avatar alexandros.z (2012-05-18 03:47:20 -0500) edit
1

Hey, I wrote a patch to disable tinyurl and optionally provide one's own short url for questions: https://github.com/ASKBOT/askbot-devel/pull/100

siovene's avatar siovene (2012-11-08 06:06:53 -0500) edit
add a comment see more comments

1 Answer

0

May be this is a hint: JSON (and JSON-P) wrapper around the TinyURL API http://json-tinyurl.appspot.com/?&callback=?</p<>>

alexandros.z's avatar
596
alexandros.z
answered 2012-05-17 19:00:39 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments