Dessalines
12d50e42b4
Change join.lemmy.ml to join-lemmy.org ( #1628 )
2021-06-07 21:10:47 +00:00
Dessalines
ab2b8df1cb
Invalidate current logins on account deletion. Fixes #1602 ( #1603 )
2021-05-28 15:50:52 +00:00
Dessalines
b95bbe2fae
Fix nsfw posts showing for non-logged in users. Fixes #1614 ( #1615 )
2021-05-26 18:02:35 +00:00
Pavel Balashov
7008848f9c
Add additional slurs configuration option. Closes #1464 . ( #1612 )
...
* Actualize a comment about config initialization
* Add additional slurs functionality.
It is possible to additional regex for slurs filtering.
It can be done through `additional_slurs` option in config file.
2021-05-26 13:39:38 +00:00
96488684e6
Better slur regex
2021-04-27 12:32:56 +00:00
Dessalines
c864dfadf6
Fixing regex. Fixes #1593 ( #1594 )
...
* Fixing regex. Fixes #1593
* Fixing test
2021-04-26 18:18:12 +00:00
880c51687a
Merge branch 'main' into feature/mark_post_as_read
2021-04-26 10:44:19 -04:00
6d3778cafe
Changing unwrap_default to unwrap_or(false)
2021-04-26 09:50:34 -04:00
5b2be6f9df
Add show_read_posts filter. Fixes #1561
2021-04-24 18:26:50 -04:00
ed31deab00
Creator extra search results
2021-04-23 11:54:38 -04:00
ef7fe7586b
Some formatting
2021-04-23 02:40:10 -04:00
51e181c529
Don't search for communities or users when the id is included.
2021-04-23 02:30:13 -04:00
f8cd6fd445
Making more fields optional in the API.
...
- Fixes #1569
2021-04-23 02:30:13 -04:00
c86f5472fb
Adding listing_type to search.
2021-04-23 02:13:32 -04:00
a42ac3e58a
Add creator id to search. Fixes #765
2021-04-23 02:12:29 -04:00
db1abff857
Add option to limit community creation to admins only ( fixes #1586 ) ( #1587 )
...
* Add option to limit community creation to admins only (fixes #1586 )
* address review
2021-04-22 19:42:58 -04:00
efee2062dd
Mark accounts as bot nutomic ( #1565 )
...
* Mark account as bot. Fixes #1357
* Fix clippy
* Federate bot status using actor `type` field
* fix clippy
Co-authored-by: Dessalines <tyhou13@gmx.com>
2021-04-21 17:41:14 -04:00
Dessalines
9dc5605663
Merge pull request #1588 from LemmyNet/improved-logging
...
Improved logging
2021-04-21 10:34:47 -04:00
8bb3ba4a16
Add option to disable strict allowlist ( fixes #1486 ) ( #1581 )
...
* Add option to disable strict allowlist (fixes #1486 )
* adjust docs
2021-04-21 09:36:07 -04:00
78eee7dc9e
Improved logging
2021-04-21 14:45:10 +02:00
65a11a7239
Use .map_err in api code ( fixes #1573 ) ( #1575 )
...
* Use .map_err in api code (fixes #1573 )
* forgot some
2021-04-16 09:10:43 -04:00
c572dc0cc6
Remote mods can update/delete/undelete communities
2021-04-13 15:19:17 +02:00
b7d1d91309
For untagged commits, include hash in version name ( fixes #1563 )
2021-04-12 13:47:58 +02:00
aa79c5131f
Implement federated bans ( fixes #1298 ) ( #1553 )
...
* Implement federated bans (fixes #1298 )
* mod actions should always be federated to affected user, in addition to followers
* Make Undo/Block work for remote mods
* clippy fix
* fix federation test
* vscodium doesnt auto-save changes...
2021-04-09 11:01:26 -04:00
2e16b11db8
Forgot to remove extra fields for changepassword.
2021-04-08 21:14:26 -04:00
Dessalines
c3d64f996e
Removing community.creator column. Fixes #1504 ( #1541 )
...
* Removing community.creator column. Fixes #1504
* Fixing unit tests.
* Fixing federation tests.
2021-04-08 11:29:08 +00:00
Dessalines
1a70477fc7
Better DB default fields. ( #1560 )
...
* Better DB default fields.
* Fixing clippy
2021-04-08 11:19:58 +00:00
831ab76152
Version 0.10.3
2021-04-07 14:23:09 -04:00
Dessalines
727fa610d4
Merge pull request #1552 from LemmyNet/feature/1550-optional-config-values
...
Make some of the database config values optional (fixes #1550 )
2021-04-07 13:16:28 -04:00
Dessalines
7bd474a843
Adding a short site description. Fixes #1496 ( #1532 )
...
* Adding a short site description. Fixes #1496
- Renaming old description to sidebar
* Adding a back end site desc length check.
2021-04-07 11:40:35 +00:00
Dessalines
5fff927dc4
Adding matrix id validation check. Fixes #1520 ( #1538 )
2021-04-07 11:38:00 +00:00
d97129e7ae
Merge branch 'main' into change_password_api
2021-04-06 12:09:26 -04:00
ccdf117c8f
Make some of the database config values optional ( fixes #1550 )
2021-04-06 14:57:37 +02:00
a4c2421e74
Merge pull request #1537 from LemmyNet/add_users_active_monthly_community_sort
...
Adding users active monthly for community sort. Fixes #1527
2021-04-06 12:03:11 +00:00
bcdbced0dd
Merge pull request #1536 from LemmyNet/change_preferred_to_display_name
...
Changing preferred to display name. Fixes #1211
2021-04-06 12:02:50 +00:00
98216d8a3b
Merge pull request #1535 from LemmyNet/rust_captcha_features
...
Rust captcha features
2021-04-06 11:58:48 +00:00
7daee06383
Merge pull request #1529 from LemmyNet/show_score_setting
...
Adding a setting to show / hide scores. Fixes #1503
2021-04-06 11:47:31 +00:00
89b96511bf
Version 0.10.2
2021-04-05 13:21:08 -04:00
458767e3a8
Version 0.10.1
2021-04-05 10:29:14 -04:00
f0c96c28bf
Crash if config fails to load ( #1545 )
...
* Crash if config fails to load
* fix previous commit
2021-04-05 10:23:32 -04:00
ba517249e8
Version 0.10.0
2021-04-05 08:53:28 -04:00
f33f763278
Moving ChangePassword to its own API action. Fixes #1471
2021-04-01 17:39:01 -04:00
b893085d1f
Adding users active monthly for community sort. Fixes #1527
2021-04-01 14:34:27 -04:00
799ab94af3
Don't allow zero-space char in display name. Fixes #1317
2021-04-01 14:09:53 -04:00
bf7558830f
Changing preferred to display name. Fixes #1211
2021-04-01 13:57:45 -04:00
1ba570092e
Adding more rust captcha features. Fixes #1248
2021-04-01 13:30:24 -04:00
2f63fdbde0
Adding a setting to show / hide scores. Fixes #1503
2021-03-31 06:54:46 -04:00
722cdb78ba
Split lemmy_apub crate into two parts apub and apub_receive
2021-03-30 22:29:16 +02:00
36a79e18cd
Version 0.10.0-rc.13
2021-03-29 18:10:04 -04:00
4da6e42fc1
Fix websocket location to /api/vX
2021-03-29 17:48:37 -04:00
4c8f2e976e
Merge remote-tracking branch 'yerba/split-api-crate' into test_merge_api_crates_reorg
2021-03-29 16:24:50 -04:00
01fc1228d5
Fix API and clippy warnings
2021-03-29 20:55:08 +02:00
2309088b03
Renaming to api/v3
2021-03-29 11:26:15 -04:00
c2f8695c9a
Version 0.10.0-rc.12
2021-03-25 15:22:07 -04:00
249fcc5066
Split api crate into api_structs and api
2021-03-25 20:19:40 +01:00
34bdf4c7c5
Federate Matrix ID ( fixes #1438 )
2021-03-24 17:56:13 +01:00
3ca2453fc6
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-24 11:51:34 -04:00
8a10a9079f
Merge remote-tracking branch 'yerba/federated-moderation'
2021-03-24 11:48:02 -04:00
c7524d924b
Fix federation tests
2021-03-24 16:33:04 +01:00
7051207495
Version 0.10.0-rc.10
2021-03-23 14:46:18 -04:00
6758922a63
Version 0.10.0-rc.9
2021-03-23 14:17:44 -04:00
baab2e88a5
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-23 14:16:54 -04:00
b4276341af
Adding saved_only to GetComments and GetPosts. Fixes #1513
2021-03-22 10:39:54 -04:00
e4ead96d3a
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-22 10:29:10 -04:00
eb45bf2d0a
Moving admin to person table. Fixes #1515
2021-03-22 10:28:00 -04:00
d6bd072ea1
Make federation compatible with Lemmy v0.9.9
2021-03-22 15:08:06 +01:00
a5a0d90349
Address review comments
2021-03-22 13:52:00 +01:00
459b95bc7e
Make previous commit compile
2021-03-22 13:11:32 +01:00
Grishka
115b986edc
uh
2021-03-21 04:03:53 +03:00
Grishka
c14a505456
Fix JSON-LD contexts
2021-03-21 04:00:32 +03:00
c884510173
Creating default DB forms. Fixes #1511
2021-03-20 16:59:07 -04:00
1745b64ceb
Moving matrix_user_id to person table. #1438
2021-03-20 15:21:51 -04:00
4f54108a9c
Merge branch 'main' into federated-moderation
2021-03-19 17:11:34 +01:00
f55ef1d7ef
Version 0.10.0-rc.7
2021-03-19 11:46:46 -04:00
493598c1ba
A few suggestion fixes.
2021-03-19 10:02:58 -04:00
05b485b678
Merge branch 'Mart-Bogdan-1462-jwt-revocation-on-pwd-change' into jwt_revocation_dess
2021-03-19 00:31:49 -04:00
360d4ea8d1
Merge branch '1462-jwt-revocation-on-pwd-change' of https://github.com/Mart-Bogdan/lemmy into Mart-Bogdan-1462-jwt-revocation-on-pwd-change
2021-03-18 21:41:00 -04:00
9930c7288a
Merge branch 'split_user_table' into strictly_type_db_ids
2021-03-18 16:30:42 -04:00
8d9fab0389
Merge branch 'main' into split_user_table
2021-03-18 16:30:29 -04:00
c3efb9f7cf
Strictly typing DB id fields. Fixes #1498
2021-03-18 16:25:21 -04:00
4f7dca7c2b
Fix three federation test cases
2021-03-18 17:02:15 +01:00
5899b89ef2
Adding some comments to notifs.
2021-03-18 10:59:17 -04:00
99e5a4d1c3
Moving send email check inside function.
2021-03-18 10:52:25 -04:00
b3a5b4eb82
Refactor activitypub code
2021-03-17 18:12:37 +01:00
71067a8cb5
For FromApub trait, use is_mod_action: bool
instead
2021-03-16 18:26:19 +01:00
be00f63fb2
Allow remot moderators to do Remove/Post and Remove/Comment
2021-03-16 18:06:59 +01:00
270ce539bf
Removing some TODOS.
2021-03-15 18:18:50 -04:00
b9f483bc27
Version 0.10.0-rc.5
2021-03-15 14:50:50 -04:00
8ee624a542
Some changes
...
- Changing claim name to local_user_id to facilitate logout.
- Changing AddAdmin back to using person_id
2021-03-15 14:02:27 -04:00
621355b6ef
Insert announced activities into DB for fetching ( fixes #1494 )
2021-03-15 13:58:54 +01:00
Bogdan Mart
74272ed754
more correct tests
2021-03-13 22:36:40 +02:00
Bogdan Mart
4426c3176d
fix timestamp condition #1462
2021-03-13 22:18:26 +02:00
Bogdan Mart
7b0a09e84e
Merge remote-tracking branch 'origin/main' into 1462-jwt-revocation-on-pwd-change
...
* origin/main:
revert Compose file version from 3.3 to 2.2
Adding more mem limits
bump memory limit of iframely
Remove extra category_id s . Fixes #1429
Fixing wrong user_ and community icon and banner urls.
Remove category from activitypub context
Adding a password length check to other API actions. (#1474 )
Update test script
Use URL type in most outstanding struct fields (#1468 )
Forbid usage of unwrap
Upgrade Rust version
Rewrite settings implementation. Fixes #1270 (#1433 )
Rename `lemmy_structs` to `lemmy_api_structs`
# Conflicts:
# crates/db_schema/src/source/user.rs
2021-03-13 20:19:55 +02:00
Bogdan Mart
ab947f1f08
User token revocation upon password change
...
Added DB column validator_time and chedking that is is less then token's "Issuead at time"
Wip on #1462
2021-03-13 20:16:35 +02:00
5998c83b2a
Only sending private message if its a local user.
2021-03-12 15:18:03 -05:00
75a95acf04
Change joinuser, sendusermessage to use local_user_id
2021-03-12 10:54:47 -05:00
de14636e10
Fix code to allow sticky/lock from remote moderators
2021-03-12 16:46:36 +01:00
de39d57592
WIP: check that modifications are made by same user, add docs
2021-03-12 14:47:55 +01:00
7c039340ed
2nd pass. JWT now uses local_user_id
2021-03-11 17:47:44 -05:00
b1ca85b910
Fix clippy warning
2021-03-11 18:18:01 +01:00
50559de6d2
Add check so only mods can change stickied/locked state of posts
2021-03-11 18:11:59 +01:00
5d8ccbafe4
Fixing some tests 2
2021-03-11 11:54:03 -05:00
803aad3b3e
Add check so only author or mods can edit posts/comments
2021-03-11 17:50:47 +01:00
1a4c8c08ee
Fixing some tests
2021-03-11 11:41:04 -05:00
a2698dea92
Allow for remote mods to remove posts/comments
2021-03-11 17:21:45 +01:00
9cb4dad4b4
A first pass.
2021-03-10 23:43:11 -05:00
ddf4a667b1
~80% done
2021-03-10 17:33:55 -05:00
3ffae1f5b8
Allow adding remote users as community mods (ref #1061 )
2021-03-09 18:14:15 +01:00
dcf40db225
Update activitystreams to 0.7.0-alpha.11
2021-03-09 18:14:15 +01:00
9172eff65a
Implemented receiving activities to add/remove remote mods
2021-03-09 18:14:15 +01:00
0c484e8c76
Move moderators collection to separate HTTP endpoint
2021-03-09 18:14:15 +01:00
beb8b9fe69
Use collection for moderators, instead of attributedTo
(ref #1061 )
2021-03-09 18:14:15 +01:00
a1c7584875
Remove extra category_id s . Fixes #1429
2021-03-03 23:44:07 -05:00
ca3c1269f5
Merge branch 'main' of https://github.com/lemmynet/lemmy
2021-03-02 11:52:46 -05:00
dessalines
0a52396706
Merge pull request 'Forbid usage of unwrap' ( #179 ) from clippy-unwrap into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/179
2021-03-02 16:49:19 +00:00
7189328f80
Remove category from activitypub context
2021-03-02 17:12:45 +01:00
Dessalines
134fece36d
Adding a password length check to other API actions. ( #1474 )
...
* Adding a password length check to other API actions.
- Fixes #1473
* Fixing comment.
2021-03-02 10:36:10 -05:00
Andrew Yoon
e78ba38e94
Use URL type in most outstanding struct fields ( #1468 )
...
* Use URL type in most outstanding struct fields
This fixes all known remaining cases where url fields are stored as
plain strings, with the exception of form fields where empty strings
are used as sentinels (see `diesel_option_overwrite_to_url`).
Tested for regressions in the federated docker setup attempting to
exercise all changed fields, including through apub federation.
Fixes #1385
* Add migration to fix blank-string post.url values to be null
This also then fixes #602
* Address review feedback
- Fixed some unwraps and err message formatting
- Bumped the `url` library to 2.2.1 to fix a bug with serde error
messages
- Add unit tests for the two diesel option override functions
- Fix migration teardown by adding a no-op
* Rename lemmy_db_queries::Url to lemmy_db_queries::DbUrl
* fix compile error
* box PostOrComment variants
2021-03-02 12:41:48 +00:00
7f56281c26
Forbid usage of unwrap
2021-03-01 19:24:34 +01:00
Dessalines
462c4a2954
Rewrite settings implementation. Fixes #1270 ( #1433 )
...
* A first attempt at using deser-hjson. Fixes #1270
* Trying to fix tests, try 1
* Trying to fix tests, try 2
* A few fixes to deser_hjson
- Removing unwrap_or_defaults, using impl functions.
- Reorganized settings
* Make clippy happy
* hjson list strings must be quoted.
* Adding support for env vars.
* Moving to structs and defaults file.
* Moving settings default and struct.
2021-03-01 17:24:11 +00:00
3bdd78f341
Rename lemmy_structs
to lemmy_api_structs
2021-03-01 14:08:41 +01:00
a869a2823b
Still continuing on....
2021-02-26 08:49:58 -05:00
dessalines
ff3e26452a
Merge pull request 'Remove federation backward compatibility code (ref #1220 )' ( #164 ) from remove-backwards-compatibility into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/164
2021-02-26 13:23:46 +00:00
c618b4efaa
Remove federation backward compatibility code (ref #1220 )
2021-02-26 14:06:26 +01:00
4cc341e4aa
Remove code for apub compatibility with Lemmy v0.8.9 and older
2021-02-26 14:03:49 +01:00
Andrew Yoon
600ae662a5
Support plain cargo test
and disable unused doctests for speed
...
Since DB tests execute diesel migrations automatically, concurrent
execution causes flaky failures from simultaneous migrations. This can
be worked around using `cargo test --workspace -- --test-threads=1`,
which is what the CI config does, but this is not intuitive for
newcomer developers and unnecessarily slows down the test suite for
the majority of tests which are safe to run concurrently. This fixes
this issue by integrating with the small test crate `serial_test` and
using it to explicitly mark DB tests to run sequentially while
allowing all other tests to run in parallel.
Additionally, this greatly improves the speed of `cargo test` by
disabling doc-tests in all crates, since these are aren't currently
used and cargo's doc-test pass, even when no doc-tests exist, has
significant overhead. On my machine, this change significantly
improves test suite times by about 85%, making it much more practical
to develop with tools like `cargo watch` auto-running tests.
2021-02-25 15:44:30 -05:00
aba32917bd
Merge branch 'main' into split_user_table
2021-02-25 12:34:00 -05:00
ea3c0e1772
Merge branch 'main' into remove-integration-tests
2021-02-25 11:37:54 -05:00
bf1e859e72
Remove broken actix_rt test
2021-02-25 17:25:31 +01:00
3141ad31de
Remove categories ( fixes #1429 )
2021-02-25 13:22:37 +01:00
3ae62573b7
Better type safety for activity parsing
2021-02-24 20:37:27 +01:00
92ea9b97dd
Dont include community in comment to
field ( fixes #1446 )
2021-02-23 19:00:47 +01:00
dessalines
0c9b109bf7
Merge pull request 'Order outbox by published, not id' ( #171 ) from outbox-order-published into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/171
2021-02-22 20:37:06 +00:00
dessalines
2cbd158a11
Merge pull request 'Use name
field for post titles instead of summary
(ref #1220 )' ( #173 ) from apub-post-name into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/173
2021-02-22 20:36:22 +00:00
8d5e9f865c
Use name
field for post titles instead of summary
(ref #1220 )
2021-02-22 19:34:41 +01:00
8096765f0e
Fix clippy error upper_case_acronyms
2021-02-22 19:04:32 +01:00
c81435c994
Version 0.9.9
2021-02-19 13:10:04 -05:00
bcc8dae16b
Fixing deploy version.
2021-02-19 13:05:42 -05:00
a806493bc2
Version 0.9.8
2021-02-19 11:38:24 -05:00
b593047fb1
Order outbox by published, not id
2021-02-19 15:59:06 +01:00
9845366a36
Merge remote-tracking branch 'yerba/main'
2021-02-18 16:19:39 -05:00
Dessalines
0c4b57a6d0
Adding a new comment sort for posts. Fixes #1294 ( #1425 )
...
* Adding a new comment sort. Fixes #1294
* Fixing a migration comment.
* Adding a comment for newest_comment_time_necro
2021-02-18 10:38:25 -05:00
d3707ad4ef
Fix new compiler warning
2021-02-18 16:16:18 +01:00
13a949d9ec
Specify order for activities query ( fixes #1436 )
2021-02-18 16:15:52 +01:00
d0bd02eea0
Starting on user_ to person migration.
2021-02-14 13:46:16 -05:00
37ea778776
Merge remote-tracking branch 'origin/main'
2021-02-11 10:31:10 -05:00
dessalines
f37fd0ecfd
Merge pull request 'Hide followed communities, except for own user ( fixes #1303 )' ( #168 ) from hide-followed into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/168
2021-02-11 15:31:04 +00:00
3d400ca21d
Hide followed communities, except for own user ( fixes #1303 )
2021-02-11 14:53:17 +01:00
37ad9e9a09
Change RSS feeds to use lemmy URL for the rss link. Fixes #1378
2021-02-10 15:43:03 -05:00
1af906c224
Merge remote-tracking branch 'origin/main'
2021-02-10 15:13:22 -05:00