[openstreetmap/openstreetmap-website] Account deletion cool-down period (PR #4313)
Anton Khorev
notifications at github.com
Fri Nov 17 20:19:49 UTC 2023
@AntonKhorev commented on this pull request.
> @@ -407,6 +407,14 @@ def max_changeset_comments_per_hour
end
end
+ def deletion_allowed_at
+ last_changeset = changesets.first
+ if last_changeset
+ earliest_possible_time = last_changeset.created_at + Settings.user_account_deletion_delay.hours
Added index to changesets.closed_at etc. Setting of `0` won't disable the delay with approach 2 as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4313#discussion_r1397844767
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4313/review/1737854657 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231117/b9ba6510/attachment.htm>
More information about the rails-dev
mailing list