Use user_screen_name() in smile tooltip

As suggested by @pixeldesu

Co-authored-by: Andreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>
This commit is contained in:
Robin B 2020-05-31 03:22:19 +02:00 committed by Andreas Nedbal
parent 07d73b6fa4
commit 9cb17f7488
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@
- else
- a.smiles.all.each do |smile|
%a{ href: show_user_profile_path(smile.user.screen_name),
title: smile.user.display_name,
title: user_screen_name(smile.user, anonymous: false, url: false),
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }