eguneraketa

This commit is contained in:
aitzol 2024-01-06 17:48:05 +01:00
parent 56f6e46c71
commit 59e1123d35
58 changed files with 31490 additions and 20922 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@ __pycache__
.vscode/
*-journal
.direnv/
build.log*

View File

@ -8,11 +8,16 @@
- Add 'My feed' to i18n timeline name (#1084)
- Bidirectional support for user page header (#1092)
- Add non anonymous bind to LDAP server, taken from https://git.joinplu.me/Plume/Plume/src/branch/ldap-non-anon PR
### Changed
- Use blog title as slug (#1094, #1126, #1127)
- Bump Rust to nightly 2022-07-19 (#1119)
- Force LDAP simple bind with *cn* rdn instead of *uid*
- Update rust-toolchain to nightly-2023-04-14
- Update chrono from 0.4.0 to 0.4.31
- Update scheduled-thread-pool from 0.2.6 to 0.2.7
### Fixed
@ -22,6 +27,11 @@
- Allow empty avatar for remote users (#1129)
- Percent encode blog FQN for federation interoperability (#1129)
- The same to `preferredUsername` (#1129)
- Deprecation warnings on build(see updates)
### To do
- Choose rdn via environment variables for LDAP simple bind
## [[0.7.2]] - 2022-05-11

264
Cargo.lock generated
View File

@ -126,6 +126,19 @@ dependencies = [
"version_check 0.9.4",
]
[[package]]
name = "ahash"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a"
dependencies = [
"cfg-if 1.0.0",
"getrandom 0.2.8",
"once_cell",
"version_check 0.9.4",
"zerocopy",
]
[[package]]
name = "aho-corasick"
version = "0.7.20"
@ -148,6 +161,12 @@ dependencies = [
"url 2.3.1",
]
[[package]]
name = "android-tzdata"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
version = "0.1.5"
@ -212,8 +231,8 @@ version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "677d1d8ab452a3936018a687b20e6f7cf5363d713b732b8884001317b0e48aa3"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -444,7 +463,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b872f3528eeeb4370ee73b51194dc1cd93680c2d0eb6c7a223889038d2c1a167"
dependencies = [
"quote 1.0.23",
"quote 1.0.35",
"syn 1.0.107",
]
@ -553,18 +572,17 @@ dependencies = [
[[package]]
name = "chrono"
version = "0.4.23"
version = "0.4.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-integer",
"num-traits 0.2.15",
"serde 1.0.152",
"time 0.1.45",
"wasm-bindgen",
"winapi 0.3.9",
"windows-targets",
]
[[package]]
@ -981,8 +999,8 @@ dependencies = [
"cc",
"codespan-reporting",
"once_cell",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"scratch",
"syn 1.0.107",
]
@ -999,8 +1017,8 @@ version = "1.0.85"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e7e2adeb6a0d4a282e581096b06e1791532b7d576dcde5ccd9382acf55db8e6"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1022,8 +1040,8 @@ checksum = "a784d2ccaf7c98501746bf0be29b2022ba41fd62a2e622af997a03e9f972859f"
dependencies = [
"fnv",
"ident_case",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"strsim 0.10.0",
"syn 1.0.107",
]
@ -1035,7 +1053,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7618812407e9402654622dd402b0a89dff9ba93badd6540781526117b92aab7e"
dependencies = [
"darling_core",
"quote 1.0.23",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1097,8 +1115,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c11bdc11a0c47bc7d37d582b5285da6849c96681023680b906673c5707af7b0f"
dependencies = [
"darling",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1176,8 +1194,8 @@ version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45f5098f628d02a7a0f68ddba586fb61e80edec3bdc1be3b921f4ceec60858d3"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1391,8 +1409,8 @@ version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
"synstructure",
]
@ -1612,8 +1630,8 @@ version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1699,8 +1717,8 @@ checksum = "649db3b5cda06091ea6aacb9f66f7002dfe885505b324b8ed795261253ffc2b3"
dependencies = [
"gettext",
"gettext-utils",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -1859,6 +1877,12 @@ dependencies = [
"ahash 0.7.6",
]
[[package]]
name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "hermit-abi"
version = "0.1.19"
@ -1931,8 +1955,8 @@ dependencies = [
"log 0.4.17",
"mac",
"markup5ever",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -2660,8 +2684,8 @@ version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -2727,8 +2751,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9753f12909fd8d923f75ae5c3258cae1ed3c8ec052e1b38c93c21a6d157f789c"
dependencies = [
"migrations_internals",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -3164,8 +3188,8 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -3358,8 +3382,8 @@ version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -3403,7 +3427,7 @@ dependencies = [
[[package]]
name = "plume"
version = "0.7.3-dev"
version = "0.7.3-dev-fork"
dependencies = [
"activitystreams",
"atom_syndication",
@ -3519,6 +3543,7 @@ name = "plume-models"
version = "0.7.2"
dependencies = [
"activitystreams",
"ahash 0.8.6",
"ammonia",
"assert-json-diff",
"bcrypt",
@ -3528,6 +3553,7 @@ dependencies = [
"diesel_migrations",
"glob",
"guid-create",
"heck",
"itertools 0.10.5",
"lazy_static",
"ldap3",
@ -3597,8 +3623,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
"version_check 0.9.4",
]
@ -3609,8 +3635,8 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"version_check 0.9.4",
]
@ -3655,9 +3681,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
version = "1.0.49"
version = "1.0.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5"
checksum = "907a61bd0f64c2f29cd1cf1dc34d05176426a3f504a78010f08416ddb7b13708"
dependencies = [
"unicode-ident",
]
@ -3728,11 +3754,11 @@ dependencies = [
[[package]]
name = "quote"
version = "1.0.23"
version = "1.0.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
dependencies = [
"proc-macro2 1.0.49",
"proc-macro2 1.0.75",
]
[[package]]
@ -4438,9 +4464,9 @@ dependencies = [
[[package]]
name = "scheduled-thread-pool"
version = "0.2.6"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "977a7519bff143a44f842fd07e80ad1329295bd71686457f18e496736f4bf9bf"
checksum = "3cbc66816425a074528352f5789333ecff06ca41b36b0b0efdfbb29edc391a19"
dependencies = [
"parking_lot 0.12.1",
]
@ -4529,8 +4555,8 @@ version = "1.0.152"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -4619,8 +4645,8 @@ checksum = "e63e6744142336dfb606fe2b068afa2e1cca1ee6a5d8377277a92945d81fa331"
dependencies = [
"bitflags 1.3.2",
"itertools 0.8.2",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -4791,8 +4817,8 @@ checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"
dependencies = [
"phf_generator",
"phf_shared",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
]
[[package]]
@ -4852,8 +4878,19 @@ version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f"
dependencies = [
"proc-macro2 1.0.75",
"quote 1.0.35",
"unicode-ident",
]
@ -4863,8 +4900,8 @@ version = "0.12.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
"unicode-xid 0.2.4",
]
@ -5086,8 +5123,8 @@ version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -5273,8 +5310,8 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -5284,8 +5321,8 @@ version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -5475,8 +5512,8 @@ version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
]
@ -5718,8 +5755,8 @@ dependencies = [
"if_chain",
"lazy_static",
"proc-macro-error",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"regex",
"syn 1.0.107",
"validator_types",
@ -5731,7 +5768,7 @@ version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2ddf34293296847abfc1493b15c6e2f5d3cd19f57ad7d22673bf4c6278da329"
dependencies = [
"proc-macro2 1.0.49",
"proc-macro2 1.0.75",
"syn 1.0.107",
]
@ -5842,8 +5879,8 @@ dependencies = [
"bumpalo",
"log 0.4.17",
"once_cell",
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
"wasm-bindgen-shared",
]
@ -5866,7 +5903,7 @@ version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
dependencies = [
"quote 1.0.23",
"quote 1.0.35",
"wasm-bindgen-macro-support",
]
@ -5876,8 +5913,8 @@ version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
dependencies = [
"proc-macro2 1.0.49",
"quote 1.0.23",
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 1.0.107",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
@ -5982,21 +6019,42 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_gnullvm 0.42.0",
"windows_aarch64_msvc 0.42.0",
"windows_i686_gnu 0.42.0",
"windows_i686_msvc 0.42.0",
"windows_x86_64_gnu 0.42.0",
"windows_x86_64_gnullvm",
"windows_x86_64_gnullvm 0.42.0",
"windows_x86_64_msvc 0.42.0",
]
[[package]]
name = "windows-targets"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
dependencies = [
"windows_aarch64_gnullvm 0.48.5",
"windows_aarch64_msvc 0.48.5",
"windows_i686_gnu 0.48.5",
"windows_i686_msvc 0.48.5",
"windows_x86_64_gnu 0.48.5",
"windows_x86_64_gnullvm 0.48.5",
"windows_x86_64_msvc 0.48.5",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_msvc"
version = "0.36.1"
@ -6009,6 +6067,12 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4"
[[package]]
name = "windows_aarch64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_i686_gnu"
version = "0.36.1"
@ -6021,6 +6085,12 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7"
[[package]]
name = "windows_i686_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_msvc"
version = "0.36.1"
@ -6033,6 +6103,12 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246"
[[package]]
name = "windows_i686_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_x86_64_gnu"
version = "0.36.1"
@ -6045,12 +6121,24 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed"
[[package]]
name = "windows_x86_64_gnu"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_msvc"
version = "0.36.1"
@ -6063,6 +6151,12 @@ version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5"
[[package]]
name = "windows_x86_64_msvc"
version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "winreg"
version = "0.6.2"
@ -6145,6 +6239,26 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec"
[[package]]
name = "zerocopy"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
dependencies = [
"proc-macro2 1.0.75",
"quote 1.0.35",
"syn 2.0.48",
]
[[package]]
name = "zeroize"
version = "1.5.7"

View File

@ -1,9 +1,9 @@
[package]
authors = ["Plume contributors"]
name = "plume"
version = "0.7.3-dev"
repository = "https://github.com/Plume-org/Plume"
edition = "2018"
version = "0.7.3-dev-fork"
repository = "https://git.lainoa.eus/aitzol/Plume"
edition = "2021"
[dependencies]
atom_syndication = "0.12.0"
@ -14,11 +14,11 @@ gettext-macros = "0.6.1"
gettext-utils = "0.1.0"
guid-create = "0.2"
lettre_email = "0.9.2"
num_cpus = "1.10"
num_cpus = "1.16.0"
rocket = "0.4.11"
rocket_contrib = { version = "0.4.11", features = ["json"] }
rocket_i18n = "0.4.1"
scheduled-thread-pool = "0.2.6"
scheduled-thread-pool = "0.2.7"
serde = "1.0.137"
serde_json = "1.0.81"
shrinkwraprs = "0.3.0"
@ -35,7 +35,7 @@ path = "src/main.rs"
[dependencies.chrono]
features = ["serde"]
version = "0.4"
version = "0.4.31"
[dependencies.ctrlc]
features = ["termination"]

View File

@ -30,8 +30,7 @@ FROM debian:stable-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libpq5 \
libssl1.1
libpq5
WORKDIR /app

1515
build.log Normal file

File diff suppressed because it is too large Load Diff

1568
build.log.1 Normal file

File diff suppressed because it is too large Load Diff

1558
build.log.2 Normal file

File diff suppressed because it is too large Load Diff

1540
build.log.3 Normal file

File diff suppressed because it is too large Load Diff

1522
build.log.4 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@ futures = "0.3.25"
[dependencies.chrono]
features = ["serde"]
version = "0.4"
version = "0.4.31"
[dependencies.pulldown-cmark]
default-features = false

View File

@ -16,7 +16,7 @@ openssl = "0.10.40"
rocket = "0.4.11"
rocket_i18n = "0.4.1"
reqwest = "0.11.11"
scheduled-thread-pool = "0.2.6"
scheduled-thread-pool = "0.2.7"
serde = "1.0.137"
rust-s3 = { version = "0.33.0", optional = true, features = ["blocking"] }
serde_derive = "1.0"
@ -41,7 +41,7 @@ heck = "0.4.1"
[dependencies.chrono]
features = ["serde"]
version = "0.4"
version = "0.4.31"
[dependencies.diesel]
features = ["r2d2", "chrono"]

View File

@ -136,7 +136,7 @@ impl Comment {
|id| Comment::get(conn, id).map(|comment| comment.ap_url.unwrap_or_default()),
)?);
note.set_published(
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos().into())
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos_opt().unwrap().into())
.expect("OffsetDateTime"),
);
note.set_attributed_to(author.into_id().parse::<IriString>()?);

View File

@ -373,7 +373,7 @@ impl Post {
}))?;
article.set_source(source);
article.set_published(
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos().into())
OffsetDateTime::from_unix_timestamp_nanos(self.creation_date.timestamp_nanos_opt().unwrap().into())
.expect("OffsetDateTime"),
);
article.set_summary(&*self.subtitle);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,9 @@ msgstr ""
msgid "Your feed"
msgstr ""
msgid "My feed"
msgstr ""
msgid "Local feed"
msgstr ""
@ -222,139 +225,19 @@ msgstr ""
msgid "You can't delete someone else's account."
msgstr ""
msgid "Create your account"
msgstr ""
msgid "Create an account"
msgstr ""
msgid "Email"
msgstr ""
msgid "Email confirmation"
msgstr ""
msgid "An email will be sent to provided email. You can continue signing-up via the email."
msgstr ""
msgid "Apologies, but registrations are closed on this particular instance. You can, however, find a different one."
msgstr ""
msgid "Registration"
msgstr ""
msgid "Check your inbox!"
msgstr ""
msgid "We sent a mail to the address you gave us, with a link for registration."
msgstr ""
msgid "Username"
msgstr ""
msgid "Password"
msgstr ""
msgid "Password confirmation"
msgstr ""
msgid "Media upload"
msgstr ""
msgid "Description"
msgstr ""
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
msgid "Content warning"
msgstr ""
msgid "Leave it empty, if none is needed"
msgstr ""
msgid "File"
msgstr ""
msgid "Send"
msgstr ""
msgid "Your media"
msgstr ""
msgid "Upload"
msgstr ""
msgid "You don't have any media yet."
msgstr ""
msgid "Content warning: {0}"
msgstr ""
msgid "Delete"
msgstr ""
msgid "Details"
msgstr ""
msgid "Media details"
msgstr ""
msgid "Go back to the gallery"
msgstr ""
msgid "Markdown syntax"
msgstr ""
msgid "Copy it into your articles, to insert this media:"
msgstr ""
msgid "Use as an avatar"
msgstr ""
msgid "Plume"
msgstr ""
msgid "Menu"
msgstr ""
msgid "Search"
msgstr ""
msgid "Dashboard"
msgstr ""
msgid "Notifications"
msgstr ""
msgid "Log Out"
msgid "{0}'s subscriptions"
msgstr ""
msgid "My account"
msgid "Articles"
msgstr ""
msgid "Log In"
msgid "Subscribers"
msgstr ""
msgid "Register"
msgstr ""
msgid "About this instance"
msgstr ""
msgid "Privacy policy"
msgstr ""
msgid "Administration"
msgstr ""
msgid "Documentation"
msgstr ""
msgid "Source code"
msgstr ""
msgid "Matrix room"
msgid "Subscriptions"
msgstr ""
msgid "Admin"
@ -375,30 +258,30 @@ msgstr ""
msgid "Subscribe"
msgstr ""
msgid "Follow {}"
msgid "Create your account"
msgstr ""
msgid "Log in to follow"
msgid "Create an account"
msgstr ""
msgid "Enter your full username handle to follow"
msgid "Username"
msgstr ""
msgid "Email"
msgstr ""
msgid "Password"
msgstr ""
msgid "Password confirmation"
msgstr ""
msgid "Apologies, but registrations are closed on this particular instance. You can, however, find a different one."
msgstr ""
msgid "{0}'s subscribers"
msgstr ""
msgid "Articles"
msgstr ""
msgid "Subscribers"
msgstr ""
msgid "Subscriptions"
msgstr ""
msgid "{0}'s subscriptions"
msgstr ""
msgid "Your Dashboard"
msgstr ""
@ -414,9 +297,21 @@ msgstr ""
msgid "Your Drafts"
msgstr ""
msgid "Your media"
msgstr ""
msgid "Go to your gallery"
msgstr ""
msgid "Follow {}"
msgstr ""
msgid "Log in to follow"
msgstr ""
msgid "Enter your full username handle to follow"
msgstr ""
msgid "Edit your account"
msgstr ""
@ -471,10 +366,81 @@ msgstr ""
msgid "Recently boosted"
msgstr ""
msgid "Articles tagged \"{0}\""
msgid "Nothing to see here yet."
msgstr ""
msgid "There are currently no articles with such a tag"
msgid "Edit"
msgstr ""
msgid "By {0}"
msgstr ""
msgid "Draft"
msgstr ""
msgid "One like"
msgid_plural "{0} likes"
msgstr[0] ""
msgid "One boost"
msgid_plural "{0} boosts"
msgstr[0] ""
msgid "What is Plume?"
msgstr ""
msgid "Plume is a decentralized blogging engine."
msgstr ""
msgid "Authors can manage multiple blogs, each as its own website."
msgstr ""
msgid "Articles are also visible on other Plume instances, and you can interact with them directly from other platforms like Mastodon."
msgstr ""
msgid "About {0}"
msgstr ""
msgid "Home to <em>{0}</em> people"
msgstr ""
msgid "Who wrote <em>{0}</em> articles"
msgstr ""
msgid "Read the detailed rules"
msgstr ""
msgid "Respond"
msgstr ""
msgid "Are you sure?"
msgstr ""
msgid "Delete this comment"
msgstr ""
msgid "None"
msgstr ""
msgid "No description"
msgstr ""
msgid "You are not authorized."
msgstr ""
msgid "Invalid CSRF token"
msgstr ""
msgid "Something is wrong with your CSRF token. Make sure cookies are enabled in you browser, and try reloading this page. If you continue to see this error message, please report it."
msgstr ""
msgid "Page not found"
msgstr ""
msgid "We couldn't find this page."
msgstr ""
msgid "The link that led you here may be broken."
msgstr ""
msgid "The content you sent can't be processed."
@ -492,72 +458,172 @@ msgstr ""
msgid "Sorry about that. If you think this is a bug, please report it."
msgstr ""
msgid "Invalid CSRF token"
msgid "Articles tagged \"{0}\""
msgstr ""
msgid "Something is wrong with your CSRF token. Make sure cookies are enabled in you browser, and try reloading this page. If you continue to see this error message, please report it."
msgid "There are currently no articles with such a tag"
msgstr ""
msgid "You are not authorized."
msgid "New Blog"
msgstr ""
msgid "Page not found"
msgid "Create a blog"
msgstr ""
msgid "We couldn't find this page."
msgid "Title"
msgstr ""
msgid "The link that led you here may be broken."
msgid "Create blog"
msgstr ""
msgid "Users"
msgid "Edit \"{}\""
msgstr ""
msgid "Configuration"
msgid "Description"
msgstr ""
msgid "Markdown syntax is supported"
msgstr ""
msgid "You can upload images to your gallery, to use them as blog icons, or banners."
msgstr ""
msgid "Upload images"
msgstr ""
msgid "Blog icon"
msgstr ""
msgid "Blog banner"
msgstr ""
msgid "Custom theme"
msgstr ""
msgid "Update blog"
msgstr ""
msgid "Be very careful, any action taken here can't be reversed."
msgstr ""
msgid "Are you sure that you want to permanently delete this blog?"
msgstr ""
msgid "Permanently delete this blog"
msgstr ""
msgid "{}'s icon"
msgstr ""
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] ""
msgid "No posts to see here yet."
msgstr ""
msgid "Media upload"
msgstr ""
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
msgid "Content warning"
msgstr ""
msgid "Leave it empty, if none is needed"
msgstr ""
msgid "File"
msgstr ""
msgid "Send"
msgstr ""
msgid "Upload"
msgstr ""
msgid "You don't have any media yet."
msgstr ""
msgid "Content warning: {0}"
msgstr ""
msgid "Delete"
msgstr ""
msgid "Details"
msgstr ""
msgid "Media details"
msgstr ""
msgid "Go back to the gallery"
msgstr ""
msgid "Markdown syntax"
msgstr ""
msgid "Copy it into your articles, to insert this media:"
msgstr ""
msgid "Use as an avatar"
msgstr ""
msgid "I'm from this instance"
msgstr ""
msgid "Username, or email"
msgstr ""
msgid "Log in"
msgstr ""
msgid "I'm from another instance"
msgstr ""
msgid "Continue to your instance"
msgstr ""
msgid "Email confirmation"
msgstr ""
msgid "An email will be sent to provided email. You can continue signing-up via the email."
msgstr ""
msgid "Registration"
msgstr ""
msgid "Check your inbox!"
msgstr ""
msgid "We sent a mail to the address you gave us, with a link for registration."
msgstr ""
msgid "Administration of {0}"
msgstr ""
msgid "Instances"
msgstr ""
msgid "Configuration"
msgstr ""
msgid "Users"
msgstr ""
msgid "Email blocklist"
msgstr ""
msgid "Grant admin rights"
msgstr ""
msgid "Revoke admin rights"
msgstr ""
msgid "Grant moderator rights"
msgstr ""
msgid "Revoke moderator rights"
msgstr ""
msgid "Ban"
msgstr ""
msgid "Run on selected users"
msgstr ""
msgid "Moderator"
msgstr ""
msgid "Moderation"
msgstr ""
msgid "Home"
msgstr ""
msgid "Administration of {0}"
msgstr ""
msgid "Unblock"
msgstr ""
msgid "Block"
msgstr ""
msgid "Administration"
msgstr ""
msgid "Name"
msgstr ""
@ -567,9 +633,6 @@ msgstr ""
msgid "Short description"
msgstr ""
msgid "Markdown syntax is supported"
msgstr ""
msgid "Long description"
msgstr ""
@ -579,13 +642,22 @@ msgstr ""
msgid "Save these settings"
msgstr ""
msgid "If you are browsing this site as a visitor, no data about you is collected."
msgid "Welcome to {}"
msgstr ""
msgid "As a registered user, you have to provide your username (which does not have to be your real name), your functional email address and a password, in order to be able to log in, write articles and comment. The content you submit is stored until you delete it."
msgid "Runs Plume {0}"
msgstr ""
msgid "When you log in, we store two cookies, one to keep your session open, the second to prevent other people to act on your behalf. We don't store any other cookies."
msgid "And are connected to <em>{0}</em> other instances"
msgstr ""
msgid "Administred by"
msgstr ""
msgid "Moderation"
msgstr ""
msgid "Home"
msgstr ""
msgid "Blocklisted Emails"
@ -633,37 +705,100 @@ msgstr ""
msgid "The user will be silently prevented from making an account"
msgstr ""
msgid "Welcome to {}"
msgid "Search users"
msgstr ""
msgid "Nothing to see here yet."
msgid "Grant admin rights"
msgstr ""
msgid "About {0}"
msgid "Revoke admin rights"
msgstr ""
msgid "Runs Plume {0}"
msgid "Grant moderator rights"
msgstr ""
msgid "Home to <em>{0}</em> people"
msgid "Revoke moderator rights"
msgstr ""
msgid "Who wrote <em>{0}</em> articles"
msgid "Ban"
msgstr ""
msgid "And are connected to <em>{0}</em> other instances"
msgid "Run on selected users"
msgstr ""
msgid "Administred by"
msgid "Moderator"
msgstr ""
msgid "Interact with {}"
msgid "Privacy policy"
msgstr ""
msgid "Log in to interact"
msgid "If you are browsing this site as a visitor, no data about you is collected."
msgstr ""
msgid "Enter your full username to interact"
msgid "As a registered user, you have to provide your username (which does not have to be your real name), your functional email address and a password, in order to be able to log in, write articles and comment. The content you submit is stored until you delete it."
msgstr ""
msgid "When you log in, we store two cookies, one to keep your session open, the second to prevent other people to act on your behalf. We don't store any other cookies."
msgstr ""
msgid "This token has expired"
msgstr ""
msgid "Please start the process again by clicking <a href=\"/password-reset\">here</a>."
msgstr ""
msgid "Reset your password"
msgstr ""
msgid "New password"
msgstr ""
msgid "Confirmation"
msgstr ""
msgid "Update password"
msgstr ""
msgid "Send password reset link"
msgstr ""
msgid "We sent a mail to the address you gave us, with a link to reset your password."
msgstr ""
msgid "Plume"
msgstr ""
msgid "Menu"
msgstr ""
msgid "Search"
msgstr ""
msgid "Dashboard"
msgstr ""
msgid "Log Out"
msgstr ""
msgid "My account"
msgstr ""
msgid "Log In"
msgstr ""
msgid "Register"
msgstr ""
msgid "About this instance"
msgstr ""
msgid "Documentation"
msgstr ""
msgid "Source code"
msgstr ""
msgid "Matrix room"
msgstr ""
msgid "Publish"
@ -672,9 +807,6 @@ msgstr ""
msgid "Classic editor (any changes will be lost)"
msgstr ""
msgid "Title"
msgstr ""
msgid "Subtitle"
msgstr ""
@ -708,6 +840,15 @@ msgstr ""
msgid "Publish your post"
msgstr ""
msgid "Interact with {}"
msgstr ""
msgid "Log in to interact"
msgstr ""
msgid "Enter your full username to interact"
msgstr ""
msgid "Written by {0}"
msgstr ""
@ -717,20 +858,12 @@ msgstr ""
msgid "This article is under the {0} license."
msgstr ""
msgid "One like"
msgid_plural "{0} likes"
msgstr[0] ""
msgid "I don't like this anymore"
msgstr ""
msgid "Add yours"
msgstr ""
msgid "One boost"
msgid_plural "{0} boosts"
msgstr[0] ""
msgid "I don't want to boost this anymore"
msgstr ""
@ -752,151 +885,12 @@ msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
msgid "Are you sure?"
msgstr ""
msgid "This article is still a draft. Only you and other authors can see it."
msgstr ""
msgid "Only you and other authors can edit this article."
msgstr ""
msgid "Edit"
msgstr ""
msgid "I'm from this instance"
msgstr ""
msgid "Username, or email"
msgstr ""
msgid "Log in"
msgstr ""
msgid "I'm from another instance"
msgstr ""
msgid "Continue to your instance"
msgstr ""
msgid "Reset your password"
msgstr ""
msgid "New password"
msgstr ""
msgid "Confirmation"
msgstr ""
msgid "Update password"
msgstr ""
msgid "We sent a mail to the address you gave us, with a link to reset your password."
msgstr ""
msgid "Send password reset link"
msgstr ""
msgid "This token has expired"
msgstr ""
msgid "Please start the process again by clicking <a href=\"/password-reset\">here</a>."
msgstr ""
msgid "New Blog"
msgstr ""
msgid "Create a blog"
msgstr ""
msgid "Create blog"
msgstr ""
msgid "Edit \"{}\""
msgstr ""
msgid "You can upload images to your gallery, to use them as blog icons, or banners."
msgstr ""
msgid "Upload images"
msgstr ""
msgid "Blog icon"
msgstr ""
msgid "Blog banner"
msgstr ""
msgid "Custom theme"
msgstr ""
msgid "Update blog"
msgstr ""
msgid "Be very careful, any action taken here can't be reversed."
msgstr ""
msgid "Are you sure that you want to permanently delete this blog?"
msgstr ""
msgid "Permanently delete this blog"
msgstr ""
msgid "{}'s icon"
msgstr ""
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] ""
msgid "No posts to see here yet."
msgstr ""
msgid "None"
msgstr ""
msgid "No description"
msgstr ""
msgid "Respond"
msgstr ""
msgid "Delete this comment"
msgstr ""
msgid "What is Plume?"
msgstr ""
msgid "Plume is a decentralized blogging engine."
msgstr ""
msgid "Authors can manage multiple blogs, each as its own website."
msgstr ""
msgid "Articles are also visible on other Plume instances, and you can interact with them directly from other platforms like Mastodon."
msgstr ""
msgid "Read the detailed rules"
msgstr ""
msgid "By {0}"
msgstr ""
msgid "Draft"
msgstr ""
msgid "Search result(s) for \"{0}\""
msgstr ""
msgid "Search result(s)"
msgstr ""
msgid "No results for your query"
msgstr ""
msgid "No more results for your query"
msgstr ""
msgid "Advanced search"
msgstr ""
@ -953,3 +947,15 @@ msgstr ""
msgid "Article license"
msgstr ""
msgid "Search result(s) for \"{0}\""
msgstr ""
msgid "Search result(s)"
msgstr ""
msgid "No results for your query"
msgstr ""
msgid "No more results for your query"
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -101,7 +101,8 @@ Then try to restart Plume.
"#
)
}
let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
//let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
let workpool = ScheduledThreadPool::new(num_cpus::get());
// we want a fast exit here, so
let searcher = Arc::new(UnmanagedSearcher::open_or_recreate(
&CONFIG.search_index,

View File

@ -143,7 +143,7 @@ pub fn build_atom_feed(
FeedBuilder::default()
.title(title)
.id(uri)
.updated(DateTime::<Utc>::from_utc(*updated, Utc))
.updated(DateTime::<Utc>::from_naive_utc_and_offset(*updated, Utc))
.entries(
entries
.into_iter()
@ -182,9 +182,9 @@ fn post_to_atom(post: Post, conn: &Connection) -> Entry {
// Using RFC 4287 format, see https://tools.ietf.org/html/rfc4287#section-3.3 for dates
// eg: 2003-12-13T18:30:02Z (Z is here because there is no timezone support with the NaiveDateTime crate)
.published(Some(
DateTime::<Utc>::from_utc(post.creation_date, Utc).into(),
DateTime::<Utc>::from_naive_utc_and_offset(post.creation_date, Utc).into(),
))
.updated(DateTime::<Utc>::from_utc(post.creation_date, Utc))
.updated(DateTime::<Utc>::from_naive_utc_and_offset(post.creation_date, Utc))
.id(post.ap_url.clone())
.links(vec![LinkBuilder::default().href(post.ap_url).build()])
.build()