Skip to content

Commit

Permalink
embed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 17, 2023
1 parent 7ac0900 commit 14f42a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/services/fetch_link_card_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def skip_link?(a)

def attempt_oembed(card, url)
response = OEmbed::Providers.get(url)
debugger
card.type = response.type
card.title = response.respond_to?(:title) ? response.title : ""
card.author_name = response.respond_to?(:author_name) ? response.author_name : ""
Expand Down
4 changes: 2 additions & 2 deletions app/views/articles/_article_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
</div>

<div class="flex items-center mt-3 space-x-3 text-gray-500 dark:text-gray-400">
<div class="flex items-center gap-3">
<%= link_to user_path(post.user.username), class: "flex items-center gap-3" do %>
<div class="relative flex-shrink-0 w-5 h-5">
<span style="box-sizing: border-box; display: block; overflow: hidden; width: initial; height: initial; background: none; opacity: 1; border: 0px; margin: 0px; padding: 0px; position: absolute; inset: 0px;">
<%= image_tag(post.user.avatar_url(:small), class: "rounded-full") %>
</span>
</div>
<span class="text-sm"><%= post.user.username %></span>
</div>
<% end %>
<span class="text-xs text-gray-300 dark:text-gray-600"></span>
<time class="text-sm" datetime="<%= post.created_at.to_s %>">
<%= l( post.created_at, format: :short )%>
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<div class="relative px-4 sm:px-6 lg:px-8">
<div class="text-lg max-w-prose mx-auto">
<h1>
<%= link_to user_path(@post.user) do %>
<%= link_to user_path(@post.user.username) do %>
<span class="block text-base text-center text-brand-600 font-semibold tracking-wide uppercase">
<%= t(:by, name: @post.user.username) %>
</span>
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/importer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ def create_events
streaming_service: streaming_service
})

debugger
end
end

Expand Down

0 comments on commit 14f42a6

Please sign in to comment.