Kitaiti Makoto
b5eb2628f9
Don't remove records after testing
2021-01-24 23:30:20 +09:00
Kitaiti Makoto
4ef6561cc6
Extract login() from test function
2021-01-24 21:38:51 +09:00
Kitaiti Makoto
7f54f418a8
Suppress clippy
2021-01-24 19:49:49 +09:00
Kitaiti Makoto
8f90ea18bf
Add tests for edit link presence
2021-01-24 19:37:49 +09:00
Kitaiti Makoto
e12528aae4
Extract launch_rocket() from main() as public within crate scope
2021-01-24 19:28:05 +09:00
Kitaiti Makoto
fc8ee1c3bc
Remove searcher from arguments of Post::delete() and dependented methods
2021-01-16 16:38:18 +09:00
Kitaiti Makoto
864379fb81
Remove searcher from arguments of Post::update()
2021-01-16 16:34:36 +09:00
Kitaiti Makoto
6ad3359609
Remove searcher from arguments of Post::insert()
2021-01-16 16:25:36 +09:00
Kitaiti Makoto
e18be6ec95
Initialize SearchActor at start
2021-01-16 16:22:39 +09:00
Kitaiti Makoto
996dc309f7
Make Searcher::open_or_create() accept path and tokenizers
2021-01-16 16:22:38 +09:00
Kitaiti Makoto
09d9164a1c
Extract Searcher::open_or_recreate() from main()
2021-01-16 16:22:38 +09:00
Kitaiti Makoto
26ffde726f
Run cargo fmt
2021-01-16 01:13:45 +09:00
Kitaiti Makoto
f720dcbe9a
Remove underscore prefix from route methods to suppress clippy
2021-01-15 23:58:48 +09:00
Kitaiti Makoto
33fceddc08
Use is_empty() instead of comparing with ""
2021-01-15 23:25:07 +09:00
Kitaiti Makoto
dfe83aafc5
Replace as_ref().map() with as_deref()
2021-01-15 23:21:33 +09:00
Kitaiti Makoto
0775c8f3f9
Fix redundant method chains
2021-01-15 23:19:47 +09:00
Kitaiti Makoto
012c8d2026
Remove redundant imports
2021-01-15 22:35:19 +09:00
Aiden McClelland
24aac22b89
proxy support
2021-01-11 13:27:52 -07:00
Kitaiti Makoto
b9b9af6c44
Initialize tracing subscriber
2021-01-11 09:15:34 +09:00
Kitaiti Makoto
4a4534d6f3
Run cargo fmt
2021-01-11 09:05:31 +09:00
Kitaiti Makoto
b93ebedaf3
Revert "Initialize Rocket early to initialize logger early"
...
This reverts commit 30093d3a9f
.
2021-01-09 18:41:47 +09:00
Kitaiti Makoto
c1abd3d6f9
Use eprintln! instead of println! for console message
2021-01-06 21:40:14 +09:00
Kitaiti Makoto
becb40544c
Replace println!()s with logging macros
2021-01-06 21:40:14 +09:00
Kitaiti Makoto
ee96d2b754
Fix a typo
2021-01-06 21:40:14 +09:00
Kitaiti Makoto
30093d3a9f
Initialize Rocket early to initialize logger early
2021-01-06 21:40:14 +09:00
Kitaiti Makoto
29f2239e3f
Extract dotenv initialization from init_pool because it affects not only database
2021-01-06 21:40:14 +09:00
Kitaiti Makoto
bca870f1f8
Percent encode URI for remote_interact
2021-01-03 05:49:45 +09:00
Kitaiti Makoto
51e5a401a5
Update Welsh translation
2021-01-02 22:45:04 +09:00
KitaitiMakoto
d44c034f6a
Merge branch 'main' into better-caching
2020-12-06 17:31:53 +00:00
Kitaiti Makoto
50462204e8
Run cargo fmt
2020-12-07 02:04:37 +09:00
Kitaiti Makoto
4e6d7b70cf
Keep tags as-is
2020-11-22 22:24:43 +09:00
Ana Gelez
f28ab19dc0
Merge branch 'serra-allgood/#754-display-error-for-duplicated-blocklist-email' of https://github.com/serra-allgood/Plume into gh-pr-818
2020-11-22 12:43:46 +01:00
Serra Allgood
43fde90387
Fix displaying not found page when submitting a duplicated blocklist email
...
Signed-off-by: Serra Allgood <serra@allgood.dev>
2020-10-05 20:17:30 -07:00
Trinity Pointard
d626f3366d
add support for ldap
2020-10-04 12:18:22 +02:00
Trinity Pointard
b24f195e10
refactor login
...
first step toward ldap
should have no functionnal change
2020-10-03 13:21:31 +02:00
Kitaiti Makoto
5e30bede40
Don't care about needless return value of closures
2020-07-19 08:24:17 +09:00
Kitaiti Makoto
5cca66b346
Add action user can take to error message
2020-07-19 07:16:34 +09:00
Kitaiti Makoto
5fc827c1c9
Re-initialize search index when recreating is failed
2020-07-18 21:00:58 +09:00
Kitaiti Makoto
50753b3a65
Recreate search index if its format is outdated
2020-07-18 09:40:58 +09:00
Ana Gelez
719fec0828
Add a comment
2020-06-25 22:26:44 +02:00
Ana Gelez
90fdade566
Better caching
...
Based on @trinity-1686a's patch: https://github.com/Plume-org/Plume/issues/786#issuecomment-647170325
2020-06-25 22:20:31 +02:00
Gelez
d99b42582d
Add Persian to the list of languages ( #782 )
2020-06-17 18:33:58 +02:00
KITAITI Makoto
92a386277b
Switchable tokenizer ( #776 )
...
* [REFACTORING]Rename whitespace_tokenizer to tag_tokenizer for
registration
Name representing its purpose is preferred.
* Add lindera-tantivy to plume-model's dependencies
* Install lindera-tantivy
* Add SearchTokenizerConfig struct
* Add search tokenizers to config option
* Use CONFIG for tokenizers
* Use enum to hold tokenizer config instead of initializing on config phase
* Use guard instead of duplicate default values
* Use as_deref() instead of guard
* Move SearchTokenizer from plume-models to plume-models::search::tokenizer
* Rename SearchTokenizer to TokenizerKind
* Define SearchTokenierConfig::determine_tokenizer()
* Use determine_tokenizer in SearchTokenizerConfig::init()
* Pass tokenizer config to Searcher methods
* Add LowerCase filter to Lindera tokenizer
* Add test for Lindera tokenizer
* Define SEARCH_LANG env to specify tokenizers set
* Run cargo fmt
* Make Lindera tokenizer optional
* Fix typos
2020-06-17 16:57:28 +02:00
Daniel Watkins
efb76a3c17
remove dependency on runtime-fmt ( #773 )
...
Per the issue, "runtime-fmt uses perma-unstable rust APIs and is
therefore susceptible to breakage".
This replaces the two calls to rt_format! with .replace() and drops the
dependency.
Fixes #769
2020-05-18 20:18:07 +02:00
KITAITI Makoto
3be842c653
Make database connections configurable by environment variables ( #768 )
...
* Make env DB_MAX_SIZE and DB_MIN_IDLE recognizable
* Make database max size and minimum idle configurable
* Restore file permission
* Fail fast
2020-05-06 19:27:59 +02:00
KITAITI Makoto
180e34b07c
Fix Atom feed datetime format ( #766 )
2020-05-04 23:46:59 +02:00
KITAITI Makoto
847d6f7fac
Fix Atom feed ( #764 )
...
* Percent-encode URI segments in ap_url
* Fix invalid Atoms
* Remove redundant clone according to cargo clippy
* Revert "Percent-encode URI segments in ap_url"
This reverts commit 8253aa79bd
.
ActivityPub(JSON-LD) accepts URI.
See https://github.com/Plume-org/Plume/pull/764#issuecomment-623105734
* Use absolute IRI for IDs in Atom
* Reuse formatted string
* Use parent element's creation date for Atom updated if there's no post
* Remove uncecessary UTC conversion
* Extract routes::build_atom_feed function
2020-05-04 15:28:52 +02:00
KITAITI Makoto
71e0a35e06
Use LenientForm instead Form for CSRF protected pages ( #751 )
2020-04-18 11:45:28 +02:00
KITAITI Makoto
b834d1c282
Fix #701 Preferable default theme ( #746 )
...
* Make it possible to update users.preferred_theme to NULL
* Make preferred them null when 'Default theme' is selected
* Run cargo fmt
2020-04-12 17:36:00 +02:00
Ana Gelez
5f8d6b8e0e
Rust 2018! ( #726 )
2020-01-21 07:02:03 +01:00