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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | input_filter.patch | 2.9 KB | nick_vh |
| activitystream.patch | 493 bytes | les lim |
Comments
Comment #1
mariusooms commentedWouldn't you also need to uncomment check_markup?
Comment #2
akalsey commentedNode_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.
Comment #3
nick_vhIncluded 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 :-)
Comment #4
morbus iffThis is fixed in 7.x-3.x: the node body field will use the text processing setting and format defined in Fields UI.