mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 15:18:23 +00:00
wack
This commit is contained in:
parent
2d6f02093a
commit
b5a293454a
1 changed files with 4 additions and 4 deletions
|
|
@ -17,12 +17,12 @@ class Components::PublicActivity::Snippet < Components::Base
|
|||
|
||||
if owner.nil?
|
||||
i { "System" }
|
||||
elsif owner.is_a?(::Backend::User)
|
||||
render Components::UserMention.new(owner)
|
||||
elsif owner.is_a?(::Identity)
|
||||
elsif owner.is_a?(::Backend::User) || owner.is_a?(::Identity)
|
||||
render Components::UserMention.new(owner)
|
||||
elsif owner.is_a?(::Program)
|
||||
a(href: helpers.developer_app_path(owner)) { plain owner.name }
|
||||
else
|
||||
render owner
|
||||
plain "#{owner.class.name} #{owner.try(:public_id) || owner.id}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue