diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index e4112c56d..f2b3e0035 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -368,8 +368,8 @@ class StoriesController < ApplicationController @user_json_ld[:alumniOf] = @user.education if @user.education.present? @user_json_ld[:email] = @user.email if @user.email_public @user_json_ld[:jobTitle] = @user.employment_title if @user.employment_title.present? - @user_json_ld[:sameAs].append(@user.twitter_username) if @user.twitter_username.present? - @user_json_ld[:sameAs].append(@user.github_username) if @user.github_username.present? + @user_json_ld[:sameAs].append("https://twitter.com/#{@user.twitter_username}") if @user.twitter_username.present? + @user_json_ld[:sameAs].append("https://github.com/#{@user.github_username}") if @user.github_username.present? end def set_user_same_as_json_ld diff --git a/app/views/articles/_video_player.html.erb b/app/views/articles/_video_player.html.erb index 0021c91d8..97d7e3dd2 100644 --- a/app/views/articles/_video_player.html.erb +++ b/app/views/articles/_video_player.html.erb @@ -3,20 +3,21 @@
- - + <% unless internal_navigation? || user_signed_in? %> + + <% end %> <% end %> - - + + <% end %> <% if @article.processed_html.include? "runkit-element" %> <%= javascript_include_tag "https://embed.runkit.com" %> diff --git a/app/views/users/_profile_header.html.erb b/app/views/users/_profile_header.html.erb index 02cb70751..4aa61836c 100644 --- a/app/views/users/_profile_header.html.erb +++ b/app/views/users/_profile_header.html.erb @@ -10,20 +10,22 @@ <% end %> - +<% unless internal_navigation? || user_signed_in? %> + +<% end %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 4d684ba2e..cbadb6deb 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -4,6 +4,11 @@ <%= render "users/meta" %> <% end %> +<% unless internal_navigation? || user_signed_in? %> + +<% end %> <% cache "main-user-profile-header-area-#{@user.id}-#{@user.profile_updated_at}", expires_in: 10.days do %> - - -