Commit Graph

259 Commits (c7f533709918cc559254a7f2ccd0263335d17c69)

Author SHA1 Message Date
Nutomic c7f5337099
Run cargo upgrade (#2176)
* Run cargo upgrade and cargo update

* Fixing validation (#2179)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
3 years ago
Nutomic bfae246734
Migrate towards using page.attachment field for url (ref #2144) (#2182) 3 years ago
Nutomic 589d952a95
Fetch community outbox in parallel (fixes #2180) (#2181) 3 years ago
Dessalines 4cf0da7b60 Clippy fixes. 3 years ago
Dessalines d5a213760d Version 0.16.2 3 years ago
Dessalines 7bb8069224 Version 0.16.2-rc.3 3 years ago
Nutomic 610120067c
Add test files for Friendica federation (fixes #2144) (#2167) 3 years ago
Dessalines a11b5b107d Version 0.16.2-rc.2 3 years ago
Dessalines f2a0841586
Rate limit websocket joins. (#2165)
* Rate limit websocket joins.

* Removing async on mutex lock fn.

* Removing redundant ip

* Return early if check fails.
3 years ago
Dessalines c681bb79b1 Version 0.16.2-rc.1 3 years ago
Nutomic dfb0938738
GNU social compatibility (#2100)
* Use SourceCompat everywhere (better compat with other software)

* Name field should not be mandatory in Group

* also check page.cc field for community id

* add gnu social tests

* better to use option<sourcecompat>

* update gnu social tests, marked vote as "unlisted"
3 years ago
Nutomic b406342a14
Dont log error if duplicate activity is received (fixes #2146) (#2148) 3 years ago
Nutomic 8112816e99
If viewed actor isnt in db, fetch it from other instance (#2145) 3 years ago
Nutomic bcf7ec6109
Forbid remote URLs for avatars/banners (fixes #1618) (#2132) 3 years ago
Nutomic 166ec196b0
Rework error handling (fixes #1714) (#2135) 3 years ago
Dessalines 514e2301b5 Version 0.16.1 3 years ago
Dessalines 9fd6a48e3c Version 0.16.1-rc.1 3 years ago
Nutomic 7d61616dff
Revert "Add logging to debug federation issues (ref #2096) (#2099)" (#2130)
This reverts commit e094989a4c.
3 years ago
Nutomic f8fb3b41f0
Reject federated downvotes if downvotes are disabled (fixes #2124) (#2128) 3 years ago
Dessalines 05f20da51f Version 0.16.0 3 years ago
Dessalines 82dec1911f Version 0.16.0-rc.4 3 years ago
Dessalines 15ff832c4a Version 0.16.0-rc.3 3 years ago
Dessalines aef2abb962 Version 0.16.0-rc.2 3 years ago
Nutomic df757f28b4
Make delete activities backwards compatible with 0.15 (#2114) 3 years ago
Nutomic ef1e164cc5
Make activity queue worker count configurable, log stats (#2113) 3 years ago
Dessalines a5433ebf77 Fixing unit tests. 3 years ago
Rob Ede b06f3eb32e
Update `actix-*` dependencies to stable v4. 3 years ago
Dessalines 1b5037e92d Version 0.16.0-rc.1 3 years ago
dayinjing 7f9b55e793
Hide community v2 (#2055)
* Initial working of hiding communities and adding a db entry for mod log

* Return mod log for hidden communities

* Clean up hidding communities PR

* use lower case like other migration files

* Formatting fix

* pass in admin id to list, make match logic the same in post_view as community_view. Dont force non null for reason

* Clean PR review stuff

* Change person_id to mod_person_id on hide community table

* Make bools optional, add a space for formating

Co-authored-by: Thor Odinson <odinson@asgard.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
3 years ago
Nutomic 762b85b27e
Reorganize federation tests (#2092)
* Reorganize apub protocol tests

* Reorder apub protocol struct members to clarify mandatory/optional fields
3 years ago
Nutomic e094989a4c
Add logging to debug federation issues (ref #2096) (#2099) 3 years ago
Nutomic 5a8c894359
Upgrade to Rust 2021 edition (#2093)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
3 years ago
Nutomic 788924d7ff
Merge different delete activities for better compatibility (fixes #2066) (#2073) 3 years ago
Nutomic dd865c5af5
Implement instance actor (#1798)
* Implement instance actor

* wip: make site bans federate

* finish implementation and unit tests for federated bans

* start adding api tests

* fix api test

* remve site from GetCommunityResponse

* only federate site bans originating from user's home instance

* dont expose site.private_key in api
3 years ago
Nutomic 545fe8d0dd
Add federation tests for Friendica, improve parsing of source field (fixes #2057) (#2070) 3 years ago
Nutomic 4a23ee4d8b
Dont make webfinger request when viewing community/user profile (fixes #1896) (#2049) 3 years ago
Nutomic f23fed70bc
Add tombstone tests, better test errors (#2046) 3 years ago
vpzomtrrfrt 272dc3e7a6
Accept single object as to for arrays too (#2048) 3 years ago
Nutomic eea3308906
Add tests for lotide federation, make lotide groups fetchable (#2035)
* Add tests for lotide federation, make lotide groups fetchable

* Accept posts using Note type (and better error messages for tests)
3 years ago
Dessalines f53902ecff Version 0.15.1 3 years ago
Dessalines bccb4f068d Version 0.15.0 3 years ago
Dessalines a24676e629 Version 0.15.0-rc.7 3 years ago
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.
3 years ago
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
3 years ago
Rob Ede 1943bcd7f5
Prevent panic on InboxRequestGuard 3 years ago
Rob Ede f6c13cf313
Updated actix-web dependency to `4.0.0-beta.18` 3 years ago
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>
3 years ago
Dessalines 1410c5659c
Upgrading deps (#1995) 3 years ago
Nutomic c6ac606f60
Test pleroma follow (#1988)
* Add test case for Pleroma follow activity (ref #1984)

* Use WithContext in apub tests where possible
3 years ago
Riley 0ed3856ef1
Remove awc (#1979)
* Remove unused awc dep

* Replace awc pict-rs client with reqwest

* Reinstate 30 second pict-rs timeout
3 years ago