This commit is contained in:
2023-12-28 08:51:30 +11:00
parent 22c8a475f5
commit 6004e38434
5 changed files with 5 additions and 9 deletions

View File

@@ -70,12 +70,11 @@ module Adamantium
memo[year][date.strftime("%m")][date.strftime("%d")] += 1
end
podcast_scrobble_repo.listing.each do |scrobble|
post_stats[scrobble.listened_at.year][scrobble.listened_at.strftime("%m")][scrobble.listened_at.strftime("%d")] += 1
end
post_stats.sort_by{|k, _| -k}
post_stats.sort_by { |k, _| -k }
end
private_expose :date do |year:, month:, day:|

View File

@@ -4,7 +4,6 @@ module Admin
module Actions
module Books
class Create < Admin::Action
include Deps["repos.book_repo"]
def handle(req, resp)

View File

@@ -4,7 +4,6 @@ module Admin
module Actions
module Books
class Update < Admin::Action
include Deps["repos.book_repo"]
def handle(req, resp)

View File

@@ -4,7 +4,6 @@ module Admin
module Views
module Books
class Index < Admin::View
include Deps["repos.book_repo"]
expose :books do

View File

@@ -29,7 +29,7 @@ module Micropub
reply[:post_id] = post.id
webmentions_repo.create(reply)
webmentions_repo.create(like)
res.body = {
result: "Webmention was successful"
}.to_json