Merge branch 'following-relationships-optimizations' into 'develop'
[akkoma] / lib / pleroma / web / templates / static_fe / static_fe / _user_card.html.eex
index c7789f9acb146096d8b772ff9393687161c4f5f7..2a7582d45565a789a0ad811a038ddb63c415a9ea 100644 (file)
@@ -1,5 +1,5 @@
 <div class="p-author h-card">
-  <a class="u-url" rel="author noopener" href="<%= User.profile_url(@user) %>">
+  <a class="u-url" rel="author noopener" href="<%= (@user.uri || @user.ap_id) %>">
     <div class="avatar">
       <img src="<%= User.avatar_url(@user) |> MediaProxy.url %>" width="48" height="48" alt="">
     </div>