Skip to content

Commit

Permalink
[#2536] fix dataset snippet for follow_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 30, 2012
1 parent 2e12751 commit 31beffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/logic/action/get.py
Expand Up @@ -1842,7 +1842,8 @@ def get_snippet(name):
if name == 'actor':
return h.linked_user(activity['user_id'])
elif name == 'dataset':
return h.dataset_link(activity['data']['package'])
data = activity['data']
return h.dataset_link(data.get('package') or data.get('dataset'))
elif name == 'tag':
return h.tag_link(detail['data']['tag'])
elif name == 'group':
Expand Down

0 comments on commit 31beffe

Please sign in to comment.