aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/user.ex
diff options
context:
space:
mode:
authorLain Soykaf <lain@soykaf.club>2021-01-28 09:33:30 +0100
committerLain Soykaf <lain@soykaf.club>2021-01-28 09:33:30 +0100
commitd18ba133b2db3d6af05cce191c5ea0c200b57346 (patch)
treeaac2e5fa108474fc8b2e369647075ab1a506b9b4 /lib/pleroma/user.ex
parent633d0286b3cecc5140490b3a27e2732f98e012c5 (diff)
downloadpleroma-groups.tar.gz
Groups: Basic group validation.groups
Diffstat (limited to 'lib/pleroma/user.ex')
-rw-r--r--lib/pleroma/user.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 1e5c87403..5d9016e96 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -18,6 +18,7 @@ defmodule Pleroma.User do
alias Pleroma.Emoji
alias Pleroma.FollowingRelationship
alias Pleroma.Formatter
+ alias Pleroma.Group
alias Pleroma.HTML
alias Pleroma.Keys
alias Pleroma.MFA
@@ -209,6 +210,9 @@ defmodule Pleroma.User do
on_replace: :delete
)
+ # Some `users` are actually groups. In this case, they can have a corresponding `Group`
+ has_one(:group, Group)
+
timestamps()
end