Don't notify friendfeed for unchecked content types

dugh - March 8, 2009 - 23:31
Project:FriendFeed
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I noticed the module was posting to friendfeed even for content types I had unchecked. I was able to fix it by changing this (in the friendfeed_nodeapi method):

      $types = isset($user->friendfeed_contenttypes) ?  $user->friendfeed_contenttypes : array();

to this: (from p.262 of pro drupal development, 2nd ed)
        $types = array_filter($user->friendfeed_contenttypes);

 
 

Drupal is a registered trademark of Dries Buytaert.