I took a look at the issue reported earlier but it's not something I can resolve in my add-on.
Featuring a thread and grabbing the first attached image does not involve the $forum param at all and hence $forum['node_type_id'] is not available, which is the cause of the error:
There is no reason to include it, and to do so would require quite a bit of code changes, so it would have to be something which is fixed in this add-on, using something like the fix Bloodcinder posted.
Featuring a thread and grabbing the first attached image does not involve the $forum param at all and hence $forum['node_type_id'] is not available, which is the cause of the error:
Code:
if ($forum['node_type_id'] == 'SocialCategory' && !isset($socialForum['social_forum_id']))
{
...
}