Project:Activity Stream
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:akalsey
Status:needs work

Issue Summary

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.

AttachmentSize
activitystream.patch493 bytes

Comments

#1

Wouldn't you also need to uncomment check_markup?

#2

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
Category:bug report» feature request
Assigned to:Les Lim» akalsey
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.

#3

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 :-)

AttachmentSize
input_filter.patch 2.9 KB
nobody click here