I noticed you disabled support for vigillar.se

I have tried to uncomment it again, and also I have tried to replace it with my own site scooper.dk

What happens when submitting a story is that service links will take you to the drupal site in question with the story link info filled out.

So far so good.

But when submitting you are taken back to the drupal site you came from. And the story link will *not* have been submitted to the other site.

Comments

frjo’s picture

Component: User interface » Code
Category: bug » support

Paste in the code and I will try to assist you.

lennart’s picture

Thanks a lot.

But I think the problem is not specific to my attempts. Because I also tried it with your site vigillar.se - just uncommenting the code in the module.

Exact same problem. Did you ever get this to work with vigillar.se from other drupal sites ?

frjo’s picture

Now I have tried it myself and gor the same result. I'm pretty sure it did work before but I can be mistaken. Anyway, the problem seems to be that the URL needs to be url encoded. Sites like del.icio.us will do that for you but Drupal/storylinks.module will not.

Please try to replace this around line 273

  $title = drupal_urlencode($node->title);

with this

  $url = urlencode($url);
  $title = urlencode($node->title);

and report back here the result. Please try Drupal sites as well as some of the other sites. It my initial testing it seems to work.

lennart’s picture

Thanks a lot!

I have tested on Drupal, reddit, digg, del.icio.us. Works perfectly!

frjo’s picture

Assigned: Unassigned » frjo
Category: support » bug

Committed to head/cvs. Will commit it to 4.7 in a week or so.

The original reason I disabled support for vigillar.se was that I was getting a lot of "access denied" hits, from spiders mostly, filling up the logs.

frjo’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)