Sub-modules for Blogger, Goodreads, StumbleUpon, YouTube, IMDB, Ravelry, and Hulu
jami - February 6, 2009 - 21:20
| Project: | Activity Stream |
| Version: | 6.x-1.0-rc1 |
| Component: | Code |
| Category: | task |
| Priority: | minor |
| Assigned: | jami |
| Status: | closed |
| Issue tags: | activitystream, blogger, goodreads, hulu, imdb, ravelry, stumbleupon, youtube |
Jump to:
Description
I "wrote" (really, cut and pasted) some Activitystream sub-modules for a bunch of sites I use a lot. You can see them in action in my Activitystream. You can download them on this page. I mean to make zillions of improvements, but if you improve them first, awesome.

#1
That's fantastic. Can you create a Drupal.org project for these? See http://drupal.org/node/386992
#2
Any chance of any of these being back ported to Drupal 5?
#3
OK, So I've successfully ported blip.fm. I can probably finish backporting the rest myself. If anybody else wants them I can help jami setup module pages for each of these with both the Drupal 5 and 6 versions.
#4
Shouldn't these be submodules of ActivityStream, or at least all gathered into a single ActivityStream Sources project? A different integration project for every individual website in the tubes might get pretty messy pretty quickly.
I'm thinking of making a few myself, but I can't imagine much value to the community in adding to project sprawl for folks not interested in ActivityStream.
#5
Please see http://drupal.org/node/386992
#6
Using the Stumbleupon submodule. It seems to work just fine, but there's a little glitch...I get FIVE (5) copies of each stumbleupon review that I do. ???
Any suggestions on where I might start looking to troubleshoot this?
Thanks
Jones
#7
I also have the glitch of getting duplicate entries, up to 400, from stumbleupon. See http://www.matthewbreuer.com/drupal/content/pupuplayer-pro-414 for example. Any ideas on how to fix this?
#8
Getting the same issue as sammy (#7) for both StumbleUpon and Hulu
#9
Stumbleupon has some sort of ID in their link URLs that changes each time you refresh the feed. Since the Activity Stream feed module uses the link URL to determine if the feed item has changed, it thinks the item is changing every time you run cron.
What they're doing is obnoxious and a poor idea. But it conforms to the RSS spec, so Activity Stream should handle it.
The problem is going to be that to fix this globally, I'm going to have to change how I keep track of which items have already been inserted as nodes. And that means that every activity stream source based on feeds (which is most of them) will lose memory of what it's already seen. You'll get the latest 15-20 items from every source appearing again. I'm not sure I want to do that for what amounts to a special case.
What I am doing is adding a new field to the list of items the feed-baed modules have to work with. This new field is the guid from the feed, which should be unique. Module developers that use a feed with a constantly changing link can use this new field to override the "guid" field if they desire.
The Stumbleupon module developer should now change the hook_streamapi implementation to read something like...
<?php
$items = activitystream_feed_streamapi($user);
array_walk($items, create_function('&$item, $key', '$item["guid"] = $item["id"];'));
return $items;
?>
#10
No response from the creator of these modules. Closing this issue.