Don't display public activity by default when requiring consent

Just as we mentioned in the previous commit, there are places where we
aren't sure whether explicit consent is strictly required. So, when the
"require consent" setting is enabled, we're taking the safe approach.
This means that, in this case, we're only displaying a user's activity
if they've given explicit consent.
This commit is contained in:
Javi Martín
2025-10-08 15:37:33 +02:00
parent 92a76dd46e
commit 6d30e2d34e
5 changed files with 24 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
class RemoveDefaultValueInUserPublicActivity < ActiveRecord::Migration[7.1]
def change
change_table :users do |t|
t.change_default :public_activity, from: true, to: nil
end
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2025_10_09_085327) do
ActiveRecord::Schema[7.1].define(version: 2025_10_09_085528) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_trgm"
enable_extension "plpgsql"
@@ -1608,7 +1608,7 @@ ActiveRecord::Schema[7.1].define(version: 2025_10_09_085327) do
t.datetime "level_two_verified_at", precision: nil
t.string "erase_reason"
t.datetime "erased_at", precision: nil
t.boolean "public_activity", default: true
t.boolean "public_activity"
t.boolean "newsletter"
t.integer "notifications_count", default: 0
t.boolean "registering_with_oauth", default: false