aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-01-18 14:57:48 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-01-18 14:57:48 +0100
commitb108b0565076d677a90ff38ec8926e1f3153b7f6 (patch)
tree1d3bd0b66d4bd29fce875b3157005503ff7c4fd5 /priv
parent84dcb55b0f1ef759eb27ee3e6a756c32f035981b (diff)
downloadpleroma-b108b0565076d677a90ff38ec8926e1f3153b7f6.tar.gz
Birth dates, birthday reminders API, allow instance admins to require minimum age
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/29220116183110_add_birth_date_to_users.exs10
-rw-r--r--priv/static/schemas/litepub-0.1.jsonld3
2 files changed, 12 insertions, 1 deletions
diff --git a/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs b/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
new file mode 100644
index 000000000..f610eeb10
--- /dev/null
+++ b/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add_if_not_exists(:birth_date, :date)
+ add_if_not_exists(:hide_birth_date, :boolean, default: false, null: false)
+ end
+ end
+end
diff --git a/priv/static/schemas/litepub-0.1.jsonld b/priv/static/schemas/litepub-0.1.jsonld
index e7722cf72..946099a6e 100644
--- a/priv/static/schemas/litepub-0.1.jsonld
+++ b/priv/static/schemas/litepub-0.1.jsonld
@@ -35,7 +35,8 @@
"alsoKnownAs": {
"@id": "as:alsoKnownAs",
"@type": "@id"
- }
+ },
+ "vcard": "http://www.w3.org/2006/vcard/ns#"
}
]
}