Nutomic
9a458d2e4b
Run cargo check for each crate with different features (ref #2284 ) ( #2292 )
2022-06-02 18:19:53 +00:00
Nutomic
13ca1111c4
Remove 0.15 federation compat code ( #2131 )
2022-06-02 13:48:53 -04:00
Nutomic
a2a594b763
Extract Activitypub logic into separate library ( #2288 )
...
* Create example for apub lib
* some rewriting of apub lib
* Add LocalInstance struct for apub lib to avoid using Lemmy Settings
* Move ActorType trait to lemmy_apub, because its not needed in library
* Use reqwest_retry instead of custom impl, dont specify timeout on every send()
* Some improvements to example
* Moved inbox handling to library
* bug fixes
* Move context and serde helpers into library
* wip: example changes
* Add lemmy_utils feature to build only LemmyError
* Rename to activitypub_federation
* Remove lemmy_utils dep from activitypub_federation using generic error type
* Finish activitypub example
* Cleanup and fix tests
* Reorganize library files
* Remove ApubObject.to_tombstone()
* Extract activitypub library into separate git repository
2022-06-02 16:33:41 +02:00
Dessalines
1bd57ee5ca
Version 0.16.5
2022-05-30 18:32:31 -04:00
Dessalines
69106589ba
Fix publish
2022-05-26 16:10:36 -04:00
Dessalines
eafb3869f2
Revert "Add pending, and change use specific API response for FollowCommunity…" ( #2283 )
2022-05-26 11:17:04 -04:00
Dessalines
3c111b3062
Dropping default on pending column.
2022-05-20 16:15:14 +00:00
Dessalines
d4ee171b08
Making community_follower.pending column not null.
2022-05-20 16:15:14 +00:00
Dessalines
763dc9668c
Fix formatting.
2022-05-20 16:15:14 +00:00
Dessalines
e6fe9d0325
Fixing unfollow
2022-05-20 16:15:14 +00:00
Dessalines
48f5a2ee5e
Add pending, and change use specific API response for FollowCommunity. Fixes #2246
2022-05-20 16:15:14 +00:00
Nutomic
9ef0efa420
Add legal information ( fixes #721 ) ( #2273 )
2022-05-19 20:32:40 +00:00
Felix Ableitner
426e1b1e51
Update image crate
2022-05-17 13:48:47 -04:00
Felix Ableitner
562b88da9e
Remove youtube metadata test
2022-05-17 16:26:36 +02:00
Dessalines
5eb0dfdc73
Fixing malformed rosetta translations. Fixes #2231
2022-05-13 12:24:29 -04:00
Nutomic
f0ec3015cd
Remove check that avatars/banners are locally hosted ( fixes #2254 ) ( #2255 )
2022-05-10 17:08:13 +00:00
Paolo Barbolini
ef12cd9588
Bump lettre to 0.10.0-rc.6 ( #2250 )
2022-05-09 23:08:13 +00:00
Paolo Barbolini
559e43075a
Simplify building plain/html emails ( #2251 )
2022-05-08 17:00:12 +00:00
Nutomic
7b86441bab
Federate with Peertube ( #2244 )
2022-05-06 23:53:33 +00:00
Nutomic
3053e14be7
Derive default for api request structs, move type enums ( #2245 )
...
* Derive default for api request structs, move type enums
* Simplify api by using enum types directly, instead of string
* Add default and clone for most api structs
2022-05-06 20:55:07 +00:00
Nutomic
3aa3d75a1e
Add cargo feature for building lemmy_api_common with mininum deps ( #2243 )
2022-05-03 17:44:13 +00:00
Nutomic
dd5835fb6e
Add restricted community field to CreateCommunity, UpdateCommunity (ref #2235 ) ( #2242 )
2022-04-29 14:01:10 +00:00
Nutomic
7058cfa1cf
Implement restricted community (only mods can post) ( fixes #187 ) ( #2235 )
...
* Implement restricted community (only mods can post) (fixes #187 )
* review fixes
* fix tests
2022-04-28 20:32:32 +00:00
Nutomic
c718882479
Accept comments with hashtags from Friendica ( #2236 )
2022-04-27 16:12:13 +00:00
Nutomic
2e01e8e42c
Remove unused dependencies ( #2239 )
2022-04-27 17:56:05 +02:00
Nutomic
56b7030901
Fix link metadata unit test ( #2237 )
2022-04-27 15:42:10 +00:00
Nutomic
3488b9aeb5
Dont return "admin" for GET user when no id/name is provided ( fixes #1546 ) ( #2233 )
2022-04-25 21:16:29 +00:00
Nutomic
ae84258c41
Federation: dont overwrite local object from Announce activity ( #2232 )
...
* Federation: dont overwrite local object from Announce activity (fixes #2143 )
* add missing form fields
* refactoring
* add ap_id, updated fields
* fix
2022-04-25 21:11:34 +00:00
Nutomic
00b0b26dfa
Add default post listing type ( fixes #2195 ) ( #2209 )
...
* Add default post listing type (fixes #2195 )
* review fixes
* change column type
2022-04-19 19:05:08 +00:00
Dessalines
24be9f2cd5
Show deny reason to users after a failed login. Fixes #2191 ( #2206 )
...
* Show deny reason to users after a failed login. Fixes #2191
* Updating translations.
* Adding registration_denied translated string.
2022-04-19 10:48:59 +00:00
Dessalines
0a36b16e29
Fix allowlist / blocklist description location. Fixes #2214 ( #2215 )
...
* Fix allowlist / blocklist description location. Fixes #2214
* Fix allowlist check
2022-04-13 18:27:56 +00:00
Nutomic
3951a16447
Split apart api files ( #2216 )
2022-04-13 18:12:25 +00:00
Nutomic
e0381df88a
Expose remote site info in GetCommunity API ( fixes #2208 ) ( #2210 )
...
* Expose remote site info in GetCommunity API (fixes #2208 )
* use instance_actor_id_from_url()
2022-04-13 16:37:54 +00:00
Dessalines
3d8709780a
Fixing unstable post sorts. Fixes #2188 ( #2204 )
2022-04-13 15:33:38 +00:00
Nutomic
bbd739af9b
Change Person, Instance types ( #2200 )
2022-04-12 17:10:35 +00:00
Nutomic
b47a474863
Merge branch 'main' into clippy_fix_2
2022-04-12 10:03:40 +00:00
Nutomic
fed73a72c1
Write mod log for federated sticky/lock post actions ( #2203 )
2022-04-11 23:03:31 +00:00
Dessalines
0bcdfa8be4
Clippy fixes.
2022-04-11 18:51:11 -04:00
Dessalines
c232564fda
Version 0.16.3
2022-04-08 10:20:31 -04:00
Dessalines
4878848955
Version 0.16.3-rc.1
2022-04-08 09:17:00 -04:00
Dessalines
4052900d30
Updating translations
2022-04-08 09:13:46 -04:00
Nutomic
8337eaefdd
Federate user account deletion ( fixes #1284 ) ( #2199 )
2022-04-07 20:52:17 +00:00
Nutomic
9ac1f46a2b
Dont federate initial upvote ( #2196 )
2022-04-07 20:46:10 +00:00
Nutomic
f9d563d80a
Add missing mod log entries for federated actions ( fixes #1489 ) ( #2198 )
2022-04-07 20:44:28 +00:00
Dessalines
37c834725c
Make sure application questionaire is required. Fixes #2189
...
Also fix local image domain check. Was failing for blank strings /
replaces.
2022-04-04 20:58:50 +00:00
Nutomic
65cac21713
Fix verify_mod_action check for remote admin actions ( #2190 )
...
* Fix verify_mod_action check for remote admin actions
* fix federation test
2022-04-04 14:46:49 +00:00
Nutomic
c7f5337099
Run cargo upgrade ( #2176 )
...
* Run cargo upgrade and cargo update
* Fixing validation (#2179 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-04-01 18:37:51 +00:00
Nutomic
bfae246734
Migrate towards using page.attachment field for url (ref #2144 ) ( #2182 )
2022-04-01 18:25:19 +00:00
Nutomic
56b275acd4
Exclude removed/deleted posts from community outbox ( #2184 )
2022-04-01 18:18:25 +00:00
Nutomic
589d952a95
Fetch community outbox in parallel ( fixes #2180 ) ( #2181 )
2022-04-01 18:06:23 +00:00
Dessalines
4cf0da7b60
Clippy fixes.
2022-03-30 10:58:03 -04:00
Nutomic
ad7e6d99ed
Add email translations ( #2175 )
2022-03-29 18:23:03 +00:00
Dessalines
d5a213760d
Version 0.16.2
2022-03-29 12:56:21 -04:00
Dessalines
f7fa1f10f9
Updating translations.
2022-03-29 12:07:39 -04:00
Dessalines
7bb8069224
Version 0.16.2-rc.3
2022-03-29 11:54:13 -04:00
Nutomic
610120067c
Add test files for Friendica federation ( fixes #2144 ) ( #2167 )
2022-03-29 15:48:29 +00:00
Dessalines
e16821116e
Lowering search rate limit. Fixes #2153 ( #2154 )
...
* Lowering search rate limit. Fixes #2153
* Adding a search rate limit.
* Forgot to add the websocket search rate limit
* Fix wrong op
2022-03-29 15:46:03 +00:00
Dessalines
d49565e030
Rate limit ws joins ( #2171 )
...
* Removing async on mutex lock fn.
* Removing redundant ip
* Don't check rate limit twice.
2022-03-28 20:31:35 +00:00
Dessalines
a11b5b107d
Version 0.16.2-rc.2
2022-03-26 21:37:12 -04:00
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.
2022-03-27 00:29:05 +00:00
Nutomic
a5ff629b24
Dont log errors when rate limit is hit ( fixes #2157 ) ( #2161 )
...
* Dont log errors when rate limit is hit (fixes #2157 )
* Clone service rather than http request
* some cleanup/refactoring
Co-authored-by: Aode (Lion) <asonix@asonix.dog>
2022-03-25 16:41:38 +01:00
Dessalines
c681bb79b1
Version 0.16.2-rc.1
2022-03-24 18:25:21 -04:00
Dessalines
2da0684e95
Removing check_only
2022-03-24 16:29:08 -04:00
Dessalines
ed9f70276d
Fix rate limit check for register. Fixes #2159
2022-03-24 16:13:58 -04:00
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"
2022-03-24 16:33:42 +00:00
Dessalines
1e9f609cdb
Consolidate and lower reqwest timeouts. Fixes #2150 ( #2151 )
2022-03-24 16:33:23 +00:00
Nutomic
83e996111e
Check that config is valid before saving ( #2152 )
2022-03-24 16:23:12 +00:00
Nutomic
b406342a14
Dont log error if duplicate activity is received ( fixes #2146 ) ( #2148 )
2022-03-24 16:05:27 +00:00
Nutomic
cb44b14717
WIP: Email localization ( fixes #500 ) ( #2053 )
...
* Allow email localization (fixes #500 )
* add PersonAggregates::default()
* add lemmy-translations submodule
* fix gitmodules
2022-03-24 15:25:51 +00:00
Nutomic
8112816e99
If viewed actor isnt in db, fetch it from other instance ( #2145 )
2022-03-23 21:27:51 +00:00
Dessalines
4e6d901649
Show rate limit algorithm. Fixes #2136
2022-03-22 18:45:14 +00:00
Nutomic
a10bf7d410
Adjust retry interval for sending activities ( #2141 )
2022-03-22 18:40:40 +00:00
Nutomic
bcf7ec6109
Forbid remote URLs for avatars/banners ( fixes #1618 ) ( #2132 )
2022-03-18 15:46:58 +00:00
Nutomic
166ec196b0
Rework error handling ( fixes #1714 ) ( #2135 )
2022-03-16 20:11:49 +00:00
Dessalines
514e2301b5
Version 0.16.1
2022-03-15 17:23:16 -04:00
Dessalines
9fd6a48e3c
Version 0.16.1-rc.1
2022-03-15 16:52:37 -04:00
Nutomic
7d61616dff
Revert "Add logging to debug federation issues (ref #2096 ) ( #2099 )" ( #2130 )
...
This reverts commit e094989a4c
.
2022-03-14 20:18:19 +00:00
Nutomic
550a93aed9
Dont allow admin to add mod to remote community ( #2129 )
2022-03-14 18:35:57 +00:00
Nutomic
f8fb3b41f0
Reject federated downvotes if downvotes are disabled ( fixes #2124 ) ( #2128 )
2022-03-14 18:20:18 +00:00
Dessalines
05f20da51f
Version 0.16.0
2022-03-08 13:45:01 -05:00
Dessalines
82dec1911f
Version 0.16.0-rc.4
2022-03-08 08:57:57 -05:00
Nutomic
660efd1549
Correctly read local SiteView ( #2122 )
2022-03-08 12:52:33 +00:00
Dessalines
15ff832c4a
Version 0.16.0-rc.3
2022-03-07 18:59:29 -05:00
Nutomic
3c5275638f
Increase default worker count ( #2120 )
2022-03-07 22:28:50 +00:00
Dessalines
ffd2ba5d90
Fix community rss. Fixes #2116 ( #2119 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2022-03-07 21:49:02 +00:00
Nutomic
fbadb2d7bd
Try to fix federation test on ci ( #2121 )
2022-03-07 21:25:34 +00:00
Dessalines
aef2abb962
Version 0.16.0-rc.2
2022-03-03 14:40:09 -05:00
Nutomic
df757f28b4
Make delete activities backwards compatible with 0.15 ( #2114 )
2022-03-03 19:37:12 +00:00
Nutomic
ef1e164cc5
Make activity queue worker count configurable, log stats ( #2113 )
2022-03-03 18:54:33 +00:00
Nutomic
fa29ffade1
Add timeout for sending activities ( #2112 )
...
* Add timeout for sending activities
* Also set request timeouts in utils/src/request.rs
2022-03-03 13:40:10 -05:00
Dessalines
a5433ebf77
Fixing unit tests.
2022-03-03 12:51:55 -05:00
Rob Ede
e3153df74d
Remove direct actix-http
dependency
2022-03-02 18:11:05 +00:00
Rob Ede
b06f3eb32e
Update actix-*
dependencies to stable v4.
2022-03-02 18:00:52 +00:00
Dessalines
1b5037e92d
Version 0.16.0-rc.1
2022-03-02 12:41:11 -05:00
dayinjing
bc3927a9bd
Show nsfw communities if you are logged in and searching communities ( #2105 )
...
* Show nsfw communities in logged in and you've enabled nsfw in your profile atleast
* Reuse existing user check
Co-authored-by: Sun Wukong <monkey@king.com>
2022-03-02 17:39:27 +00:00
Nutomic
63565712ad
Fix resending activities ( fixes #1282 ) ( #2109 )
2022-03-01 13:40:05 -05:00
Nutomic
fb4c47d602
Dont hardcode site id in Site::update ( #2110 )
2022-03-01 17:01:23 +00:00
RedLobster999
348077c3de
send plain-text in email along with html ( #2107 )
...
* send plain text in email along with html
* format the code using "cargo +nightly fmt"
Co-authored-by: kittiphat-kang <kittiphat.nu@easysunday.com>
2022-03-01 14:28:18 +00:00
Nutomic
9f5183fe98
Add site option for default theme ( #2104 )
2022-02-23 11:40:36 -05:00
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>
2022-02-18 02:30:47 +00:00