CocoQuark
(Coconut Flavored Quark)
December 16, 2024, 8:54pm
2
Yes:
end
new_raw = p.raw.gsub(regex, replace)
if new_raw != p.raw
begin
p.revise(Discourse.system_user, { raw: new_raw }, bypass_bump: true, skip_revision: true)
putc "."
i += 1
rescue StandardError
puts "\nFailed to remap post (topic_id: #{p.topic_id}, post_id: #{p.id})\n"
end
end
end
i
end
desc "monitor rebaking progress for the current unbaked post count; Ctrl-C to exit"
task "posts:monitor_rebaking_progress", [:csv] => [:environment] do |_, args|
if args[:csv]
An answer for a similar output can be found here:
They are most likely posts that were deleted earlier.
Posts are normally soft-deleted unless the hidden setting is enabled, so I’m not sure what actions can hard-delete a post so it is removed from the database. But the explanation makes sense anyway.
1 Like