Activity Stream doesn't specify a filter type when it creates a new node. When you view an Activity Stream node, $node->body gets passed through check_markup() and is subsequently stripped clean. The patch just adds $node->format = FILTER_FORMAT_DEFAULT; at node creation. It won't fix already existing nodes.

CommentFileSizeAuthor
#3 input_filter.patch2.9 KBnick_vh
activitystream.patch493 bytesles lim

Comments

mariusooms’s picture

Wouldn't you also need to uncomment check_markup?

akalsey’s picture

Title: no default input filter means $node->body gets stripped out » Allow admins to choose input filter
Version: 6.x-1.x-dev » 6.x-2.x-dev
Assigned: les lim » akalsey
Category: bug » feature
Status: Needs review » Needs work

Node_save already adds in FILTER_FORMAT_DEFAULT if $node->format is not set. This patch isn't needed.

What is needed, however, is a way for the site admin to select an input filter that's used on all Activity Stream nodes that are automatically created by cron.

nick_vh’s picture

StatusFileSize
new2.9 KB

Included a patch that defines a settings form to select the input filter for the activity stream objects.

It's an initial patch that allows a start for this. I don't know enough about activity stream to know if it's the right heading or not but I needed it for a project so here we go :-)

morbus iff’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Assigned: akalsey » Unassigned
Status: Needs work » Fixed

This is fixed in 7.x-3.x: the node body field will use the text processing setting and format defined in Fields UI.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.