Add job to clean dead links

This commit is contained in:
2023-05-08 21:57:32 +10:00
parent 96c23eafa6
commit ebdf051b82
9 changed files with 92 additions and 0 deletions

View File

@@ -7,6 +7,13 @@ module Admin
.to_a
end
def list_published
posts
.published
.where(post_type: "bookmark")
.to_a
end
def fetch(id:)
posts.where(id: id).one
end