Skip to content

Commit

Permalink
[#2939] Proper activity stream fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 20, 2012
1 parent bd6f866 commit c18deb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/lib/activity_streams.py
Expand Up @@ -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)
Expand Down

0 comments on commit c18deb5

Please sign in to comment.