[#1335] Refactored UserMute and UserBlock into UserRelationship, introduced EctoEnum.
This commit is contained in:
parent
01d9c093c3
commit
aad6576130
15 changed files with 239 additions and 317 deletions
7
lib/pleroma/ecto_enums.ex
Normal file
7
lib/pleroma/ecto_enums.ex
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Pleroma: A lightweight social networking server
|
||||
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import EctoEnum
|
||||
|
||||
defenum(UserRelationshipTypeEnum, block: 1, mute: 2, reblog_mute: 3, notification_mute: 4)
|
||||
Loading…
Add table
Add a link
Reference in a new issue