diff --git a/app/repos/post_repo.rb b/app/repos/post_repo.rb index 89b26e7..ff663b1 100644 --- a/app/repos/post_repo.rb +++ b/app/repos/post_repo.rb @@ -151,7 +151,7 @@ module Adamantium .where(post_type: "post", name: nil) .exclude(Sequel.pg_jsonb_op(:syndication_sources).has_key?("instagram")) .published - .combine(:tags) + .combine(:tags, :webmentions) .order(Sequel.desc(:published_at)) .limit(limit) .to_a diff --git a/app/templates/shared/_status.html.slim b/app/templates/shared/_status.html.slim index 0732438..1567aa7 100644 --- a/app/templates/shared/_status.html.slim +++ b/app/templates/shared/_status.html.slim @@ -9,9 +9,13 @@ div class="mb-8 h-entry border border-gray-200 m-2 p-4 bg-gray-50 hover:bg-gray- div class="mb-8" p class="text-sm text-blue-400" - a class="u-url float-left mr-2" href="#{post.permalink}" + a class="u-url float-left mr-0" href="#{post.permalink}" time class="dt-published" datetime=post.machine_published_at = post.display_published_at - - post.syndicated_to.each do |loc| - a rel="syndication" class="u-syndication float-left" href=loc[:url] - == render "shared/#{loc[:location]}", width: "w-4" \ No newline at end of file + - if post.webmentions.count > 0 + == " · #{post.webmentions.count} comment(s)" + + - post.syndicated_to.each do |loc| + == " ·" + a rel="syndication" class="u-syndication inline-block ml-1 float-left" href=loc[:url] + == render "shared/#{loc[:location]}", width: "w-4" \ No newline at end of file