Archive webmentions if they have been removed from their source

This commit is contained in:
2024-02-11 10:36:26 +11:00
parent 65ed6f5731
commit 915b4fcd1f
7 changed files with 83 additions and 0 deletions

View File

@@ -80,6 +80,14 @@ namespace :blog do
user_repo = Admin::Container["repos.user_repo"]
user_repo.create(id: SecureRandom.uuid, email: args[:email])
end
task clean_webmentions: ["blog:load_environment"] do
require "hanami/prepare"
require "que"
Que.connection = Adamantium::Container["persistence.db"]
Adamantium::Jobs::ArchiveDeletedWebmentions.enqueue
end
end
namespace :tailwind do