Skip to content

Commit b5a2934

Browse files
committed
wack
1 parent 2d6f020 commit b5a2934

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/components/public_activity/snippet.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def view_template
1717

1818
if owner.nil?
1919
i { "System" }
20-
elsif owner.is_a?(::Backend::User)
21-
render Components::UserMention.new(owner)
22-
elsif owner.is_a?(::Identity)
20+
elsif owner.is_a?(::Backend::User) || owner.is_a?(::Identity)
2321
render Components::UserMention.new(owner)
22+
elsif owner.is_a?(::Program)
23+
a(href: helpers.developer_app_path(owner)) { plain owner.name }
2424
else
25-
render owner
25+
plain "#{owner.class.name} #{owner.try(:public_id) || owner.id}"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)