Defect #30

add_to_digg() needs an update.

Added by Ryan Parman 92 days ago. Updated 55 days ago.

Status :Verified Start :2008-02-07
Priority :Low Due date :
Assigned to :Ryan Parman % Done :

100%

Category :Miscellaneous
Target version :1.1.1
Affected Version :

1.1.x branch

PHP Version :

5.2.5

mbstring enabled :

No

iconv enabled :

No

cURL enabled :

No

zlib enabled :

No


Description

From http://tech.groups.yahoo.com/group/simplepie-support/message/48

function add_to_digg() {
return $this->add_to_service('http://digg.com/submit?phase=2&URL=');
}

"URL="

digg site still asks for the URL

should be "url="

digg site now only asks for title and description ...

additionally digg can also use the keyword "title=" too ...

History

2008-02-08 13:21 - Geoffrey Sneddon

  • Status changed from Unconfirmed to New

2008-03-15 11:20 - Ryan Parman

  • Affected Version set to 1.1.x branch
  • PHP Version set to 5.2.5
  • mbstring enabled set to No
  • iconv enabled set to No
  • cURL enabled set to No
  • zlib enabled set to No

http://digg.com/submit?url=example.com&title=TITLE&bodytext=DESCRIPTION&media=MEDIA&topic=TOPIC

TITLE is 75 characters max, urlencoded.
DESCRIPTION is 350 characters max, urlencoded

2008-03-15 14:15 - Ryan Parman

  • Status changed from New to 5
  • % Done changed from 0 to 100

Fixed in trunk r963 and on the 1.1.x branch r964. Please verify.

2008-03-15 14:17 - Ryan Parman

Tested the fix on trunk & branch with this code:

<?php
require_once('../simplepie.inc');

$feed = new SimplePie('http://simplepie.org/blog/feed/');
$feed->handle_content_type();

foreach ($feed->get_items() as $item)
{
    echo '<h3><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></h3>' . "\n";
    echo $item->get_description() . "\n";
    echo '<p><small><a href="' . $item->add_to_digg() . '">Submit to Digg</a></small></p>' . "\n";
    echo '<hr>' . "\n";
}
?>

2008-03-15 15:15 - Geoffrey Sneddon

  • Status changed from 5 to Fixed

2008-03-15 15:15 - Geoffrey Sneddon

  • Status changed from Fixed to Verified

Also available in: Atom PDF