Riley
bc8ed1e6da
Remove unneeded dependency on activitystreams ( #2034 )
2022-01-13 00:17:00 +00:00
Dessalines
f53902ecff
Version 0.15.1
2022-01-12 09:45:29 -05:00
Dessalines
bccb4f068d
Version 0.15.0
2022-01-12 08:46:35 -05:00
Dessalines
a24676e629
Version 0.15.0-rc.7
2022-01-09 11:09:03 -05:00
Dessalines
e65c45f152
Adding temporary bans. Fixes #1423 ( #1999 )
...
* Adding temporary bans. Fixes #1423
* Adding ban_expires to person
* Fix clippy
* Removing ban_expires from federated fields.
* Trying to add expires to blockcommunity apub.
2022-01-08 12:37:07 +00:00
Riley
41b90bb162
Add console-subscriber ( #2003 )
...
* Add console-subscriber
* Add larg event buffer capacity
* Add console port to lemmy prod container
* Expose pict-rs console port
* Update pictrs
2022-01-07 09:53:45 -05:00
Riley
3032a2745b
Opentelemetry ( #1992 )
...
* Add otlp export
* Add jaeger to dev docker
* More instrument
* Update deps
* Merge from main.
* Add comment about viewing traces
* Fixing reqwest-tracing dep.
* Update pre-commit regex
* Move imports to top
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-01-06 19:10:20 +00:00
Rens Groothuijsen
661f97a073
Use correct encoding when fetching non-UTF-8 site metadata ( #2015 )
...
* Use correct encoding when fetching non-UTF-8 site metadata
* Style fixes
2022-01-06 13:13:17 +00:00
Dessalines
bd31475dba
Adding a banned endpoint for admins. Removing it from GetSite. Fixes #1806
2022-01-04 09:50:30 -05:00
Rob Ede
1943bcd7f5
Prevent panic on InboxRequestGuard
2021-12-30 18:41:35 +00:00
Rob Ede
f6c13cf313
Updated actix-web dependency to `4.0.0-beta.18`
2021-12-30 18:37:59 +00:00
Dessalines
3065154f4e
Merge pull request #2007 from LemmyNet/another_tokenizer_fix
...
Trying another tokenizer fix. #1964
2021-12-21 17:24:44 -05:00
Kradyz
9f64872d5a
Case-insensitive webfinger response. Fixes #1955 & #1986 ( #2005 )
...
* Make webfinger case insensitive
* Make webfinger case insensitive
* Case insensitive domain name
* Case-insensitive webfinger
* formatting
Co-authored-by: Kradyz <k@radiz.nl>
2021-12-20 17:23:06 -05:00
Dessalines
ad4715c2a3
Trying another tokenizer fix. #1964
2021-12-20 16:57:36 -05:00
Dessalines
c883a49a40
First pass at invite-only migration. ( #1949 )
...
* First pass at invite-only migration.
* Implement email verification (fixes #219 )
* remove unwrap
* Adding views and functionality to registration application. #209
* Add private instance site column, and back end checks.
* Adding some message fields to LoginResponse
* Adding private instance to site setup.
* A few additions:
- Add a DeleteAccount response.
- RegistrationApplicationView now has the safe LocalUserSettings.
- Adding VerifyEmail to websocket API, added a proper response type.
* Adding and reorganizing some email helpers.
* A few fixes for private sites:
- Added a check_registration_application function.
- Only send a verification email if its been changed.
- VerifyEmail now returns LoginResponse.
- Deleting the old tokens after a successful email verify.
- If port is missing on email config, display a better error message.
* Version 0.15.0-rc.3
* Adding published to email_verification table.
* Adding fixes from comments.
* Version 0.15.0-rc.4
* Adding modlog private site check.
* Version 0.15.0-rc.6
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-12-15 14:49:59 -05:00
Dessalines
1410c5659c
Upgrading deps ( #1995 )
2021-12-14 13:30:37 +00:00
Dessalines
4a46dc805f
Trying out an upgraded version of html5ever. #1964 ( #1991 )
...
* Trying out an upgraded version of html5ever. #1964
* New release of webpage.
2021-12-12 23:49:25 +00:00
Dessalines
161d41999d
Adding min setup password length to the docs. Fixes #1989 ( #1990 )
2021-12-12 16:42:24 +00:00
Nutomic
c6ac606f60
Test pleroma follow ( #1988 )
...
* Add test case for Pleroma follow activity (ref #1984 )
* Use WithContext in apub tests where possible
2021-12-11 21:39:18 -05:00
Riley
0ed3856ef1
Remove awc ( #1979 )
...
* Remove unused awc dep
* Replace awc pict-rs client with reqwest
* Reinstate 30 second pict-rs timeout
2021-12-08 10:56:43 -05:00
Aode (lion)
5b3d707d8f
Use from_message for static error string
2021-12-07 17:17:19 -06:00
Aode (lion)
97ebf2f6f3
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-06 16:54:34 -06:00
Riley
35cbae61bc
Don't drop error context when adding a message to errors ( #1958 )
...
* Respond directly with LemmyError
Instrument Perform implementations for more precise traces
Use ApiError to format JSON errors when messages are present
Keep SpanTrace output in LemmyError Display impl
* Hide SpanTrace debug output from LemmyError
* Don't log when entering spans, only when leaving
* Update actix-web
* Update actix-rt
* Add newline after error info in LemmyError Display impl
* Propogate span information to blocking operations
* Instrument apub functions
* Use skip_all for more instrument attributes, don't skip 'self' in some api actions
* Make message a static string
* Send proper JSON over websocket
* Add 'message' to LemmyError display if present
* Use a quieter root span builder, don't pretty-print logs
* Keep passwords and emails out of logs
* Re-enable logging Login
* Instrument feeds
* Emit our own errors
* Move error log after status code recording
* Make Sensitive generic over the inner type
* Remove line that logged secrets
2021-12-06 09:54:47 -05:00
Dessalines
4e9ecb2632
Allow comment replies from blocked users. Fixes #1793 ( #1969 )
...
* Allow comment replies from blocked users. Fixes #1793
* Clearer check block.
2021-12-05 17:45:40 +00:00
Dessalines
040770d7ba
Fix retry infinite loops. Fixes #1964 ( #1967 )
...
* Fix retry infinite loops. Fixes #1964
* Moving retry_limit to settings
2021-12-05 10:03:13 -05:00
Colin Reeder
e2baed9a6d
Add lotide activities to tests
2021-12-02 22:44:52 -07:00
Colin Reeder
a91c0c8feb
Allow single item for to, cc, and @context
2021-11-26 21:55:33 -07:00
Dessalines
ad76c75821
Trying to add docker:latest. Fixes #1959 ( #1960 )
...
* Trying to add docker:latest. Fixes #1959
* Version 0.14.4-rc.3
* Trying to fix clippy on crate build
* Version 0.14.4-rc.4
2021-11-26 12:38:55 +00:00
Dessalines
be65b6869f
Merge pull request #1937 from LemmyNet/disable-edit-email-notifications
...
Dont send email notifications for edited comments (fixes #1925 )
2021-11-25 13:00:26 -05:00
Dessalines
e765b42d46
Adding a captcha rate limit. Fixes #1755 ( #1941 )
...
* Adding a captcha rate limit. Fixes #1755
* Changing to post rate limit.
2021-11-25 13:04:19 +00:00
Felix Ableitner
27a687bcd0
Dont send email notifications for edited comments ( fixes #1925 )
2021-11-24 22:29:29 +01:00
Dessalines
97b8b9c255
Version 0.14.3
2021-11-23 14:39:55 -05:00
Dessalines
7f01d8cde6
Version 0.14.2
2021-11-23 11:48:49 -05:00
Dessalines
b1f7bad0a3
Version 0.14.2-rc.1
2021-11-23 11:12:46 -05:00
Dessalines
46c7429429
Fixing duped report view for admins. Fixes #1933 ( #1945 )
...
* Fixing duped report view for admins. Fixes #1933
* Fixing tests.
2021-11-23 15:54:30 +00:00
Dessalines
d2e28e5f38
Adding a GetComment endpoint. Fixes #1919 ( #1944 )
2021-11-23 15:53:48 +00:00
Dessalines
451818749b
Fix min title char count for post titles. Fixes #1854 ( #1940 )
...
* Fix min title char count for post titles. Fixes #1854
* Adding more newline checks for actors.
* Adding helper function
2021-11-23 15:52:58 +00:00
Dessalines
86b2901e8c
Adding MarkPostAsRead to API. Fixes #1784 ( #1946 )
...
* Adding MarkPostAsRead to API. Fixes #1784
* Adding error
2021-11-23 14:15:43 +00:00
Riley
1579ee566f
background-jobs 0.11 ( #1943 )
2021-11-23 12:20:01 +00:00
Riley
3fea5645f8
Add tracing ( #1942 )
2021-11-23 12:16:47 +00:00
Dessalines
88c7b95d03
Remove pointless community follower sort. ( #1939 )
2021-11-23 12:05:09 +00:00
Dessalines
3e062a9959
Merge pull request #1938 from LemmyNet/once_cell
...
Use once_cell instead of lazy_static
2021-11-22 14:27:08 -05:00
Felix Ableitner
e88106cef4
Use once_cell instead of lazy_static
2021-11-22 19:58:31 +01:00
Dessalines
3d08e6c1fc
Adding unique constraint for activity ap_id. Fixes #1878 ( #1935 )
...
* Adding unique constraint for activity ap_id. Fixes #1878
* Removing is_activity_already_known
2021-11-22 18:57:03 +00:00
Dessalines
05d43150bc
Making public key required. Fixes #1934
2021-11-22 10:10:18 -05:00
Dessalines
209829e1f3
Merge pull request #1926 from LemmyNet/replace-activitystreams-lib
...
Replace activitystreams crate with activitystreams-kinds
2021-11-22 08:47:46 -05:00
Felix Ableitner
afccd5cf69
Replace activitystreams crate with activitystreams-kinds
2021-11-22 14:28:57 +01:00
Nutomic
88e81dce6b
Merge pull request #1921 from LemmyNet/fix_login
...
Fix login ilike bug. Fixes #1920
2021-11-22 13:05:57 +00:00
Alexander Batischev
d53d229c49
Change NodeInfo `links` to an array
...
NodeInfo spec[1] says that _.well-known/nodeinfo_ is a JSON Resource
Descriptor (JRD) document. That is specified in RFC 7033, where §4.4[2]
mandates that `links` is an array.
1. https://nodeinfo.diaspora.software/protocol.html
2. https://datatracker.ietf.org/doc/html/rfc7033#section-4.4
2021-11-21 20:10:39 +03:00
Dessalines
e58c2048ed
Fixing fuzzy_search to escape like chars.
2021-11-19 15:07:20 -05:00
Felix Ableitner
3e4fe89a45
Fix build error in #1914
2021-11-19 18:05:23 +01:00
Dessalines
6d35508f08
Merge pull request #1914 from LemmyNet/dont-announce-note
...
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-19 11:48:47 -05:00
Dessalines
4ce01f8bb4
Fix login ilike bug. Fixes #1920
2021-11-18 20:58:11 -05:00
Dessalines
712dabd16b
Merge pull request #1918 from LemmyNet/fix-smithereen-webfinger
...
Fix Smithereen webfinger, remove duplicate webfinger impl (fixes #1916 )
2021-11-18 14:47:34 -05:00
Dessalines
e756e85da7
Merge pull request #1917 from LemmyNet/outbox-announce
...
Community outbox should only contain activities sent by community
2021-11-18 14:31:47 -05:00
Felix Ableitner
da89ea22fb
Fix Smithereen webfinger, remove duplicate webfinger impl ( fixes #1916 )
2021-11-18 19:28:53 +01:00
Felix Ableitner
aeb34199f5
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-18 18:41:43 +01:00
Felix Ableitner
a2707e1c56
Community outbox should only contain activities sent by community ( fixes #1916 )
2021-11-18 18:31:50 +01:00
Dessalines
1f03a2d957
Merge pull request #1915 from LemmyNet/remove-http-sig-compat
...
Remove HTTP signature compatibility mode (its not necessary)
2021-11-18 11:43:32 -05:00
Dessalines
a56853be05
Merge pull request #1907 from not-layla/main
...
Implement rate limits on comments
2021-11-18 11:22:38 -05:00
Felix Ableitner
f07aaf417a
Remove HTTP signature compatibility mode (its not necessary)
2021-11-18 17:06:10 +01:00
layla
7fe7062c47
Implement rate limits on comments
2021-11-18 13:40:16 +00:00
Dessalines
f4616789a7
Version 0.14.1
2021-11-17 16:25:50 -05:00
Dessalines
c29366328e
Version 0.14.0
2021-11-17 11:28:16 -05:00
Dessalines
dc3858c82d
Version 0.14.0-rc.2
2021-11-17 09:14:54 -05:00
Dessalines
5f6419ff76
Merge pull request #1897 from LemmyNet/mastodon-compat
...
Mastodon compat
2021-11-17 09:12:01 -05:00
Felix Ableitner
db631005d3
Fix error due to same activity being inserted in database twice
2021-11-16 19:13:05 +01:00
Felix Ableitner
3249060f67
Remove to field from follow activities
2021-11-16 19:13:05 +01:00
Aode (lion)
20cddf5e81
Support mastodon deletes
2021-11-16 18:07:47 +01:00
Felix Ableitner
7f4a773b88
Create and Note always need to tag parent creator, for mastodon notifications
2021-11-16 18:07:47 +01:00
Felix Ableitner
c1f1b8aa0f
Activities in community should also be sent to actors in cc
2021-11-16 18:07:45 +01:00
Felix Ableitner
dc416bf255
Make http signature compatible with mastodon
2021-11-16 18:06:01 +01:00
Nutomic
60f72b2785
Merge pull request #1905 from LemmyNet/fix_comment_report_creator
...
Fixing comment report creator. Fixes #1904
2021-11-16 17:03:58 +00:00
Felix Ableitner
579ca37ddf
Make webfinger standard compliant
2021-11-16 18:03:09 +01:00
Dessalines
ec40b4f7fb
Fixing comment report creator. Fixes #1904
2021-11-16 09:59:52 -05:00
Dessalines
23641fcd06
Use serde_json::to_value
2021-11-15 21:11:44 -05:00
Dessalines
09cd32034b
Fixing activity serialization. Fixes #1900 ( #1901 )
2021-11-15 20:26:48 +00:00
Dessalines
497564359b
Version 0.14.0-rc.1
2021-11-11 14:57:25 -05:00
Nutomic
1b9414f292
More federation compat ( #1894 )
...
* Make HTTP signatures compatible with Pleroma
* Send Announce/Page, Announce/Note for Pleroma compatibility
* remove unused code
2021-11-11 14:49:15 -05:00
Dessalines
8d4c4fdf6c
Adding clippy:unwrap to husky. Fixes #1892 ( #1893 )
2021-11-11 12:18:08 +00:00
Dessalines
8a108bccae
Merge pull request #1891 from LemmyNet/remove-apub-accept-guard
...
Remove header guard for activitypub routes
2021-11-10 09:38:50 -05:00
Felix Ableitner
9a1fe154db
Remove header guard for activitypub routes
2021-11-10 15:08:33 +01:00
Dessalines
f035af3738
Fixing clippy
2021-11-09 17:31:28 -05:00
Dessalines
76220a4523
Fixing clippy lints. ( #1885 )
...
* Fixing clippy lints.
* Revert object id display
* Trying to fix clippy again
2021-11-09 18:16:37 +00:00
Felix Ableitner
5319046dc7
Add federation test cases for Smithereen and Mastodon
2021-11-09 17:16:58 +01:00
Felix Ableitner
c21c142a9a
Include apub context from file, so that it can be embedded in docs
2021-11-08 16:04:02 +01:00
Felix Ableitner
252d87d332
Fix clippy error
2021-11-08 13:16:14 +01:00
Felix Ableitner
888e683856
For verify_is_public() we also need to check cc field
2021-11-06 18:44:34 +01:00
Felix Ableitner
a5a674a270
Add method ApubObject.verify()
2021-11-06 18:35:14 +01:00
Felix Ableitner
02ce7bdc7d
Remove unused ActorType methods
2021-11-06 15:01:00 +01:00
Felix Ableitner
8ea21c39b7
Reduce stack memory usage in apub code
...
- use our own, smaller Endpoints struct
- wrap ObjectId.url in Box
- adjust usage of Box in different places
2021-11-06 14:53:39 +01:00
Felix Ableitner
c725514841
Change to_apub and from_apub to take by value and avoid cloning
2021-11-06 14:47:58 +01:00
Felix Ableitner
2edf8ba157
Move ObjectId to library
2021-11-05 21:37:46 +01:00
Felix Ableitner
bd3352423a
Remove ActivityFields trait, deserialize into another struct instead
2021-11-05 21:14:19 +01:00
Felix Ableitner
969a7f2d1b
Refactoring apub code
2021-11-05 21:12:10 +01:00
Dessalines
a83113935d
Check if post or comment are deleted first. Fixes #1864 ( #1867 )
...
* Check if post or comment are deleted first. Fixes #1864
* Refactoring delete apub.
* Revert "Refactoring delete apub."
This reverts commit ba2c3d06cfb870efe792f4b2541036265b425156.
2021-11-03 17:47:24 +00:00
Dessalines
1bec551945
Merge pull request #1874 from LemmyNet/protocol-testing
...
Protocol testing
2021-11-03 11:23:26 -04:00
Felix Ableitner
41f7bcc0d2
Correctly use and document check_is_apub_id_valid() param use_strict_allowlist
2021-11-02 21:39:06 +01:00
Felix Ableitner
b396344eae
Merge two functions into one
2021-11-02 21:39:06 +01:00
Felix Ableitner
1c6f74cad5
Convert note.content and chat_message.content to html ( fixes #1871 )
2021-11-02 21:39:02 +01:00
Dessalines
d4753049d7
Upgrade background_jobs to 0.9.1 #1820 ( #1875 )
2021-11-02 20:27:24 +00:00
Felix Ableitner
0bde2d595e
Add tests for parsing activities and collections
2021-11-02 12:44:51 +01:00
Felix Ableitner
aaaf039779
Move apub test files into tree structure
2021-10-29 16:54:19 +02:00
Felix Ableitner
03d8ac75ef
Move activity structs to protocol folder
2021-10-29 12:50:32 +02:00
Felix Ableitner
5ff044346f
Move object and collection structs to protocol folder
2021-10-29 12:50:32 +02:00
Felix Ableitner
358ef99ea2
Rewrite community followers and user outbox to use our own structs
2021-10-29 12:50:32 +02:00
Felix Ableitner
d89156810d
Move @context out of object/activity definitions
2021-10-29 12:50:32 +02:00
Felix Ableitner
2d04ff93f5
Change activity.cc to Vec<Url> in public activities
2021-10-29 12:50:32 +02:00
Felix Ableitner
271785b7fb
When receiving activity, dont read community from cc (for pleroma compat and better verification)
2021-10-29 12:50:30 +02:00
Felix Ableitner
74523fb534
Make Note.context optional for pleroma compat (hack)
2021-10-29 12:45:54 +02:00
Felix Ableitner
03b8ae7215
Activity.to should always be a vec (and unspecified size for public activities)
2021-10-29 12:45:54 +02:00
Felix Ableitner
614490d29b
Fix problem that prevented viewing of pleroma user profiles
2021-10-29 12:45:53 +02:00
Felix Ableitner
0af047dd83
Rewrite community moderators collection
2021-10-29 12:45:53 +02:00
Felix Ableitner
6792e376b4
Rewrite community outbox to use new fetcher
2021-10-29 12:45:53 +02:00
Felix Ableitner
bb085189e0
Merge traits ToApub and FromApub into ApubObject
2021-10-29 12:45:53 +02:00
Dessalines
b18ea3e0cc
Renaming to slur_filter. Fixes #1773 ( #1801 )
...
* Renaming to slur_filter. Fixes #1773
* Fixing config
* Updating doku for slur filter.
* Updating doku for slur filter again.
* Remove comment.
2021-10-28 20:47:25 +00:00
Dessalines
f1f7c45017
Three instance inbox bug ( #1866 )
...
* 3 instance shared inbox bug test
* Fixing shared inbox bug. Fixes #1865
* A few fixes.
2021-10-28 20:46:24 +00:00
Nutomic
61189efe72
Rewrite collections to use new fetcher ( #1861 )
...
* Merge traits ToApub and FromApub into ApubObject
* Rewrite community outbox to use new fetcher
* Rewrite community moderators collection
* Rewrite tombstone
2021-10-27 12:03:07 -04:00
Dessalines
d9ecabee87
Dont blank out post or community info. Fixes #1813 ( #1841 )
...
* Dont blank out post or community info. Fixes #1813
* Fix federation tests
* Only blank out info for non-logged in users.
* Remove pointless trait.
* Blank the community if deleted for post
* Fix hook
* Fixing again
* Fixing again
* Fixing again
2021-10-27 13:34:18 +00:00
Dessalines
40264c17a0
Version 0.13.5-rc.7
2021-10-22 13:26:00 -04:00
Nutomic
149a4e0de8
Breaking apub changes ( #1859 )
...
* Remove CommentInReplyToMigration
* Remove compat for RemovePostCommentOrCommunity
* Remove PublicUrlMigration
* Change type of pm to ChatMessage from Pleroma, make pm.to array
* Use person.summary instead of person.content for pleroma compat
* Also change group.content to summary
* Rewrite apub object test json to serve as nice examples
* Also add test case for parsing pleroma private message
2021-10-22 12:21:26 -04:00
Dessalines
23731cd49c
Trying out rust-musl-builder for cargo publish ( #1856 )
...
* Trying out rust-musl-builder for cargo publish
* Version 0.13.5-rc.1
* Try rust:nightly
* Version 0.13.5-rc.2
* Try rust slim
* Version 0.13.5-rc.3
* Try rust 1.51
* Version 0.13.5-rc.4
* Trying another nightly
* Version 0.13.5-rc.5
* Trying another fix
* Version 0.13.5-rc.6
2021-10-21 13:26:01 -04:00
Nutomic
dd0ba10b44
Pleroma federation2 ( #1855 )
...
* Allow fetching person from Pleroma, including test case (ref #1461 )
* Added test case for parsing community from apub json
- fixed a bug with objectid (de)serialization
- fixed a bug with outbox fetching (ref #1582 )
* Added apub test for post
* Ignore errors when reading community outbox (fixes #1582 )
* Dont fetch community outbox/moderators during tests
* added test for lemmy comment
* Added federation test for pleroma comment
* Added html2md crate to parse comment html from pleroma (fixes #1461 )
* some fixes for update_apub_test_files.sh
* Add tests for ToApub, private message, remove update script
* Delete objects from db at the end of each test
2021-10-21 13:25:35 -04:00
Felix Ableitner
1aa0e1997b
Major refactor, adding newtypes for apub crate
...
- this allows moving FromApub/ToApub traits into apub lib
2021-10-20 12:28:09 +02:00
Felix Ableitner
f24999027e
Merge crates db_schema and db_queries
2021-10-20 12:28:08 +02:00
Felix Ableitner
d206aad282
Remove DeletableApubObject trait
2021-10-20 12:20:54 +02:00
Tmpod
e9d9bc82d8
Add cargo metadata to all crates ( #1853 )
2021-10-19 13:03:43 -04:00
Tmpod
aef9786fa7
Add both (De)Serialize to all models ( #1851 )
2021-10-19 12:37:01 -04:00
Dessalines
97aa7268ae
Adding GetUnreadCount to the API. Fixes #1794 ( #1842 )
...
* Adding GetUnreadCount to the API. Fixes #1794
* Reordering filters to fix unread replies.
2021-10-16 10:43:41 +00:00
Nutomic
18badcfdb4
Federate reports ( #1830 )
...
* Federate reports
* add federation test cases for reports
2021-10-15 10:37:33 -04:00
Dessalines
ccb8e4b414
Fix saved posts and hide read posts issue. Fixes #1839 ( #1840 )
2021-10-14 17:03:12 +00:00
Dessalines
2402515fcc
Dont allow posts to deleted / removed communities. Fixes #1827 ( #1828 )
...
* Dont allow posts to deleted / removed communities. Fixes #1827
* Fixing couldnt find community error.
* Adding check in createorupdate post and comment.
* make sure post wasn't deleted or removed.
* Adding a post not deleted or removed check to creatorupdatecomment.
* Using pub(crate)
2021-10-14 16:33:19 +00:00
Nutomic
8067244765
Dont swallow API errors ( fixes #1834 ) ( #1837 )
...
Dont swallow API errors (fixes #1834 )
2021-10-13 15:50:21 -04:00
Nutomic
d26255957b
Fix federation of initial post/comment vote ( fixes #1824 ) ( #1835 )
2021-10-13 10:12:41 -04:00
Nutomic
f4c783cba5
Fix clippy warnings added in nightly ( #1833 )
2021-10-12 12:46:26 -04:00
Dessalines
864598908d
Admins can view all reports. Fixes #1810 ( #1825 )
2021-10-12 12:02:16 +00:00
Dessalines
35d0aba9e6
Adding a message_id to emails. Fixes #1807 ( #1826 )
2021-10-12 11:38:55 +00:00
Nutomic
454d3987a5
Generate config docs from code ( #1786 )
...
* Generate config docs from code
* update library
* move settings comments from config.hjson to code
* updte doku to 0.10
* update doku
2021-10-08 11:07:24 -04:00
Dessalines
53a2b6d013
Trying a background_jobs fix. #1820 ( #1822 )
2021-10-08 14:36:53 +00:00
Luna
e06cd9c0ac
mark parent as read on reply ( #1819 )
...
* mark parent as read on reply
* mark as read only if you are the recipient
* mark mentions as read on reply
2021-10-08 10:28:32 -04:00
Nutomic
b96ce81f89
Move code to apub library ( #1795 )
...
* Remove dependency of apub_lib on LemmyContext
* Move ApubObject trait to library
* Reorganize files in apub lib
* Move ActorType, signatures, activity_queue to apub library
2021-10-06 16:20:05 -04:00
Dessalines
fe7c1b300b
Adding honeypot to user and post creation. Fixes #1802 ( #1803 )
2021-10-01 11:37:39 +00:00
Dessalines
a99ba2de24
Version 0.13.0
2021-09-29 16:16:46 -04:00
Dessalines
9c50cbf431
Adding a user agent. Fixes #1769 ( #1800 )
...
* Adding a user agent. Fixes #1769
* Fix client duplicate creation.
2021-09-29 16:05:38 -04:00
Dessalines
5a281445a3
Upgrade deps ( #1799 )
...
* Upgrade deps
* Fix web::scope
2021-09-29 14:50:00 -04:00
Nutomic
aee48f3f5d
Ansible changes ( #1781 )
...
* Use env var for config location when saving (not default location)
* Consistent variable formatting for easy replacement with sed
* Remove unmaintained lemmy_dev and uninstall playbooks
* Simplify lemmy.hjson for ansible
* cleanup ansible playbook
* add separate playbook for updating lemmy config
* Revert "add separate playbook for updating lemmy config"
This reverts commit 0a970ae1da
.
2021-09-28 11:34:18 -04:00
Dessalines
37bd9e0e6c
Version 0.13.0-rc.1
2021-09-28 10:59:29 -04:00
Dessalines
b18c744f63
Clean up reporting ( #1776 )
...
* First untested pass at reporting.
* Adding unit tests for post and comment report views
* Fix clippy
* Adding counts, creator_banned, and unresolved_only
* Adding my_vote to report views
* Fixing unit tests.
2021-09-28 10:36:17 +00:00
Nutomic
240de006db
Implement webmention support ( fixes #1395 ) ( #1671 )
...
* Implement webmention support (fixes #1395 )
* update
* use post url instead of instance or, better error handling
* update webmention
2021-09-27 10:49:47 -04:00
Dessalines
8708ad1b44
Moving settings and secrets to context.
2021-09-27 11:25:26 +02:00
Felix Ableitner
cf214ff583
Move jwt secret from config to database ( fixes #1728 )
2021-09-27 11:25:09 +02:00
Nutomic
527eefbe92
Rewrite fetcher ( #1792 )
...
* Use new fetcher implementation for post/comment
* rewrite person fetch to use new fetcher
* rewrite community to use new fetcher
* rename new_fetcher to dereference_object_id
* make ObjectId a newtype
* handle deletion in new fetcher
* rewrite apub object search to be generic
* move upsert() method out of ApubObject trait
* simplify ObjectId::new (and fix clippy)
2021-09-25 11:44:52 -04:00
Dessalines
721962589c
Clean up.
2021-09-18 19:53:30 -04:00
Dessalines
1033995801
Set a 10 char minimum password length.
2021-09-18 19:43:08 -04:00
Nutomic
e84e1193fc
Dont pass accept-encoding header to pictrs (ref #1734 ) ( #1738 )
...
* Allow image upload in docker/dev/ (replaces #1765 )
* Dont pass accept-encoding header to pictrs (ref #1734 )
* Fix clippy errors
2021-09-17 11:44:20 -04:00
Dessalines
e9891977ee
Version 0.12.2-rc.1
2021-09-05 13:59:28 -04:00
Dessalines
0940fb5f00
Fixing some comment websocket issues. ( #1768 )
...
- Wasn't correctly getting comment parent user for mark as read. Fixes #1767
- Was using all recipients for simple comment return. Fixes #1766
2021-09-04 08:47:41 -04:00
Dessalines
df997dff49
Version 0.12.0
2021-09-03 09:23:50 -04:00
Dessalines
e19349343a
Version 0.12.0-rc.2
2021-09-03 08:28:26 -04:00
Nutomic
2822f5a126
Change public activities to field to array ( #1739 )
2021-08-27 21:33:38 -04:00
Dessalines
2c8003a9fa
Upgrading deps ( #1735 )
2021-08-26 08:37:10 -04:00
Dessalines
da5fdae006
Version 0.12.0-rc.1
2021-08-25 17:28:42 -04:00
Dessalines
af225a42d0
Fix prod deploy script and clippy ( #1724 )
...
* Updating lemmy-js-client.
* Fix prod deploy script and clippy
* Try using buster.
* Using more generic and updated images.
* again.
* again.
* Try alternate env
* again.
* again.
* Version 0.11.4-rc.24
* again.
* Better old_tag
* Version 0.11.4-rc.27
* Updating cargo.lock
* Trying to run a cargo check to update the lock
* Version 0.11.4-rc.28
2021-08-25 17:26:10 -04:00
Dessalines
73449c09a7
Fix image uploads. Fixes #1725 ( #1734 )
...
* Fix image uploads. Fixes #1725
* Adding comment on awc dep.
2021-08-25 16:33:45 +00:00
Nutomic
e413350be3
Merge pull request #1666 from LemmyNet/resolve-endpoint
...
Move resolving of activitypub objects to separate api endpoint
2021-08-23 17:06:51 +00:00
Dessalines
c23e7cc20d
Fixing ResolveObject API and unit tests ( #1713 )
2021-08-23 17:25:39 +02:00
Dessalines
1ee0c0c291
Adding more site setup vars. Fixes #678 ( #1718 )
2021-08-23 09:44:10 +00:00
Nutomic
3b37ea6c8b
Dont append ? to url when cleaning it ( #1716 )
2021-08-21 09:36:33 -04:00
Felix Ableitner
251e0d3b82
Move resolving of activitypub objects to separate api endpoint ( fixes #1584 )
2021-08-20 12:35:50 +02:00
Nutomic
f6f169b4eb
Rewrite remaining activities ( #1712 )
...
* Limit type/method visibility in apub code
* Simplify db_queries traits by removing generics
* Simplify delete activity implementation
* Rewrite delete activities
* Implement helper functions for websocket message sending
* When receiving delete reason as empty string, change to none
* Rewrite remaining activities
* Simplify inbox
* Remove struct ActivityCommonFields, derive ActivityFields trait instead
* Community should announce received activities to followers
2021-08-19 17:24:33 -04:00
Dessalines
2016afc9db
User / community blocking. Fixes #426 ( #1604 )
...
* A first pass at user / community blocking. #426
* Adding unit tests for person and community block.
* Moving migration
* Fixing creator_blocked for comment queries, added tests.
* Don't let a person block themselves
* Fix post creator_blocked
* Adding creator_blocked to PersonMentionView
* Moving blocked and follows to MyUserInfo
* Rename to local_user_view
* Add moderates to MyUserInfo
* Adding BlockCommunityResponse
* Fixing name, and check_person_block
* Fixing tests.
* Using type in Blockable trait.
* Changing recipient to target, adding unfollow to block action.
2021-08-19 20:54:15 +00:00
Dessalines
6af75492a9
Swap out iframely ( #1706 )
...
* Replace Iframely. Fixes #1681
* Add post_link_tags to nginx
* Adding post_link_tags route
* Cleaning up post_link_tags
* Changing PostLink to SiteMetadata, adding it to the API.
* Fixing issue when local has no openssl certs.
* Fixing an issue with pictrs errors
* Revert "Fixing issue when local has no openssl certs."
This reverts commit dbf7d1b1ee03846e5ef7b7156e618424f1150e1d.
* Add ca-certs to dockerfile for volume mount.
* Cleaning up fetch_pictrs request
* Changing to fetch_site_data
2021-08-19 14:12:49 +00:00
Nutomic
8158966af6
Merge pull request #1710 from LemmyNet/mod_transfer_community
...
Adding ModTransferCommunity to modlog in API. Fixes #1437
2021-08-18 22:01:09 +00:00
Dessalines
6910e18a83
Adding ModTransferCommunity to modlog in API. Fixes #1437
2021-08-17 17:52:28 -04:00
Dessalines
1f64db6a33
Upgrading deps
2021-08-17 16:31:16 -04:00
Nutomic
28d6370c35
Rewrite delete activities ( #1699 )
...
* Limit type/method visibility in apub code
* Simplify db_queries traits by removing generics
* Simplify delete activity implementation
* Rewrite delete activities
* Implement helper functions for websocket message sending
* When receiving delete reason as empty string, change to none
2021-08-17 14:04:58 -04:00
Dessalines
2966203653
Don't allow deleted users to do actions. Fixes #1656 ( #1704 )
2021-08-16 20:51:08 +00:00
Dessalines
8a1af056e2
When banning a user, remove communities they've created ( #1700 )
...
- Fixes #1659
2021-08-13 17:39:56 +00:00
Nutomic
353a1fe0a0
Rewrite activitypub following, person, community, pm ( #1692 )
...
* Rewrite following activities
* Rewrite person apub
* Rewrite community apub
* Rewrite private message activity sending
2021-08-12 08:48:09 -04:00
Felix Ableitner
a44b5c9c36
publish to crates.io with normal release script
2021-08-09 18:44:18 +02:00
Felix Ableitner
af6aa3c0bf
Distribute Lemmy via crates.io
2021-08-09 17:29:32 +02:00
Felix Ableitner
b2937223df
Migrate comment inReplyTo field to single value (ref #1454 )
2021-08-05 13:00:29 +02:00
Dessalines
7b8cbbba85
Simplify config using macros ( #1686 )
...
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-08-04 21:13:51 +00:00
Nutomic
b8d7f00d58
Rewrite voting ( #1685 )
...
* Merge like/dislike activity handlers into vote
* Rewrite vote sending code
* Remove old send_create, send_update functions
2021-08-02 16:33:40 -04:00
Dessalines
1664cb326a
Merge pull request #1677 from LemmyNet/remove-fat-deps
...
Remove brotli, zstd dependencies
2021-08-02 16:21:33 -04:00
Felix Ableitner
abd26aeab2
Remove brotli, zstd dependencies
2021-08-02 14:05:39 +02:00
Felix Ableitner
6b57d716e1
Rewrite private message apub and merge create/update
2021-07-31 22:58:11 +02:00
Felix Ableitner
dc363c8f35
Merge logic for post create and update
2021-07-31 19:26:17 +02:00
Felix Ableitner
3eb46868ff
Merge logic for comment create and update
2021-07-31 17:47:08 +02:00
Felix Ableitner
43ad99bbe8
Rewrite apub comment (de)serialization using structs (ref #1657 )
2021-07-31 16:57:37 +02:00
Felix Ableitner
433ab1e78b
Add docs for MediaType, PublicUrl values
2021-07-30 23:16:33 +02:00
Felix Ableitner
57b6ecaf40
Simplify lemmy_context() function (dont return errors)
2021-07-30 23:16:33 +02:00
Felix Ableitner
ff265c7ebc
Rewrite apub post (de)serialization using structs (ref #1657 )
2021-07-30 23:16:32 +02:00
Dessalines
d85f0d087e
Blank out extra info for deleted or removed content. Fixes #1679 ( #1680 )
2021-07-30 18:44:15 +00:00
Dessalines
6ffa291ec9
Actor name length config dess ( #1672 )
...
* Make length of user/community name configurable (fixes #1306 )
* use single config value, fix migrations, increase displayname length
* remove debug statements
* add helper method for setting actor_name_max_length
* move function
* Fixing some defaults
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-07-22 21:53:44 -04:00
Dessalines
fcae2189eb
Add show_new_posts_notifs setting. Fixes #1664 ( #1665 )
2021-07-22 20:07:40 +00:00
Dessalines
7d3b90d711
Fix issue with protocol string in actor id generation ( #1668 )
2021-07-20 16:55:04 +00:00
Dessalines
5fe7de2bff
Adding shortname fetching for users and communities. Fixes #1662 ( #1663 )
2021-07-20 04:29:50 +00:00
Felix Ableitner
c1db86925f
Merge apub, apub_receive crates ( fixes #1621 )
2021-07-17 18:20:44 +02:00
Nutomic
c7de1fcf24
Apub inbox rewrite ( #1652 )
...
* start to implement apub inbox routing lib
* got something that almost works
* it compiles!
* implemented some more
* move library code to separate crate (most of it)
* convert private message handlers
* convert all comment receivers (except undo comment)
* convert post receiver
* add verify trait
* convert community receivers
* add cc field for all activities which i forgot before
* convert inbox functions, add missing checks
* convert undo like/dislike receivers
* convert undo_delete and undo_remove receivers
* move block/unblock activities
* convert remaining activity receivers
* reimplement http signature verification and other checks
* also use actor type for routing, VerifyActivity and SendActivity traits
* cleanup and restructure apub_receive code
* wip: try to fix activity routing
* implement a (very bad) derive macro for activityhandler
* working activity routing!
* rework pm verify(), fix tests and confirm manually
also remove inbox username check which was broken
* rework following verify(), fix tests and test manually
* fix post/comment create/update, rework voting
* Rewrite remove/delete post/comment, fix tests, test manually
* Rework and fix (un)block user, announce, update post
* some code cleanup
* rework delete/remove activity receivers (still quite messy)
* rewrite, test and fix add/remove mod, update community handlers
* add docs for ActivityHandler derive macro
* dont try to compile macro comments
2021-07-17 12:08:46 -04:00
Dessalines
9840f5c1c1
Upgrading deps, running clippy fix on nightly 1.55.0 ( #1638 )
...
* Upgrading deps, running clippy fix on nightly 1.55.0
* Running clippy --fix
* Trying to fix transform
* Trying to fix another transform
* Upgrading http-signature-normalization-actix
* Fix app_data
* Fix pictrs uploading
* Fix unwrap
2021-07-06 13:26:46 +00:00
Dessalines
f54209c451
Running clippy --fix ( #1647 )
2021-07-05 16:07:26 +00:00
David Sterry
1b1ebd2f70
make captcha case-insensitive
2021-07-04 17:51:08 -07:00
Felix Ableitner
f289374e70
Remove tracking params from post url ( fixes #768 )
2021-06-18 20:38:34 +02:00
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
Nutomic
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
Dessalines
880c51687a
Merge branch 'main' into feature/mark_post_as_read
2021-04-26 10:44:19 -04:00
Dessalines
6d3778cafe
Changing unwrap_default to unwrap_or(false)
2021-04-26 09:50:34 -04:00
Dessalines
5b2be6f9df
Add show_read_posts filter. Fixes #1561
2021-04-24 18:26:50 -04:00
Dessalines
ed31deab00
Creator extra search results
2021-04-23 11:54:38 -04:00
Dessalines
ef7fe7586b
Some formatting
2021-04-23 02:40:10 -04:00
Dessalines
51e181c529
Don't search for communities or users when the id is included.
2021-04-23 02:30:13 -04:00
Dessalines
f8cd6fd445
Making more fields optional in the API.
...
- Fixes #1569
2021-04-23 02:30:13 -04:00
Dessalines
c86f5472fb
Adding listing_type to search.
2021-04-23 02:13:32 -04:00
Dessalines
a42ac3e58a
Add creator id to search. Fixes #765
2021-04-23 02:12:29 -04:00
Nutomic
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
Nutomic
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
Nutomic
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
Felix Ableitner
78eee7dc9e
Improved logging
2021-04-21 14:45:10 +02:00
Nutomic
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
Felix Ableitner
c572dc0cc6
Remote mods can update/delete/undelete communities
2021-04-13 15:19:17 +02:00
Felix Ableitner
b7d1d91309
For untagged commits, include hash in version name ( fixes #1563 )
2021-04-12 13:47:58 +02:00
Nutomic
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
Dessalines
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
Dessalines
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
Dessalines
d97129e7ae
Merge branch 'main' into change_password_api
2021-04-06 12:09:26 -04:00
Felix Ableitner
ccdf117c8f
Make some of the database config values optional ( fixes #1550 )
2021-04-06 14:57:37 +02:00
Nutomic
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
Nutomic
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
Nutomic
98216d8a3b
Merge pull request #1535 from LemmyNet/rust_captcha_features
...
Rust captcha features
2021-04-06 11:58:48 +00:00
Nutomic
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
Dessalines
89b96511bf
Version 0.10.2
2021-04-05 13:21:08 -04:00
Dessalines
458767e3a8
Version 0.10.1
2021-04-05 10:29:14 -04:00
Nutomic
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
Dessalines
ba517249e8
Version 0.10.0
2021-04-05 08:53:28 -04:00
Dessalines
f33f763278
Moving ChangePassword to its own API action. Fixes #1471
2021-04-01 17:39:01 -04:00
Dessalines
b893085d1f
Adding users active monthly for community sort. Fixes #1527
2021-04-01 14:34:27 -04:00
Dessalines
799ab94af3
Don't allow zero-space char in display name. Fixes #1317
2021-04-01 14:09:53 -04:00
Dessalines
bf7558830f
Changing preferred to display name. Fixes #1211
2021-04-01 13:57:45 -04:00
Dessalines
1ba570092e
Adding more rust captcha features. Fixes #1248
2021-04-01 13:30:24 -04:00
Dessalines
2f63fdbde0
Adding a setting to show / hide scores. Fixes #1503
2021-03-31 06:54:46 -04:00
Felix Ableitner
722cdb78ba
Split lemmy_apub crate into two parts apub and apub_receive
2021-03-30 22:29:16 +02:00
Dessalines
36a79e18cd
Version 0.10.0-rc.13
2021-03-29 18:10:04 -04:00
Dessalines
4da6e42fc1
Fix websocket location to /api/vX
2021-03-29 17:48:37 -04:00
Dessalines
4c8f2e976e
Merge remote-tracking branch 'yerba/split-api-crate' into test_merge_api_crates_reorg
2021-03-29 16:24:50 -04:00
Felix Ableitner
01fc1228d5
Fix API and clippy warnings
2021-03-29 20:55:08 +02:00
Dessalines
2309088b03
Renaming to api/v3
2021-03-29 11:26:15 -04:00
Dessalines
c2f8695c9a
Version 0.10.0-rc.12
2021-03-25 15:22:07 -04:00
Felix Ableitner
249fcc5066
Split api crate into api_structs and api
2021-03-25 20:19:40 +01:00
Felix Ableitner
34bdf4c7c5
Federate Matrix ID ( fixes #1438 )
2021-03-24 17:56:13 +01:00
Dessalines
3ca2453fc6
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-24 11:51:34 -04:00
Dessalines
8a10a9079f
Merge remote-tracking branch 'yerba/federated-moderation'
2021-03-24 11:48:02 -04:00
Felix Ableitner
c7524d924b
Fix federation tests
2021-03-24 16:33:04 +01:00
Dessalines
7051207495
Version 0.10.0-rc.10
2021-03-23 14:46:18 -04:00
Dessalines
6758922a63
Version 0.10.0-rc.9
2021-03-23 14:17:44 -04:00
Dessalines
baab2e88a5
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-23 14:16:54 -04:00
Dessalines
b4276341af
Adding saved_only to GetComments and GetPosts. Fixes #1513
2021-03-22 10:39:54 -04:00
Dessalines
e4ead96d3a
Merge branch 'main' into move_matrix_and_admin_to_person
2021-03-22 10:29:10 -04:00
Dessalines
eb45bf2d0a
Moving admin to person table. Fixes #1515
2021-03-22 10:28:00 -04:00
Felix Ableitner
d6bd072ea1
Make federation compatible with Lemmy v0.9.9
2021-03-22 15:08:06 +01:00
Felix Ableitner
a5a0d90349
Address review comments
2021-03-22 13:52:00 +01:00
Felix Ableitner
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
Dessalines
c884510173
Creating default DB forms. Fixes #1511
2021-03-20 16:59:07 -04:00
Dessalines
1745b64ceb
Moving matrix_user_id to person table. #1438
2021-03-20 15:21:51 -04:00
Felix Ableitner
4f54108a9c
Merge branch 'main' into federated-moderation
2021-03-19 17:11:34 +01:00
Dessalines
f55ef1d7ef
Version 0.10.0-rc.7
2021-03-19 11:46:46 -04:00
Dessalines
493598c1ba
A few suggestion fixes.
2021-03-19 10:02:58 -04:00
Dessalines
05b485b678
Merge branch 'Mart-Bogdan-1462-jwt-revocation-on-pwd-change' into jwt_revocation_dess
2021-03-19 00:31:49 -04:00
Dessalines
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
Dessalines
9930c7288a
Merge branch 'split_user_table' into strictly_type_db_ids
2021-03-18 16:30:42 -04:00
Dessalines
8d9fab0389
Merge branch 'main' into split_user_table
2021-03-18 16:30:29 -04:00
Dessalines
c3efb9f7cf
Strictly typing DB id fields. Fixes #1498
2021-03-18 16:25:21 -04:00
Felix Ableitner
4f7dca7c2b
Fix three federation test cases
2021-03-18 17:02:15 +01:00
Dessalines
5899b89ef2
Adding some comments to notifs.
2021-03-18 10:59:17 -04:00
Dessalines
99e5a4d1c3
Moving send email check inside function.
2021-03-18 10:52:25 -04:00
Felix Ableitner
b3a5b4eb82
Refactor activitypub code
2021-03-17 18:12:37 +01:00
Felix Ableitner
71067a8cb5
For FromApub trait, use `is_mod_action: bool` instead
2021-03-16 18:26:19 +01:00
Felix Ableitner
be00f63fb2
Allow remot moderators to do Remove/Post and Remove/Comment
2021-03-16 18:06:59 +01:00
Dessalines
270ce539bf
Removing some TODOS.
2021-03-15 18:18:50 -04:00
Dessalines
b9f483bc27
Version 0.10.0-rc.5
2021-03-15 14:50:50 -04:00
Dessalines
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
Felix Ableitner
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
Dessalines
5998c83b2a
Only sending private message if its a local user.
2021-03-12 15:18:03 -05:00
Dessalines
75a95acf04
Change joinuser, sendusermessage to use local_user_id
2021-03-12 10:54:47 -05:00
Felix Ableitner
de14636e10
Fix code to allow sticky/lock from remote moderators
2021-03-12 16:46:36 +01:00
Felix Ableitner
de39d57592
WIP: check that modifications are made by same user, add docs
2021-03-12 14:47:55 +01:00
Dessalines
7c039340ed
2nd pass. JWT now uses local_user_id
2021-03-11 17:47:44 -05:00
Felix Ableitner
b1ca85b910
Fix clippy warning
2021-03-11 18:18:01 +01:00
Felix Ableitner
50559de6d2
Add check so only mods can change stickied/locked state of posts
2021-03-11 18:11:59 +01:00
Dessalines
5d8ccbafe4
Fixing some tests 2
2021-03-11 11:54:03 -05:00
Felix Ableitner
803aad3b3e
Add check so only author or mods can edit posts/comments
2021-03-11 17:50:47 +01:00
Dessalines
1a4c8c08ee
Fixing some tests
2021-03-11 11:41:04 -05:00
Felix Ableitner
a2698dea92
Allow for remote mods to remove posts/comments
2021-03-11 17:21:45 +01:00
Dessalines
9cb4dad4b4
A first pass.
2021-03-10 23:43:11 -05:00
Dessalines
ddf4a667b1
~80% done
2021-03-10 17:33:55 -05:00
Felix Ableitner
3ffae1f5b8
Allow adding remote users as community mods (ref #1061 )
2021-03-09 18:14:15 +01:00
Felix Ableitner
dcf40db225
Update activitystreams to 0.7.0-alpha.11
2021-03-09 18:14:15 +01:00
Felix Ableitner
9172eff65a
Implemented receiving activities to add/remove remote mods
2021-03-09 18:14:15 +01:00
Felix Ableitner
0c484e8c76
Move moderators collection to separate HTTP endpoint
2021-03-09 18:14:15 +01:00
Felix Ableitner
beb8b9fe69
Use collection for moderators, instead of `attributedTo` (ref #1061 )
2021-03-09 18:14:15 +01:00
Dessalines
a1c7584875
Remove extra category_id s . Fixes #1429
2021-03-03 23:44:07 -05:00
Dessalines
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
Felix Ableitner
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
Felix Ableitner
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
Felix Ableitner
3bdd78f341
Rename `lemmy_structs` to `lemmy_api_structs`
2021-03-01 14:08:41 +01:00
Dessalines
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
Felix Ableitner
c618b4efaa
Remove federation backward compatibility code (ref #1220 )
2021-02-26 14:06:26 +01:00
Felix Ableitner
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
Dessalines
aba32917bd
Merge branch 'main' into split_user_table
2021-02-25 12:34:00 -05:00
Dessalines
ea3c0e1772
Merge branch 'main' into remove-integration-tests
2021-02-25 11:37:54 -05:00
Felix Ableitner
bf1e859e72
Remove broken actix_rt test
2021-02-25 17:25:31 +01:00
Felix Ableitner
3141ad31de
Remove categories ( fixes #1429 )
2021-02-25 13:22:37 +01:00
Felix Ableitner
3ae62573b7
Better type safety for activity parsing
2021-02-24 20:37:27 +01:00
Felix Ableitner
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
Felix Ableitner
8d5e9f865c
Use `name` field for post titles instead of `summary` (ref #1220 )
2021-02-22 19:34:41 +01:00
Felix Ableitner
8096765f0e
Fix clippy error upper_case_acronyms
2021-02-22 19:04:32 +01:00
Dessalines
c81435c994
Version 0.9.9
2021-02-19 13:10:04 -05:00
Dessalines
bcc8dae16b
Fixing deploy version.
2021-02-19 13:05:42 -05:00
Dessalines
a806493bc2
Version 0.9.8
2021-02-19 11:38:24 -05:00
Felix Ableitner
b593047fb1
Order outbox by published, not id
2021-02-19 15:59:06 +01:00
Dessalines
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
Felix Ableitner
d3707ad4ef
Fix new compiler warning
2021-02-18 16:16:18 +01:00
Felix Ableitner
13a949d9ec
Specify order for activities query ( fixes #1436 )
2021-02-18 16:15:52 +01:00
Dessalines
d0bd02eea0
Starting on user_ to person migration.
2021-02-14 13:46:16 -05:00
Dessalines
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
Felix Ableitner
3d400ca21d
Hide followed communities, except for own user ( fixes #1303 )
2021-02-11 14:53:17 +01:00
Dessalines
37ad9e9a09
Change RSS feeds to use lemmy URL for the rss link. Fixes #1378
2021-02-10 15:43:03 -05:00
Dessalines
1af906c224
Merge remote-tracking branch 'origin/main'
2021-02-10 15:13:22 -05: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
Dessalines
5a33fce8bd
Listing columns.
2021-02-10 11:05:12 -05:00
Dessalines
acadf0289e
Fixing reason lengths to char counts.
2021-02-10 10:36:22 -05:00
Dessalines
2e5ccaf7fe
Fixing display name limit. Fixes #1421
2021-02-10 10:27:48 -05:00
Felix Ableitner
63d9c0ee46
Explicitly mark posts and comments as public (ref #1220 )
2021-02-10 14:01:02 +01:00
Felix Ableitner
999d9f4d6c
Move routes into separate crate to speed up compilation
2021-02-09 19:34:36 +01:00
Dessalines
5656db3e3d
Version 0.9.7
2021-02-08 15:17:56 -05:00
Dessalines
f198f281cf
Version 0.9.6
2021-02-05 13:01:29 -05: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
Dessalines
2b6df63aee
Merge remote-tracking branch 'yerba/main'
2021-02-05 12:50:31 -05:00
Felix Ableitner
897263e5a3
Include object id when logging apub errors
2021-02-05 17:15:29 +01:00
Dessalines
4864f80656
Fixing community search not using auth. Fixes #1411
2021-02-05 10:36:28 -05:00
Felix Ableitner
105dfc93f1
Make apub extension fields optional (ref #1220 )
2021-02-05 14:23:57 +01:00
Dessalines
d5d99fa3b9
Moving docs to join.lemmy.ml . Fixes #1396 ( #1410 )
...
* Moving docs to join.lemmy.ml . Fixes #1396
* Removing submodule fetch from drone.
2021-02-05 12:30:49 +00:00
Dessalines
8a7e50381f
Version 0.9.5
2021-02-04 22:48:21 -05: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
Dessalines
9415bec557
Version 0.9.4
2021-02-02 15:29:38 -05:00
Dessalines
1857f02af8
Moving back tokio and reqwest.
2021-02-01 21:54:23 -05:00
Dessalines
10f0b3b877
Trying to upgrade lemmys deps.
2021-02-01 15:56:37 -05:00
Dessalines
0be9b5bddb
Add allowed and blocked instances to the federated_instances response. ( #1398 )
...
- Fixes #1315
2021-02-01 13:11:37 -05:00
Dessalines
6bb4f0b41f
Adding forum sort for post_aggregates. Fixes #1312 ( #1400 )
...
* Adding forum sort for post_aggregates. Fixes #1312
* Changing sort name from forum to MostComments.
2021-02-01 11:53:44 -05:00
Dessalines
f4d33389a5
Merge pull request #1401 from LemmyNet/non_null_post_view_vote
...
Post and comment vote views now return 0 instead of null.
2021-02-01 10:43:34 -05:00
Nutomic
c8254dc0a8
Merge pull request #1399 from LemmyNet/dont_let_banned_users_follow
...
Make sure banned users cant subscribe, and the ban unsubs them. Fixes…
2021-02-01 12:19:41 +00:00
Dessalines
d2ba2960dd
Post and comment vote views now return 0 instead of null.
...
- Fixes #1389
2021-01-31 10:29:21 -05:00
Dessalines
cd08fdf76f
Make sure banned users cant subscribe, and the ban unsubs them. Fixes #1324
2021-01-30 23:55:14 -05:00
Dessalines
aecb2411d8
Add check for parent comment. Fixes #1390
2021-01-30 23:10:16 -05:00
Dessalines
3a05817b41
Version 0.9.3
2021-01-29 14:25:20 -05:00
Dessalines
2322534648
Version 0.9.2
2021-01-29 13:49:43 -05:00
Dessalines
e6a16f08a3
Version 0.9.1
2021-01-29 11:43:16 -05:00
Dessalines
0fd0279543
Adding some recurring lemmy tasks. ( #1386 )
...
* Adding some recurring lemmy tasks.
- Add active users by day, week, month, and half year to site and
community. Fixes #1195
- Periodically re-index the aggregates tables that use hot_rank.
Fixes #1384
- Clear out old activities (> 6 months). Fixes #1133
* Some cleanup, recalculating actives every hour.
2021-01-29 11:38:27 -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
Felix Ableitner
5f59d7ba5f
Increase MAX_REQUEST_NUMBER for fetches to 25
2021-01-29 16:45:28 +01:00
Dessalines
62a145d8b3
Merge remote-tracking branch 'yerba/outbox-activities'
2021-01-29 09:17:14 -05:00
Felix Ableitner
c09c462a6e
Serve activities in community outbox ( fixes #1216 )
2021-01-29 14:48:42 +01:00
Nutomic
3d578f9df2
Use Url type for ap_id fields in database ( fixes #1364 ) ( #1371 )
2021-01-27 11:42:23 -05:00
Felix Ableitner
c51f750831
Use Url type for ap_id fields in database ( fixes #1364 )
2021-01-26 18:52:18 +01:00
Dessalines
cf911c023d
Add listing type to list communities ( #1380 )
...
* Adding listing type to ListCommunities. Fixes #1379
* Upgrading lemmy-js-client.
2021-01-26 12:18:01 -05:00
Dessalines
91d210ce79
Fixing modlog not showing bans and adds. Fixes #1376
2021-01-26 11:45:36 -05:00
Dessalines
1addbe361a
Version 0.9.0
2021-01-24 22:43:52 -05:00
Dessalines
97617d699d
Docker manifest arm amd64 deploy ( #1367 )
...
* A first try at docker manifest. 1.
* Fixing api version location
* Version 0.9.0-rc.13
* Test docker.
* Test docker 2.
* Test docker 3.
* Test docker 4.
* Test docker 5.
* Test docker 6.
* Test docker 7.
* Test docker 8.
* Test docker 9.
* Test docker 10.
* Test docker 11.
* Test docker 12.
* Version 0.9.0-rc.14
* Test docker 13.
* Test docker 14.
* Version 0.9.0-rc.15
* Test docker 15.
* Version 0.9.0-rc.16
* Test docker 16.
* Version 0.9.0-rc.17
2021-01-24 22:44:35 -05:00
Dessalines
ee03cf8ae9
Explicit error http status codes ( #1362 )
...
* Trying to type specific errors.
* Using @asonix 's downcast method.
2021-01-21 16:32:19 +00:00
Felix Ableitner
3b64c58198
Move most code into crates/ subfolder
2021-01-20 16:21:27 +01:00