From c18deb524b6de84925811525da9012c377b71caf Mon Sep 17 00:00:00 2001 From: tobes Date: Tue, 20 Nov 2012 07:10:00 +0000 Subject: [PATCH] [#2939] Proper activity stream fix --- ckan/lib/activity_streams.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ckan/lib/activity_streams.py b/ckan/lib/activity_streams.py index 242e5f3d02a..71331f50a2c 100644 --- a/ckan/lib/activity_streams.py +++ b/ckan/lib/activity_streams.py @@ -233,11 +233,12 @@ def activity_list_to_html(context, activity_stream): raise NotImplementedError("No activity renderer for activity " "type '%s'" % str(activity_type)) - if not activity_type in activity_stream_string_icons: + if activity_type in activity_stream_string_icons: + activity_icon = activity_stream_string_icons[activity_type] + else: activity_icon = activity_stream_string_icons['undefined'] activity_msg = activity_stream_string_functions[activity_type]() - activity_icon = activity_stream_string_icons[activity_type] # Get the data needed to render the message. matches = re.findall('\{([^}]*)\}', activity_msg)