Skip to content

Commit

Permalink
Remove: Backup archive takeout limit
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Dec 17, 2022
1 parent 4a4f3bd commit d8e0d55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/policies/backup_policy.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

class BackupPolicy < ApplicationPolicy
MIN_AGE = 1.day

def create?
user_signed_in? && current_user.backups.where('created_at >= ?', MIN_AGE.ago).count.zero?
user_signed_in?
end
end
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ en:
archive_takeout:
date: Date
download: Download your archive
hint_html: You can request an archive of your <strong>posts and uploaded media</strong>. The exported data will be in the ActivityPub format, readable by any compliant software. You can request an archive every day.
hint_html: You can request an archive of your <strong>posts and uploaded media</strong>. The exported data will be in the ActivityPub format, readable by any compliant software. You can request an archive every 7 days.
in_progress: Compiling your archive...
request: Request your archive
size: Size
Expand Down
2 changes: 1 addition & 1 deletion config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ ja:
archive_takeout:
date: 日時
download: ダウンロード
hint_html: "<strong>投稿本文とメディア</strong>のアーカイブをリクエストできます。 データはActivityPub形式で、対応しているソフトウェアで読み込むことができます。1日毎にアーカイブをリクエストできます"
hint_html: "<strong>投稿本文とメディア</strong>のアーカイブをリクエストできます。 データはActivityPub形式で、対応しているソフトウェアで読み込むことができます。7日毎にアーカイブをリクエストできます"
in_progress: 準備中...
request: アーカイブをリクエスト
size: 容量
Expand Down

0 comments on commit d8e0d55

Please sign in to comment.