hannesmannerheim / qvitter

mirror. moved to https://git.gnu.io/h2p/Qvitter, send merge requests and issues there
https://git.gnu.io/h2p/Qvitter
GNU Affero General Public License v3.0
86 stars 26 forks source link

can't get url shortener to work [in Abrowser] #234

Closed LiohMoeller closed 9 years ago

LiohMoeller commented 9 years ago

I am trying to get the url shortener to work. I have first just set:

$config['site']['qvitter']['urlshortenerapiurl'] = 'http://qttr.at/yourls-api.php'; $config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983';

in the config which did not help. Then I followed the instructions in shortener.php which lead to the same result.

hannesmannerheim commented 9 years ago

http://qttr.at/yourls-api.php doesn't work with most browsers if you're on https

shortener.php works on gnusocial.ch when i tried it: https://gnusocial.ch/local/plugins/Qvitter/shortener.php?format=jsonp&action=shorturl&signature=b6afeec983&url=https%3A%2F%2Fgnusocial.ch%2F

try adding https://gnusocial.ch/local/plugins/Qvitter/shortener.php as the urlshortenerapiurl

LiohMoeller commented 9 years ago

I have added that to the config. When I now click on the >url< button the wheel in the top bar starts spinning but nothing happens. Nothing special in the logs also.

hannesmannerheim commented 9 years ago

can i get a test account on gnusocial.ch?

hannesmannerheim commented 9 years ago

thanks. the shortener works for me. what browser are you using? what's the url you're trying to shorten?

LiohMoeller commented 9 years ago

I am using Abrowser (FF) on Trisquel 7. If the shortener works, does it work inline or is the URL shortened when the dent is sent out?

hannesmannerheim commented 9 years ago

it works inline, the urls present in the queets should be shortened and replaced

LiohMoeller commented 9 years ago

Here is an example I tried to shorten: http://www.linux-community.de/Internal/Nachrichten/VirtualBox-5.0-veroeffentlicht

hannesmannerheim commented 9 years ago

the url is shortened for me

skarmavbild 2015-07-10 kl 21 24 09 skarmavbild 2015-07-10 kl 21 24 17

so maybe it's the browser..

LiohMoeller commented 9 years ago

It was related to the RefControl Addon I am using. Thanks for verifying.

hannesmannerheim commented 9 years ago

ah great! i added some error reporting when shortening, so it was good this came up anyway.

qirtaiba commented 7 years ago

Can you please point me towards the error reporting code? I have the same problem and I'm not using a RefControl addon.