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
621355b6ef
Insert announced activities into DB for fetching ( fixes #1494 )
2021-03-15 13:58:54 +01:00
5998c83b2a
Only sending private message if its a local user.
2021-03-12 15:18:03 -05:00
9cb4dad4b4
A first pass.
2021-03-10 23:43:11 -05:00
ddf4a667b1
~80% done
2021-03-10 17:33:55 -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
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
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
8d5e9f865c
Use name
field for post titles instead of summary
(ref #1220 )
2021-02-22 19:34:41 +01:00
d3707ad4ef
Fix new compiler warning
2021-02-18 16:16:18 +01:00
dessalines
f899831ed3
Merge pull request 'Explicitly mark posts and comments as public (ref #1220 )' ( #167 ) from comments-posts-public into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/167
2021-02-10 19:45:36 +00:00
63d9c0ee46
Explicitly mark posts and comments as public (ref #1220 )
2021-02-10 14:01:02 +01:00
999d9f4d6c
Move routes into separate crate to speed up compilation
2021-02-09 19:34:36 +01:00
dessalines
6f364e60fa
Merge pull request 'Include object id when logging apub errors' ( #165 ) from log-ids into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/165
2021-02-05 17:52:51 +00:00
897263e5a3
Include object id when logging apub errors
2021-02-05 17:15:29 +01:00
105dfc93f1
Make apub extension fields optional (ref #1220 )
2021-02-05 14:23:57 +01:00
nutomic
1a4e35eb50
Store activitypub endpoints in database ( #162 )
...
Address review comments
Store Activitypub urls in database (fixes #808 )
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/162
Co-Authored-By: nutomic <nutomic@noreply.yerbamate.ml>
Co-Committed-By: nutomic <nutomic@noreply.yerbamate.ml>
2021-02-04 16:34:58 +00:00
10f0b3b877
Trying to upgrade lemmys deps.
2021-02-01 15:56:37 -05:00
dessalines
f5e58c8bf5
Merge pull request 'Increase MAX_REQUEST_NUMBER for fetches to 25' ( #161 ) from fetch-limit into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/161
2021-01-29 15:52:23 +00:00
5f59d7ba5f
Increase MAX_REQUEST_NUMBER for fetches to 25
2021-01-29 16:45:28 +01:00
c09c462a6e
Serve activities in community outbox ( fixes #1216 )
2021-01-29 14:48:42 +01:00
3d578f9df2
Use Url type for ap_id fields in database ( fixes #1364 ) ( #1371 )
2021-01-27 11:42:23 -05:00
c51f750831
Use Url type for ap_id fields in database ( fixes #1364 )
2021-01-26 18:52:18 +01:00
3b64c58198
Move most code into crates/ subfolder
2021-01-20 16:21:27 +01:00