mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-25 13:01:08 +00:00
309e1200d0
* Make a distinction between moderators and admins And rework the user list in the moderation interface, to be able to run the same action on many users, and to have a huge list of actions whithout loosing space. * Make user's role an enum + make it impossible for a moderator to escalate privileges With the help of diesel-derive-enum (maybe it could be used in other places too?) Also, moderators are still able to grant or revoke moderation rights to other people, but maybe only admins should be able to do it? * Cargo fmt * copy/pasting is bad * Remove diesel-derive-enum and use an integer instead It was not compatible with both Postgres and SQlite, because for one it generated a schema with the "User_role" type, but for the other it was "Text"… * Reset translations * Use an enum to avoid magic numbers + fix the tests * Reset translations * Fix down.sql
54 lines
1.1 KiB
TOML
54 lines
1.1 KiB
TOML
[package]
|
|
name = "plume-models"
|
|
version = "0.3.0"
|
|
authors = ["Plume contributors"]
|
|
|
|
[dependencies]
|
|
activitypub = "0.1.1"
|
|
ammonia = "2.1.1"
|
|
askama_escape = "0.1"
|
|
bcrypt = "0.5"
|
|
guid-create = "0.1"
|
|
heck = "0.3.0"
|
|
itertools = "0.8.0"
|
|
lazy_static = "*"
|
|
migrations_internals= "1.4.0"
|
|
openssl = "0.10.22"
|
|
rocket = "0.4.0"
|
|
rocket_i18n = { git = "https://github.com/Plume-org/rocket_i18n", rev = "e922afa7c366038b3433278c03b1456b346074f2" }
|
|
reqwest = "0.9"
|
|
scheduled-thread-pool = "0.2.2"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
tantivy = "0.10.1"
|
|
url = "2.1"
|
|
walkdir = "2.2"
|
|
webfinger = "0.4.1"
|
|
whatlang = "0.7.1"
|
|
shrinkwraprs = "0.2.1"
|
|
diesel-derive-newtype = "0.1.2"
|
|
|
|
[dependencies.chrono]
|
|
features = ["serde"]
|
|
version = "0.4"
|
|
|
|
[dependencies.diesel]
|
|
features = ["r2d2", "chrono"]
|
|
version = "1.4.2"
|
|
|
|
[dependencies.plume-api]
|
|
path = "../plume-api"
|
|
|
|
[dependencies.plume-common]
|
|
path = "../plume-common"
|
|
|
|
[dependencies.plume-macro]
|
|
path = "../plume-macro"
|
|
|
|
[dev-dependencies]
|
|
diesel_migrations = "1.3.0"
|
|
|
|
[features]
|
|
postgres = ["diesel/postgres", "plume-macro/postgres" ]
|
|
sqlite = ["diesel/sqlite", "plume-macro/sqlite" ]
|