Skip to content

Commit

Permalink
[QOLDEV-692] preserve custom org type in user activity streams, GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
antuarc committed Jan 18, 2024
1 parent 7fd67dc commit 05f725a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/activity/templates/snippets/stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endmacro %}

{% macro organization(activity) %}
{% set group_type = group_type or 'organization' %}
{% set group_type = group_type or (activity.data.group.type if (activity.data.group and activity.data.group.type) else 'organization') %}
<a href="{{ h.url_for(group_type ~ '.read', id=activity.object_id) }}">
{{ activity.data.group.title if activity.data.group else _('unknown') }}
</a>
Expand Down

0 comments on commit 05f725a

Please sign in to comment.