Dessalines
c68473c122
Upgrading deps. ( #5326 )
...
* Upgrading deps.
* Upgrading a few more.
* A few more
2025-01-15 10:10:12 +01:00
Dessalines
b901714d71
Fixing person_content_combined migration uniques. ( #5324 )
2025-01-14 10:48:56 -05:00
Dessalines
9c1347c7a0
Adding Combined modlog ( #5253 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4bc5fee39fdd2840828330f398444a36.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f167110721429dd6e465f522250c8beb3d4dd7.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-14 15:14:58 +01:00
dullbananas
da9582c80a
Optimize migrations ( #5301 )
...
* Optimize migrations
* update smoosh migration
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2025-01-13 23:10:31 -05:00
a91a03a536
Image api rework ( #5260 )
...
* Split image endpoints into API v3 and v4
* Move into subfolders
* Upload avatar endpoint and other changes
* Various other changes
fixes #1772
fixes #4001
* clippy
* config options
* fix ts bindings
* fix api tests
* Add option to disable image upload (fixes #1118 )
* split files into upload, download
* move sitemap to top level, not in api
* simplify code
* add upload user banner
* community icon/banner
* site icon/banner
* update js client
* wip
* add delete endpoints
* change comment
* optimization
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* move fn
* 1024px banner
* dont use static client
* fix api tests
* shear
* proxy pictrs in request.rs (fixes #5270 )
* clippy
* try to fix api tests
* skip api tests
* create user
* debug
* dbg
* test
* image
* run another
* fixed?
* clippy
* fix
* fix health check
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-13 16:09:00 -05:00
dullbananas
c08e216ae8
Correctly paginate PostView when read_only is enabled ( #5320 )
2025-01-13 15:46:46 -05:00
dullbananas
4d17eef82b
Add community reports (only the database part) ( #4996 )
...
* database stuff, not including tests
* change migration date
* fix community_report_view
* update stuff related to report_combined
* add db_schema/src/impls/community_report.rs
* add report counts to community_aggregates
* fix community_report columns and update report_combined_view::tests::test_combined
* add column for original sidebar; use None instead of clone; add report_combined_view::tests::test_community_reports
* use ts(optional) in CommunityReportView
* remove CommunityReportView::read
2025-01-13 05:14:56 -05:00
11e0513592
Change default image_mode to proxy, remove deprecated option ( #5176 )
...
* Change default image_mode to proxy, remove deprecated option
* fix api test
2025-01-10 12:34:12 -05:00
c879eb1244
Remove unused apub audience field ( fixes #5278 ) ( #5315 )
...
* Remove unused apub audience field (fixes #5278 )
* fix
* fix test
* remove comments
2025-01-09 09:41:39 -05:00
dullbananas
712197f53c
Fix incorrectly using delete instead of uplete in update_banned_when_expired ( #5316 )
2025-01-09 09:35:33 -05:00
15473e5137
Correct HTTP status for NotFound error ( fixes #5309 ) ( #5313 )
2025-01-09 04:51:52 -05:00
Dessalines
d83f96293d
Automatically marking posts created in an NSFW community as NSFW. ( #5310 )
...
* Automatically marking posts created in an NSFW community as NSFW.
- Context: https://github.com/LemmyNet/lemmy-ui/issues/2885
* Update crates/api_crud/src/post/create.rs
Co-authored-by: Nutomic <me@nutomic.com>
---------
Co-authored-by: Nutomic <me@nutomic.com>
2025-01-09 10:02:44 +01:00
c81144cd14
Remove unused params on CreateSite/EditSite ( #5311 )
2025-01-08 16:48:29 -05:00
dullbananas
6b1b29419d
Add custom migration runner, forbid some diesel migration
commands, fix old migrations ( #4673 )
...
* Update schema.rs
* rename
* stuff
* finish new implementation of schema_setup::run (not including revert, test, etc.)
* fmt
* refactor
* fix sql
* migriation run command
* use trigger on migrations table
* add Options with disable_migrations field for test
* rename to enable_forbid_diesel_cli_trigger
* fix
* fix merge
* diff_checker (partial)
* Revert "diff_checker (partial)"
This reverts commit 6709882e148ceff48d6f097895af18d13fbdf4bf.
* Revert "Revert "diff_checker (partial)""
This reverts commit d4bdda5d11216f4acd13b9585d2392ca8c252a73.
* diff check
* improve schema diff
* timestamp replacement
* ignore column order
* remove fedi_name default
* stuff
* improve diff
* stuff
* attempt parallel pg_dump
* attempt 2
* Revert "attempt 2"
This reverts commit a909d2d6438d0b53382f762cf916ee92286a9965.
* Revert "attempt parallel pg_dump"
This reverts commit 592a12795428000ab15b572f89cbd9c6e25fb76c.
* improve diff check
* finish fixing migrations
* stuff
* use advisory lock
* stuff
* Update lib.rs
* fmt
* fmt
* clippy
* Update diff_check.rs
* Update .woodpecker.yml
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update lib.rs
* re-run ci
* fmt
* fmt
* Update .woodpecker.yml
* Update .woodpecker.yml
* create separate database in ci
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* try to fix env var
* Update diff_check.rs
* Remove condition that's not needed anymore
* clippy
* exclude views and fast tables
* revert some migration changes
* fix
* fmt
* re-attempt checking character after skipped trigger name, and make code less confusing
* fmt
* fix
* rerun ci
* rerun ci
* fix strip_prefix order
* fix weird big Cargo.lock change by running `git checkout upstream/main Cargo.lock` then letting it auto update again
* fix
* remove installation commands that were removed in main branch
* Revert "remove installation commands that were removed in main branch"
This reverts commit fd65234a760b8b1bb42bc5b59b0ec972b08ded13.
* move create_database_user woodpecker step to make diff less weird
* fix clippy
* Make diff check work just like before
* Move new migrations to the end
* Revert changes to old migrations
* don't assume that migrations are already sorted
* retry CI
* fix merge
* find migrations dir in debug mode using CARGO_MANIFEST_DIR variable instead of current working directory
* always use embedded migrations
* improve doc comments for migration subcommand
* clippy fix
* move cfg(test) attribute to diff_check.rs
* copy `o` variable instead of calling `o` function
* use chrono::TimeDelta Display implementation to show migration duration
2025-01-08 11:07:32 +01:00
Dessalines
3f3f983267
Remove unnecessary Cargo.toml entry ( #5279 )
...
* Running cargo-wizard to speed up compilation times.
* Fix 1.
* Fix 2
* Removing panic abort, and config.toml file.
2025-01-08 10:50:44 +01:00
9df10b3dc9
Remove unused param Create/EditSite.enable_nsfw
2025-01-08 10:28:01 +01:00
flamingos-cant
2a89179611
Add markdown-it-footnotes ( #5303 )
2025-01-07 13:16:30 -05:00
Dessalines
0bfbd74e59
Adding combined person content and person saved tables. ( #5251 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4bc5fee39fdd2840828330f398444a36.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Using dullbananas trigger procedure
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-05 12:48:57 -05:00
41421991d6
Error handling for thumbnail generation (ref #5196 ) ( #5298 )
2025-01-03 14:09:24 -05:00
6de73f37ca
Rename variable
2025-01-03 15:57:02 +01:00
Dessalines
e9d27f2840
Don't send out new user email verifies to admins, if already verified. ( #5288 )
...
- Fixes #5272
2025-01-03 11:16:25 +01:00
leoseg
ba779b978f
New parameter read_only
for /api/v3/post/list ( #5264 )
...
* added option to get only read only posts with unittests
* formatted code
* added index on (person_id, read) on post actions where read is not null
* formatted sql
* Update migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixxed error in down.sql for migration of index on (person_id,read_only,post_id) on post_actions
* Fixxed error in unittests
* Update crates/db_views/src/post_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-03 11:08:00 +01:00
Dessalines
c656465e28
Fix contradicting filters. ( #5281 )
2025-01-03 11:02:20 +01:00
anhcuky
c034229295
reset_password API to always return success ( #5284 )
2025-01-02 12:37:13 -05:00
dullbananas
b91790e29e
Fix incorrect comment in report_combined_view test ( #5297 )
2025-01-02 12:35:56 -05:00
renovate[bot]
9c473e8298
chore(deps): update rust crate chrono to v0.4.39 ( #5295 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-01 13:28:26 -05:00
dullbananas
b8556fa5cf
Shorten "options" variable name ( #5285 )
...
* comment view, post view
* do rename everywhere else
* fix person_view
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2025-01-01 12:52:20 -05:00
Dessalines
ffc3493abe
Applying some clippy fixes. ( #5292 )
2025-01-01 12:47:21 -05:00
renovate[bot]
39aace0c8f
chore(deps): update rust crate clap to v4.5.23 ( #5296 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 23:35:13 -05:00
renovate[bot]
34672ab21b
chore(deps): update rust crate anyhow to v1.0.95 ( #5294 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 21:16:18 -05:00
renovate[bot]
83bf60571e
chore(deps): update docker ( #5293 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 20:38:21 -05:00
Richard Schwab
f76322e3f5
Reduce false positives in URL blocklist to reduce scunthorpe problem by matching at word boundaries. ( #5282 )
...
This addresses an issue brought up on matrix where blocking rt.com resulted in links to deviantart.com getting blocked.
2024-12-27 12:53:23 -05:00
Dessalines
76034f058d
Cleaning up oauth providers conversion. ( #5280 )
...
* Cleaning up oauth providers conversion.
* Use into_iter
2024-12-27 12:52:05 -05:00
Dessalines
cc190aefdf
Use codeberg pictrs mirror to fix CI. ( #5286 )
2024-12-24 14:24:12 -05:00
7585aac446
Fix startup errors, add unit test for scheduled task errors ( fixes #5209 ) ( #5269 )
...
* Fix startup errors, add ci check (fixes #5209 )
* normal unit test
* cleanup
* shear
* remove serial
* migration
2024-12-20 19:21:09 -05:00
Dessalines
6015ef045d
Running cargo-features-manager prune. ( #5274 )
...
- Context #5273
2024-12-20 23:20:16 +01:00
Dessalines
9d3a0cef56
Adding report_combined
table. ( #5231 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4bc5fee39fdd2840828330f398444a36.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Fixing api tests.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Addressing PR comments.
* Removing serialization
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-12-19 17:22:31 -05:00
Integral
8b78ddeb68
refactor: avoid using format! when String creation is unnecessary ( #5268 )
2024-12-19 15:42:01 -05:00
phiresky
a2a5cb091a
Community post tags (part 1) ( #4997 )
...
* partial post tags implementation
* fixes
* fix lints
* schema fix
* chore: restructure / rename tag tables
* chore: fix post view tests
* format
* lint
* expect used
* chore: update code to maybe final version
* add ts-rs optionals
* remove error context
* clippy
2024-12-18 14:54:35 +01:00
d346890b1f
Increase metadata fetch limit to 1 MB ( fixes #5208 ) ( #5266 )
2024-12-17 10:01:53 -05:00
8d91543a13
Allow admins to view deleted users ( fixes #5249 ) ( #5258 )
...
* Allow admins to view deleted users (fixes #5249 )
* remove check
2024-12-12 10:06:38 -05:00
6a9f924d20
More test coverage for user deletion ( #5259 )
2024-12-12 10:03:55 -05:00
2467a0af12
Consider remote instance as dead if it returns any status 4xx or 5xx ( #5256 )
...
* Consider remote instance as dead if it returns any status 4xx or 5xx (ref #3134 )
* remove dbg
2024-12-12 09:38:16 -05:00
8a5daeec97
Only accept database connection by uri ( #5254 )
...
* Only accept database connection by uri
* lint
* fix docker configs
2024-12-10 10:15:54 -05:00
Integral
9e17c517fe
refactor: replace static with const for global constants ( #5250 )
2024-12-09 10:31:07 +01:00
5e7b30ac6a
Reorganize api endpoints ( fixes #2022 ) ( #5216 )
...
* Reorganize api endpoints (fixes #2022 )
* scopes
* move message rate limit
* move rate limit
* apply suggestions
* move my_user to separate endpoint
* remove taglines and custom emojis from siteview
* routes for api v3 and v4
* remove new features from api v3
* js client
* replace occurences of `v3`, fix routes
* replace getSite().my_user with getMyUser()
* update
* update config
* remove web::
* update
* prettier
* lockfile
* v
* fix settings
* move block endpoints
* more changes
* fmt
* update
* change some routes
* lockfile
* Add comment about deprecation
2024-12-07 14:06:33 -07:00
adadb45ace
Add comment about upgrading Rust version ( #5248 )
2024-12-04 08:30:42 -05:00
flamingos-cant
ff2bbf41ca
Use magic number to detemine file type ( #5225 )
...
* Revert "Guess image mime type from file extension (fixes #5196 ) (#5212 )"
This reverts commit 63ea99d38a
.
* Use magic numbers to determine file type.
* fmt
* Don't wrap response in an option
* Regen Cargo.lock
* Clean-up + guess mime type from extension if server is unresponsive
* Move some things about.
* Some cleanup.
* Removing comment lines.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-12-04 08:29:50 -05:00
Dessalines
f4cd569a98
Updating to rasky's lemmy-cross-toolchain v0.5.0 for rust 1.81 ( #5247 )
...
- Fixes #5159
2024-12-04 10:22:43 +01:00
f065215e74
Add test cases for community with non-ascii name (ref #5239 ) ( #5246 )
...
* Add test cases for community with non-ascii name (ref #5239 )
* fmt
* Update run-federation-test.sh
2024-12-03 12:19:01 -05:00
dcf1cfca9b
Return content of removed comments for admins (ref #5232 ) ( #5245 )
...
* Return content of removed comments for admins (ref #5232 )
* fmt
* remove dbg
2024-12-02 17:06:39 -05:00
Mikoto
9505d1d205
feat: add PKCE ( #5189 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2024-12-02 16:47:03 -05:00
ba3e6b482b
Add note wrapper ( fixes #2657 ) ( #5221 ) ( #5236 )
...
* Add note wrapper (fixes #2657 ) (#5221 )
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
* wip
* make it work
* fmt
* now really working
* fixes
* add comments
2024-12-02 05:28:23 -05:00
renovate[bot]
5085d1c3e3
Update Rust crate diesel-async to v0.5.2 ( #5243 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 20:14:07 -05:00
renovate[bot]
44f584b414
Update Rust crate diesel to v2.2.5 ( #5242 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 19:57:32 -05:00
Dessalines
e3fccb3f81
Fixing woodpecker secrets warning. ( #5237 )
2024-11-29 10:35:03 +01:00
3d7fbde091
Allow bypassing image proxy for specific domains ( #5223 )
...
* Allow bypassing proxy for some domains with ProxyAllImages
* remove web::
* remove expect
* bypass imgur by default
* correct imgur domain
* restore processing, cleanup
---------
Co-authored-by: sunaurus <sander@saarend.com>
2024-11-28 18:23:18 -05:00
66a63df152
Instance blocks with mod log entry and expiration ( fixes #2506 ) ( #5214 )
...
* Instance blocks with mod log entry and expiration (fixes #2506 )
* separate table for instance block mod log
* fix tests
* fix ts
* modlog entry for allow instance
* fix test cleanup
* add back test
* clippy
* fix check
* more changes
* move files
* update
* sql fmt
* partly working
* fix setup
* cleanup
* fixes
* prettier
* try catch
* address comments
2024-11-28 18:21:43 -05:00
f6de3b0388
Enable site languages for new user ( fixes #5234 ) ( #5235 )
...
* Enable site languages for new user (fixes #5234 )
* test coverage
2024-11-28 18:03:14 -05:00
5a403bc250
Revert " Add note wrapper ( fixes #2657 ) ( #5221 )"
...
This reverts commit 7304ef3261
.
2024-11-28 11:14:04 +01:00
7304ef3261
Add note wrapper ( fixes #2657 ) ( #5221 )
...
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
2024-11-26 10:37:19 +01:00
Dessalines
7ee7b069af
Move up clippy and cargo test in CI. ( #5229 )
...
- Clippy is usually the most likely CI test to fail, and it currently
takes > 5m to reach it, wasting CPU resources.
2024-11-26 09:39:14 +01:00
c0d7d76570
Remove getrandom dependency ( #5226 )
...
* Remove getrandom dependency
* fix
2024-11-25 18:20:45 -05:00
bb26a701bc
Proxy pictrs healthz endpoint ( #5224 )
2024-11-25 11:43:34 -05:00
Dessalines
ba3d574d92
Add report_counts to post and comment aggregate tables. ( #5219 )
...
* Add report_counts to post and comment aggregate tables.
- This adds a report_count and unresolved_report_count to
the post and comment aggregate tables.
- Useful for front-ends wishing to show report links.
- Fixes #4163
* Updating the historical counts.
* Switching from bigint to smallint.
* Using dullbananas create_trigger function.
2024-11-25 11:24:57 +01:00
Dessalines
41bd830389
Fixing a few clippy recommendations on 1.84 nightly. ( #5222 )
2024-11-25 10:06:39 +01:00
b8dda06f5b
More test coverage for private community, fix some bugs ( #5207 )
...
* More test coverage for private community, fix some bugs
* fmt
* stuff
* attempted fix
* fix tests
* api tests passing
* fix tests
* apub lib
2024-11-22 10:49:56 -05:00
2848c076af
Add helper method for caching function results ( #5220 )
...
* Add helper method for caching function results
* fmt
2024-11-22 09:33:35 -05:00
63ea99d38a
Guess image mime type from file extension ( fixes #5196 ) ( #5212 )
...
* Guess image mime type from file extension (fixes #5196 )
* Mime check fixes. (#5213 )
* Mime check fixes.
* Adding back comment.
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-19 09:48:44 -05:00
Dessalines
417e18e819
Upgrading diesel and a few other deps. ( #5203 )
...
* Upgrading diesel and a few other deps.
* Update crates/db_schema/src/utils.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-11-18 10:23:02 -07:00
556358f53e
Dont sanitize RSS content manually ( fixes #5171 ) ( #5174 )
2024-11-18 09:58:31 -05:00
797aac7281
Check for error when fetching link metadata ( fixes #5127 ) ( #5129 )
...
* Check for error when fetching link metadata (fixes #5127 )
* use error_for_status everywhere
* dont ignore errors
* enable lint
* fixes
* review
* more review
2024-11-15 09:13:43 -05:00
Dessalines
fa4825b524
Removing a few expects from production and test code. ( #5193 )
...
* Removing a few expects from production and test code.
- Fixes #5192
* Using if let filter for admin emails.
* Fixing unused error.
* Adding expect_used = deny to clippy lints.
* Update src/lib.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Update crates/utils/src/settings/structs.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Update crates/utils/src/settings/mod.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Some more cleanup.
* Fix clippy
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-11-15 08:18:52 -05:00
Dessalines
231cce9350
Cleanup post action forms ( #5197 )
...
* Removing a few SuccessResponses for PostHide and MarkPostAsRead.
- This also removes the pointless multiple post_ids. These can be done
as individual calls on the front end anyway.
- Fixes #4755
* Fixing federation tests.
* Upgrading lemmy-js-client deps.
* Add ability to mark several posts as read.
Context:
- https://github.com/LemmyNet/lemmy/pull/5043
- https://github.com/LemmyNet/lemmy/issues/4755
- https://github.com/LemmyNet/lemmy/pull/5160
* Simplifying forms.
* Fixing forms.
* Cleanup post action forms by using derive_new defaults.
- Fixes #5195
* Fix ntfy to notify on success builds also.
* Removing pointless naive_now function.
* Running taplo fmt.
2024-11-15 11:21:08 +01:00
Dessalines
7f4e26e29e
Add ability to mark multiple posts as read. ( #5178 )
...
* Removing a few SuccessResponses for PostHide and MarkPostAsRead.
- This also removes the pointless multiple post_ids. These can be done
as individual calls on the front end anyway.
- Fixes #4755
* Fixing federation tests.
* Upgrading lemmy-js-client deps.
* Add ability to mark several posts as read.
Context:
- https://github.com/LemmyNet/lemmy/pull/5043
- https://github.com/LemmyNet/lemmy/issues/4755
- https://github.com/LemmyNet/lemmy/pull/5160
* Fix ntfy to notify on success builds also.
* Addressing PR comments.
2024-11-14 09:03:39 -05:00
Dessalines
a9d6d4e6e0
Add user setting to auto-mark fetched posts as read. ( #5160 )
...
* Add user setting to auto-mark fetched posts as read.
- Rather than apps collecting up viewed posts ids, and sending many
mark as read requests, users can now turn this setting on, and any
results from /post/list will be auto-marked as read.
- Fixes #5144
* Adding list_post request option to auto-mark as read.
* Moving db_perf to before federation tests.
* Fixing lemmyerrortype import.
* Fixing ts_option.
* Fix clippy.
* Fix override logic.
* Revert "Fix override logic."
This reverts commit 923d7f0ecaa3ccc85a62e407082c2f7ea31473fa.
* Changing name to mark_as_read
2024-11-13 10:05:16 -05:00
Dessalines
c4d864878f
Change "mark post as read", "hide post" api calls to take single post instead of multiple ( #5043 )
...
* Removing a few SuccessResponses for PostHide and MarkPostAsRead.
- This also removes the pointless multiple post_ids. These can be done
as individual calls on the front end anyway.
- Fixes #4755
* Fixing federation tests.
* Upgrading lemmy-js-client deps.
* Simplifying forms.
* Fixing forms.
* Removing indexing slicing from a test.
2024-11-13 09:36:18 -05:00
Dessalines
faf62de4e3
Fixing cors origin wildcard. ( #5194 )
...
* Fixing cors origin wildcard.
- Fixes #5185
* Add other allows to specified origin block.
* Fix clippy.
2024-11-13 09:45:17 +01:00
f916309df8
Always assign default language before checking if language is allowed ( #5132 )
...
* Always assign default language before checking if language is allowed (fixes #5131 )
* handle all logic in same fn
* fix test
* rename
2024-11-12 14:52:39 -05:00
542e59bcae
Fetch community mods synchronously ( #5169 )
...
* Fetch community mods synchronously
* fix
* fix
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-12 12:43:24 -05:00
dce6c6bbf0
Move aggregates to replaceable_schema, fix error ( fixes #5186 ) ( #5190 )
...
* Move aggregates to replaceable_schema, fix error (fixes #5186 )
* fmt
* r prefix
2024-11-12 12:03:30 -05:00
SleeplessOne1917
a8fb55d6c8
Simplify regex for user/community name validation ( #5164 )
...
* Add lowercase only check for community names
* Lint
* Remove redundant check
* Lint
* Add newline escape tests
* Eliminate confounding factor in community name test
* Use same check for user names and community names
* Use min/max length check
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2024-11-12 05:54:23 -05:00
Dessalines
7d5cb9de49
Cleanup URL tracking tests. ( #5181 )
2024-11-12 10:35:15 +01:00
dullbananas
2e8687e203
Combine action tables ( #4459 )
...
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update post_view.rs
* Update utils.rs
* Update schema.rs
* stuff
* stuff
* fix actions
* PostLike
* fmt
* more post stuff (partial)
* remove uplete
* returning
* rename read_comments field
* PersonPostAggregates
* a
* fix usage of read_comments_amount
* comment
* community
* community_block
* instance_block
* LocalUser::export_backup
* person_block
* person
* stuff (partial)
* update cargo.lock
* fix lemmy_db_schema
* post_view
* comment_report_view
* comment_view
* post_report_view
* find and replace some selected values
* private_message_view
* vote_view
* comment_reply_view
* some action views
* action_query, find_action
* community_view
* block views
* person_mention_view
* remove struct update
* refactor actions function
* actions_alias
* clean up return types and trait bounds
* fix all rust code
* fmt
* clippy fix
* Migrate tables
* migrate indexes and contraints, and add statistics
* fix what appears to be a messed up merge
* commented thing
* Create uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update up.sql
* Update comment.rs
* Update Cargo.toml
* Update comment.rs
* Update post.rs
* Update comment_view.rs
* Update post_view.rs
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update Cargo.toml
* Update utils.rs
* Update comment.rs
* Update utils.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment_view.rs
* Update post_view.rs
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update person_mention_view.rs
* Update comment_reply_view.rs
* Update uplete.rs
* start removing post_id column
* Update down.sql
* Update schema.rs
* Update comment.rs
* Update comment.rs
* Update comment.rs
* Update schema.rs
* Update comment.rs
* Update like.rs
* Update comment.rs
* Update up.sql
* Update down.sql
* Update down.sql
* Update up.sql
* Update up.sql
* Update down.sql
* Update comment.rs
* Update vote_view.rs
* Update vote_view.rs
* Update comment_aggregates.rs
* Update person_aggregates.rs
* Update comment_view.rs
* Update vote_view.rs
* Update mod.rs
* Update create.rs
* Update comment.rs
* Update community.rs
* Update community.rs
* Update up.sql
* Update uplete.rs
* Update uplete.rs
* revert to UpleteCount
* Update comment.rs
* Update traits.rs
* Update comment.rs
* Update community.rs
* Update community_block.rs
* Update community.rs
* Update instance_block.rs
* Update instance.rs
* Update community_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update instance.rs
* Update instance_block.rs
* Update instance.rs
* Update person.rs
* Update post.rs
* Update comment.rs
* Update community.rs
* Update person.rs
* Update post_view.rs
* Update comment.rs
* reduce diff
* revert some changes in views
* Update post_view.rs
* Update comment.rs
* Update post.rs
* fix missing cfg_attr
* rewrite uplete
* Update Cargo.toml
* Update Cargo.toml
* Update uplete.rs
* add `pub` to structs that appear in trait bounds
* optional = true
* Update uplete.rs
* Update community.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* something is wrong with me
* use new uplete function everywhere
* fmt
* fmt
* Keep post_id when comment_actions::liked is not null
* Update up.sql
* Update up.sql
* clean up up.sql
* clean up down.sql
* fix
* Update person_aggregates.rs
* fmt
* Update uplete.rs
* fmt
* Update uplete.rs
* Update community.rs
* Update uplete.rs
* Update local_user.rs
* fmt
* fix
* fix
* fmt
* improve uplete api
* Update uplete.rs
* fix
* fix
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* fix
* fix test
* fix db_views_actor imports
* fix uplete import in post_view test
* rerun ci
* fix AllNull syntax error
* fix DynColumn
* Fix rust syntax
* fmt
* fix iter
* pain
* Update community_moderators.rs
* Update community_moderator_view.rs
* Update uplete.rs
* Fix mistake found by chatgpt
* revert debugging stuff, change migration date, refactor constraint
* Update down.sql
* Update down.sql
* fmt
* make things added to db_schema::utils more understandable
* update rust version for woodpecker
* finish merge
* Fix index that checked read_comments twice instead of also checking read_comments_amount
* fix
* uplete: test_count, test_generated_sql_setting_one_column_null, test_count_methods
* refactor uplete sql test
* test setting both columns to null in uplete
* make AllNull generic
* test AllNull
* Merge remote-tracking branch 'upstream/main' into smoosh-tables-together
---------
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2024-11-11 11:34:10 +01:00
SleeplessOne1917
05c3eae016
Bump versions used in compose ( #5180 )
2024-11-08 17:43:44 -05:00
Dessalines
70b0d39475
Upping default max_image_size from 256 to 512. ( #5177 )
...
- Context: https://github.com/LemmyNet/lemmy-ui/issues/2796
2024-11-08 07:29:48 -05:00
Dessalines
39eeb2cbb3
Allow disabling private messages. Fixes #3640 ( #4094 )
...
* Allow disabling private messages. Fixes #3640
* Fix typo.
* Fixing local user check in apub code.
* Removing pointless local check.
2024-11-07 22:16:28 -05:00
Dessalines
441b8518fa
Increase speed check limit. ( #5175 )
2024-11-07 12:30:58 -05:00
ad90cd77f9
Implement private communities ( #5076 )
...
* add private visibility
* filter private communities in post_view.rs
* also filter in comment_view
* community follower state
* remove unused method
* sql fmt
* add CommunityFollower.approved_by
* implement api endpoints
* api changes
* only admins can create private community for now
* add local api tests
* fix api tests
* follow remote private community
* use authorized fetch for content in private community
* federate community visibility
* dont mark content in private community as public
* expose ApprovalRequired in api
* also check content fetchable for outbox/featured
* address private community content to followers
* implement reject activity
* fix tests
* add files
* remove local api tests
* dont use delay
* is_new_instance
* single query for is_new_instance
* return subscribed type for pending follow
* working
* need to catch errors in waitUntil
* clippy
* fix query
* lint for unused async
* diesel.toml comment
* add comment
* avoid db reads
* rename approved_by to approver_id
* add helper
* form init
* list pending follows should return items for all communities
* clippy
* ci
* fix down migration
* fix api tests
* references
* rename
* run git diff
* ci
* fix schema check
* fix joins
* ci
* ci
* skip_serializing_none
* fix test
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-07 05:49:05 -05:00
Dessalines
917e408735
Fix postgres connection options causing slow query speed. ( #5150 )
...
* Adding a query speed check.
* Fixing slow queries due to connection config options.
* Remove pointless set_config sql function.
* Removing pointless bool.
* Removing comment
* Removing test.sh changes.
* Add analyze to speed up query
* Trying to fix DB perf connection try #1
* Try encoding option
* Fix woodpecker
* Try to use path character.
* Fixing lemmy config location.
* Removing pointless connection options.
* Use OnceLock to create a once-init psql connection.
* Fixing comment.
* Fix host encoding for dev DB.
* Address PR comments.
* Revert query mut change.
2024-11-06 10:58:40 -05:00
Dessalines
a55e7fd9fe
Trying to use w3.org as a sample site to fix tests. ( #5170 )
...
- #5167
2024-11-06 10:20:30 -05:00
Dessalines
df664d9d9a
Upgrading ts_rs to 10.0.0 ( #5163 )
...
* Upgrading ts_rs to 10.0.0
* Adding ts_option directives, and woodpecker test.
* Fixing ts_options.
2024-11-06 15:50:13 +01:00
Dessalines
d162ec1638
Removing strip = true from release profile. ( #5166 )
...
* Adding abort on panic to release profile to make binary smaller.
* Remove strip and panic from release profile.
2024-11-06 10:24:49 +01:00
Dessalines
298c8fa521
Add filter to hide posts with comments. ( #5158 )
...
* Add filter to hide posts with comments.
- Useful for Q/A type communities.
- Fixes #1106
* Changing to no_comments_only
2024-11-05 12:09:25 -05:00
Dessalines
9f40387569
Fixing sample image to fix unit tests. ( #5167 )
...
Apparently yahoo.com doesnt want to return
metatags for my local CI runners anymore.
2024-11-05 11:45:58 -05:00
4690aff1e5
Run analyze after changing post.url type (ref #4983 ) ( #5148 )
...
* Run analyze after changing post.url type (ref #4983 )
* rename back
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-04 14:16:54 +01:00
Dessalines
18bf9843bc
Fixing LemmyError imports. ( #5157 )
2024-11-04 10:44:58 +01:00
renovate[bot]
02ba54c589
chore(deps): update node.js to v22 ( #5155 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 09:57:33 -04:00
Dessalines
30951a37b6
Revert "chore(deps): update docker ( #5154 )" ( #5156 )
...
This reverts commit 556191ef16
.
2024-11-01 09:34:12 -04:00
renovate[bot]
556191ef16
chore(deps): update docker ( #5154 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 23:02:50 -04:00
renovate[bot]
22e2290d7b
chore(deps): update npm ( #5153 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 22:47:04 -04:00
flamingos-cant
e8875dec99
Append attachments to comments ( #5143 )
...
* Append attachments to comments.
* fmt
* Proxy images + use newlines for separation
* Use md for plain links
* Use proxy_image_link directly
2024-10-31 08:13:42 -04:00
Integral
8f88dda28f
refactor: destructure tuples to enhance readability ( #5151 )
2024-10-31 08:12:24 -04:00
df07d8e31c
Skip api test for fetching nested comment ( #5152 )
2024-10-31 08:10:45 -04:00
Dessalines
a4f63294de
Compress binary with upx. ( #5140 )
...
* Compress binary with upx.
* Changing opt-level from z to 3
* Changing lto from thin to fat for release.
2024-10-29 11:01:58 -04:00
Dessalines
cdc1cf3bf7
Adding community description in addition to sidebar, like site. ( #5120 )
...
* Adding community description in addition to sidebar, like site.
- Also made changes to lemmy's group apub to be similar to its site,
which uses content for the sidebar, and summary for the short
description.
- Fixes #5078
* Fixing tests.
* Remove comment.
* Fix name for description checker.
2024-10-28 11:54:36 -04:00
Dessalines
d6d01a3b62
Adding cargo shear ( #5139 )
...
* Adding cargo shear (fail check)
* Running cargo shear.
* Fixing another missing.
* Removing cargo-machete in favor of cargo-shear
2024-10-28 11:41:09 -04:00
aef4403412
Add test for unused errors, move federation errors into separate struct ( #5024 )
...
* Add test case to ensure all errors are in use
* Add test case to find errors that are only used for federation
* Move federation errors into separate enum (fixes #4926 )
* clippy
* clippy
* remove serde tag
* Reduce errors dess (#5138 )
* Add option to search exclusively by post title (#5015 )
* Add option to search exclusively by post title
* Address format issues
* Remove duplicated 'removed' filter
* Replace url_search with search_term
* Build generic PostQuery before search match
* Create default queries. Move title_only to Search struct. Rename Url to PostURL
* Revert PostUrl to Url
* Upgrading webmention to 0.6.0, removes native-tls (#4976 )
* Removing embedded pict-rs. (#5023 )
Some reasons for removing this:
- Even as an optional dependency, it locks us to many specific versions
of rust deps.
- Pict-rs is a large app that can and should be run in on its own.
- Violates the philosophy of separation of concerns.
* Adding clearurls crate to clean tracking params from links and markdown. (#5018 )
* Adding clearurls crate to clean tracking params from links and markdown.
- Thanks to @jenrdikw for creating this
- Fixes #4905
* Upgrading to new version of clearurls
* Fix clippy
* Remove enable nsfw (#5017 )
* Remove `local_site.enable_nsfw` in favor of `site.content_warning` (fixes #4627 )
* cleanup usage of SiteView::read_local
* test
* uppercase
* SSO Support (#4881 )
* Added OAUTH2 OIDC support
* Fixes and improvements based on review feedback
* use derive_new::new instead of TypedBuilder
* merge migrations into a single file
* fixes based on review feedback
* remove unnecessary hostname_ui config
* improvement based on review feedback
* improvements based on review feedback
* delete user oauth accounts at account deletion
* fixes and improvements based on review feedback
* removed auto_approve_application
* support registration application with sso
* improvements based on review feedback
* making the TokenResponse an internal struct as it should be
* remove duplicate struct
* prevent oauth linking to unverified accounts
* switched to manually entered username and removed the oauth name claim
* fix cargo fmt
* fix compile error
* improvements based on review feedback
* fixes and improvements based on review feedback
---------
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
* Adding ability to restore content on user unban. (#4845 )
* Adding ability to restore content on user unban.
- Fixes #4721
* Fixing api tests.
* Fix package.json
* Fixing lemmy-js-client dep.
* Adding API test for restoring content.
* Adding a default_comment_sort_type column for local_site and local_user. (#4469 )
* Adding a default_comment_sort_type column for local_site and local_user.
- Renamed SortType to PostSortType in the DB and code.
- Renamed references to default_sort_type to default_post_sort_type.
- Fixes #4128
* Renaming migration to current date.
* Simplifying PostSortType.
* Simplify tests using default (#5026 )
* Feature/custom emoji and tagline views (#4580 )
* Add custom_emoji list route
* Add tagline list route
* Apply linting
* Remove unecessary TaglineView
* Add category filter for custom emoji
* Add create tagline endpoint
* Add update tagline endpoint
* Add delete tagline endpoint
* Format through lint.sh
* Remove custom_emojis and taglines from site resource
* Get random tagline on site requets
* Impl Crud for Tagline
Remove superfluous properties
* Move tagline endpoints under /admin
* Impl Crud for CustomEmoji
* Remove delete from tagline and custom emoji impls
* Check markdown for tagline
* Validate markdown on tagline
* Make content fields non optional
Add error types for tagline validation
* Use process_markdown instead of process_markdown_opt
* Consolidate Tagline error types
* Remove unecessary clone
* Updat misleading comments
* Remove local_site_id from tagline and custom_emoji
* Update TaglineInserForm and TaglineUpdateForm
* Add ignore_page_limits for custom emojis
EmojiPicker needs to be able to retrieve all emojis in 1 call
* Update custom_emoji_view
Only keep get_all als helper function calling list with paging ignored
Only order on category when filtering on category
* Removing pointless get_all fn.
* remove tagline length checks
* make fields of TaglineInsertForm and TaglineUpdateForm mandatory
* move emoji order statement
* add comment for GetSiteResponse.tagline
---------
Co-authored-by: Freakazoid182 <>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
* Add category to RSS feeds (fixes #3446 ) (#5030 )
* Unittest for Search by title only (#5033 )
* added test for search by title only
* formatted rust files
* Upgrading to rust 1.81 (#5032 )
* Remove TypedBuilder in favor of derive_new (fixes #4863 ) (#5020 )
* Remove TypedBuilder in favor of derive_new (fixes #4863 )
* fix
* fix
* Ignore zero values when setting rate limits (fixes #4280 ) (#5029 )
* Ignore zero values when setting rate limits (fixes #4280 )
Havent bothered to add an error message for such an uncommon case.
* fmt
* reorder, add test
* Always save remote image data (#4875 )
* Always save remote image data
* cleanup
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Get rid of a lot of pointless mut form initializations. (#5037 )
* Get rid of a lot of pointless mut form initializations.
- Fixes #5036
* Fix clippy.
* Simplify handling of NotFound SQL errors (fixes #4633 ) (#5031 )
* Simplify handling of NotFound SQL errors (fixes #4633 )
* fmt
* wip
* compiling
* clippy
* api tests
* fix
* Adding saved_only, liked_only, and disliked_only filters to search. (#5034 )
* Adding saved_only, liked_only, and disliked_only filters to search.
- Fixes #4547
* Removing duplicate Url return type for search (was actually post).
- This now works like the post_title_only filter.
* Address PR comments.
* Add saved_only post_view test.
* Removing a few more Result<bool> . (#4977 )
* Removing a few more Result<bool> .
* Running taplo fmt.
* Running fmt.
* Adding email taken test.
* Fixing tests.
* Adding back in missing admin check.
* Rename check_has_local_followers function.
* Conditionally hide comments on nsfw posts (fixes #4237 ) (#5028 )
* Conditionally hide comments on nsfw posts (fixes #4237 )
* fix test
* Post scheduling (fixes #234 ) (#5025 )
* Post scheduling (fixes #234 )
* clippy
* replace map_err with inspect_err
* ignore unpublished posts in read queries
* add api test
* fmt
* add some checks
* address some review comments
* allow updating schedule time
* rewrite scheduled task
* fmt
* machete
* compare date in sql, more filters
* check for community ban in sql
* remove api test (scheduled task only runs every 10 mins)
* remove mut
* add index
* remove Post::read impl
* fmt
* fix
* correctly handle changes to schedule time
* normal users can only schedule up to 10 posts
* Remove redundant local_user.auto_expand setting. (#5041 )
- Fixes #4643
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Add ability to search for Community by its description (or title only). (#5044 )
- This changes the post_title_only for Search to title_only, since its
also used in the community query now.
- Fixes #4785
* Cleanup remaining use of Result<bool, Error> (fixes #4862 ) (#5047 )
* Replace clippy allow annotation with expect (fixes #5012 ) (#5048 )
* Add skip_serialize_none to OAuth structs with option fields (#5046 )
* Add skip_serialize_none to OAuth structs with option fields
* PR feedback
* Remove serde and ts export from SSO db-only structs
* Apply scheduled post limit to future posts instead of past posts, and verify this in test (#5054 )
* test scheduled_post_count
* fix syntax error
* fix formatting
* fix argument order
* fix user_scheduled_post_count function
* Avoid breaking changes, keep response fields as deprecated (#5058 )
* Adding skip_serializing_none to another OAuth API request. (#5060 )
* Handle partial settings backup (fixes #4307 ) (#5063 )
* Handle partial settings backup (fixes #4307 )
* clippy
* Avoid stack overflow when fetching nested comments, reduce max comment depth to 50 (#5009 )
* Avoid stack overflow when fetching deeply nested comments
* add test case
* reduce comment depth, add docs
* decrease
* reduce max comment depth to 50
* fmt
* clippy
* cleanup
* Update Rust crate clap to v4.5.18 (#5066 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate reqwest to v0.12.8 (#5068 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate sitemap-rs to v0.2.2 (#5069 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate tracing-actix-web to v0.7.13 (#5070 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Changing renovate to run on the weekends. (#5067 )
- Lemmy builds take a long time, and the current schedule only runs for
about 4 hours once a month, and renovate also rate-limits itself to
~ 2 per hour. This gives it a large enough window, without clogging
up my runner machines.
* Update Rust crate async-trait to v0.1.83 (#5065 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency @types/jest to v29.5.13 (#5071 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Attempt to fix test for fetching deeply nested comment (#5072 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Add modlog entries for bulk removals. (#5050 )
* Add modlog entries for bulk removals.
- Added unit tests for removal / restore to api_common/utils.
- Fixes #4699
* Address PR comments.
* Combining remove and restore functions.
* Trigger build.
* Trigger build 2.
* Changing allow to expect.
* Adding local site settings to reject federated upvotes or downvotes. (#5038 )
* Adding local site settings to reject federated upvotes or downvotes.
- Should help defend against downvote spamming instances.
- Fixes #4086
* Adding new vote mode types.
* Simpler activitypub vote check.
* Adding undo vote for failed vote mode check.
* Update crates/api_common/src/utils.rs
---------
Co-authored-by: Nutomic <me@nutomic.com>
* Replace `clippy::unwrap_used` in tests (#5064 )
* Add LemmyResult to session_middleware tests
* Add LemmyResult to inboxes tests
* Add LemmyResult to slurs tests
* Add LemmyResult to markdown tests
* Add LemmyResult to rate_limiter tests
* Add LemmyResult to error tests
* Add LemmyResult to api_common utils tests
* Add LemmyResult to request tests
* Add LemmyResult to claims tests
* Propagate registration_applications errors
* Remove clippy::unwrap_used from community tests
* Add LemmyResult to community_view tests
* Add LemmyResult to db_schema post tests
* Add LemmyResult to site_aggregates tests
* Add LemmyResult to private_message tests
* Add LemmyResult to activity tests
* Add LemmyResult to federation_allowlist tests
* Add LemmyResult to comment_aggregates tests
* Add LemmyResult to post_report tests
* Add LemmyResult to moderator tests
* Add LemmyResult to community_aggregates tests
* Add LemmyResult to person_aggregates tests
* Add LemmyResult to language tests
* Add LemmyResult to post_aggregates tests
* Add LemmyResult to db_schema comment tests
* Add LemmyResult to actor_language tests
* Add LemmyResult to vote_view tests
* Add LemmyResult to registration_application_view tests
* Add LemmyResult to private_message_view tests
* Add LemmyResult to private_message_report_view tests
* Add LemmyResult to post_report_view tests
* Add LemmyResult to comment_report_view tests
* Add LemmyResult to sitemap tests
* Replace .expect() with .unwrap()
* Format code
* Remove clippy::unwrap_used from activity tests
* Add diesel result in db_schema tests
* Format code
* Map to_bytes() error to LemmyErrorType
* Remove clippy::unwrap_used from error tests
* Removing a few more unwraps, and cleaning up language code.
* Replace map_err with unwrap_or_default
* Replace ok_or with and_then
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
* Adding a get_random_community endpoint. (#5042 )
* Adding a get_random_community endpoint.
- Fixes #4698
* Fixing issue from main.
* Adding ListingType to the query.
* More concise query filter.
* Resolve links to remote posts into local URL (#5057 )
* move code to new file
* rewrite markdown links (fixes #2987 )
* add missing file
* add helper fn
* also convert post.url
* simplify search.rs
* clippy
* also rewrite user/community links in markdown
* Call from apub handlers, cleanup
* no network requests in test
* clippy
* fix tests
* serial
* test
* no mut
* add api test
* fix api test
* Update Rust crate clap to v4.5.19 (#5080 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate html2text to v0.12.6 (#5081 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate rustls to v0.23.14 (#5083 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update rust-futures monorepo to v0.3.31 (#5090 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate actix-web-prom to 0.9.0 (#5091 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate regex to v1.11.0 (#5093 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate serde_with to v3.10.0 (#5094 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate serde_with to v3.11.0 (#5095 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency ts-jest to v29.2.5 (#5089 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency typescript to v5.6.2 (#5098 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency eslint to v9.12.0 (#5097 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update docker/dockerfile Docker tag to v1.10 (#5099 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update pnpm to v9.12.0 (#5100 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update Rust crate reqwest to v0.12.8 (#5082 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update dependency @types/node to v22.7.4 (#5096 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update tamasfe/taplo Docker tag to v0.9.3 (#5101 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update tmknom/prettier Docker tag to v3.2.5 (#5102 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add test case for community.hidden in post_view (ref #5074 ) (#5106 )
* Resize post thumbnails (fixes #4053 ) (#5107 )
* Resize post thumbnails (fixes #4053 )
* 256px
* Update typescript-eslint monorepo to v8.8.1 (#5103 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update renovate config (#5109 )
* Update renovate config
* ignroe rust updates, run on first day of month
* fix
* Add community alphabetic sorting (#5056 )
* Started
* Finished? Need to write tests
* Formatting
* Formatting
* Formatting
* Write tests
* Formatting
* Formatting
* Formatting
* Unnecessary lifetime
* Safety
* Unwrap
* Formatting
* Formatting
* Fix local_only test
* Formatting
* Name consistency
* Adding lower to community name sort.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Support markdown sub/superscript, use external crate for spoilers (#5135 )
* Use external crate for spoiler tags
* Also add other plugins
* fix test
* Remove comment_like.post_id column which is unnecessary (ref #5122 ) (#5134 )
* Allow admins to resolve removed or deleted objects via API (#5061 )
* Allow admins to resolve removed or deleted objects via API
* Removing pointless TestUser.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
* Remove individual user/community inboxes (#5124 )
* Remove endpoints for individual community/user inboxes
fixes #4147
fixes #3928
* Remove shared_inbox_url columns
* fmt
* Fixing errors.
---------
Co-authored-by: Carlos Cabello <carloscabello364@gmail.com>
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: privacyguard <92675882+privacyguard@users.noreply.github.com>
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
Co-authored-by: Freakazoid182 <5238563+Freakazoid182@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: leoseg <70430884+leoseg@users.noreply.github.com>
Co-authored-by: Sander Saarend <sander@saarend.com>
Co-authored-by: Joseph Silva <dull.bananas0@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: netbrum <130702882+netbrum@users.noreply.github.com>
Co-authored-by: Steven Vergenz <1882376+stevenvergenz@users.noreply.github.com>
Co-authored-by: Richard Schwab <gitrichardschwab-7a2qxq42kj@central-intelligence.agency>
* Search with LemmyErrorType prefix
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Carlos Cabello <carloscabello364@gmail.com>
Co-authored-by: privacyguard <92675882+privacyguard@users.noreply.github.com>
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
Co-authored-by: Freakazoid182 <5238563+Freakazoid182@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: leoseg <70430884+leoseg@users.noreply.github.com>
Co-authored-by: Sander Saarend <sander@saarend.com>
Co-authored-by: Joseph Silva <dull.bananas0@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: netbrum <130702882+netbrum@users.noreply.github.com>
Co-authored-by: Steven Vergenz <1882376+stevenvergenz@users.noreply.github.com>
Co-authored-by: Richard Schwab <gitrichardschwab-7a2qxq42kj@central-intelligence.agency>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-28 11:07:13 -04:00
f05afead02
Remove individual user/community inboxes ( #5124 )
...
* Remove endpoints for individual community/user inboxes
fixes #4147
fixes #3928
* Remove shared_inbox_url columns
* fmt
2024-10-26 14:54:29 -04:00
Richard Schwab
920ffe1803
Allow admins to resolve removed or deleted objects via API ( #5061 )
...
* Allow admins to resolve removed or deleted objects via API
* Removing pointless TestUser.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-26 14:47:56 -04:00
925826170f
Remove comment_like.post_id column which is unnecessary (ref #5122 ) ( #5134 )
2024-10-26 14:45:12 -04:00
322538b0ce
Support markdown sub/superscript, use external crate for spoilers ( #5135 )
...
* Use external crate for spoiler tags
* Also add other plugins
* fix test
2024-10-25 17:06:37 -04:00
Steven Vergenz
859dfb3f81
Add community alphabetic sorting ( #5056 )
...
* Started
* Finished? Need to write tests
* Formatting
* Formatting
* Formatting
* Write tests
* Formatting
* Formatting
* Formatting
* Unnecessary lifetime
* Safety
* Unwrap
* Formatting
* Formatting
* Fix local_only test
* Formatting
* Name consistency
* Adding lower to community name sort.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-15 17:15:43 -04:00
9509ef1706
Update renovate config ( #5109 )
...
* Update renovate config
* ignroe rust updates, run on first day of month
* fix
2024-10-11 09:30:26 +02:00
renovate[bot]
c7210e39e7
Update typescript-eslint monorepo to v8.8.1 ( #5103 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-08 05:10:56 -04:00
a051772fff
Resize post thumbnails ( fixes #4053 ) ( #5107 )
...
* Resize post thumbnails (fixes #4053 )
* 256px
2024-10-08 10:24:55 +02:00
f5066b1f0b
Add test case for community.hidden in post_view (ref #5074 ) ( #5106 )
2024-10-07 19:39:25 -04:00
renovate[bot]
b009d45729
Update tmknom/prettier Docker tag to v3.2.5 ( #5102 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 04:02:18 -04:00
renovate[bot]
a611a232ea
Update tamasfe/taplo Docker tag to v0.9.3 ( #5101 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 01:17:46 -04:00
renovate[bot]
b200aecec7
Update dependency @types/node to v22.7.4 ( #5096 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 01:03:06 -04:00
renovate[bot]
a2c24def87
Update Rust crate reqwest to v0.12.8 ( #5082 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 00:39:06 -04:00
renovate[bot]
c4cfacd5cc
Update pnpm to v9.12.0 ( #5100 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:51:25 -04:00
renovate[bot]
4bfb28c26f
Update docker/dockerfile Docker tag to v1.10 ( #5099 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:29:54 -04:00
renovate[bot]
1056cbf979
Update dependency eslint to v9.12.0 ( #5097 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:29:30 -04:00
renovate[bot]
b79e871de8
Update dependency typescript to v5.6.2 ( #5098 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 21:22:33 -04:00
renovate[bot]
d925a7611b
Update dependency ts-jest to v29.2.5 ( #5089 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:45:59 -04:00
renovate[bot]
435b207105
Update Rust crate serde_with to v3.11.0 ( #5095 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:37:05 -04:00
renovate[bot]
5008aa7c76
Update Rust crate serde_with to v3.10.0 ( #5094 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:57:17 -04:00
renovate[bot]
f17cd0a6f9
Update Rust crate regex to v1.11.0 ( #5093 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:22:14 -04:00
renovate[bot]
cfe2d1b18d
Update Rust crate actix-web-prom to 0.9.0 ( #5091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 12:55:45 -04:00
renovate[bot]
6e5130378d
Update rust-futures monorepo to v0.3.31 ( #5090 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 10:30:00 -04:00
renovate[bot]
4012e35081
Update Rust crate rustls to v0.23.14 ( #5083 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 03:30:13 -04:00
renovate[bot]
2fed70f692
Update Rust crate html2text to v0.12.6 ( #5081 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 00:26:23 -04:00
renovate[bot]
f39b0992c5
Update Rust crate clap to v4.5.19 ( #5080 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:16:34 -04:00
7c2445efe7
Resolve links to remote posts into local URL ( #5057 )
...
* move code to new file
* rewrite markdown links (fixes #2987 )
* add missing file
* add helper fn
* also convert post.url
* simplify search.rs
* clippy
* also rewrite user/community links in markdown
* Call from apub handlers, cleanup
* no network requests in test
* clippy
* fix tests
* serial
* test
* no mut
* add api test
* fix api test
2024-10-03 08:24:05 -04:00
Dessalines
432d46c1aa
Adding a get_random_community endpoint. ( #5042 )
...
* Adding a get_random_community endpoint.
- Fixes #4698
* Fixing issue from main.
* Adding ListingType to the query.
* More concise query filter.
2024-10-02 09:10:41 -04:00
netbrum
483bdd592e
Replace clippy::unwrap_used
in tests ( #5064 )
...
* Add LemmyResult to session_middleware tests
* Add LemmyResult to inboxes tests
* Add LemmyResult to slurs tests
* Add LemmyResult to markdown tests
* Add LemmyResult to rate_limiter tests
* Add LemmyResult to error tests
* Add LemmyResult to api_common utils tests
* Add LemmyResult to request tests
* Add LemmyResult to claims tests
* Propagate registration_applications errors
* Remove clippy::unwrap_used from community tests
* Add LemmyResult to community_view tests
* Add LemmyResult to db_schema post tests
* Add LemmyResult to site_aggregates tests
* Add LemmyResult to private_message tests
* Add LemmyResult to activity tests
* Add LemmyResult to federation_allowlist tests
* Add LemmyResult to comment_aggregates tests
* Add LemmyResult to post_report tests
* Add LemmyResult to moderator tests
* Add LemmyResult to community_aggregates tests
* Add LemmyResult to person_aggregates tests
* Add LemmyResult to language tests
* Add LemmyResult to post_aggregates tests
* Add LemmyResult to db_schema comment tests
* Add LemmyResult to actor_language tests
* Add LemmyResult to vote_view tests
* Add LemmyResult to registration_application_view tests
* Add LemmyResult to private_message_view tests
* Add LemmyResult to private_message_report_view tests
* Add LemmyResult to post_report_view tests
* Add LemmyResult to comment_report_view tests
* Add LemmyResult to sitemap tests
* Replace .expect() with .unwrap()
* Format code
* Remove clippy::unwrap_used from activity tests
* Add diesel result in db_schema tests
* Format code
* Map to_bytes() error to LemmyErrorType
* Remove clippy::unwrap_used from error tests
* Removing a few more unwraps, and cleaning up language code.
* Replace map_err with unwrap_or_default
* Replace ok_or with and_then
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-02 08:50:21 -04:00
Dessalines
ffb94fde85
Adding local site settings to reject federated upvotes or downvotes. ( #5038 )
...
* Adding local site settings to reject federated upvotes or downvotes.
- Should help defend against downvote spamming instances.
- Fixes #4086
* Adding new vote mode types.
* Simpler activitypub vote check.
* Adding undo vote for failed vote mode check.
* Update crates/api_common/src/utils.rs
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-10-02 06:55:37 -04:00
Dessalines
e3edc317be
Add modlog entries for bulk removals. ( #5050 )
...
* Add modlog entries for bulk removals.
- Added unit tests for removal / restore to api_common/utils.
- Fixes #4699
* Address PR comments.
* Combining remove and restore functions.
* Trigger build.
* Trigger build 2.
* Changing allow to expect.
2024-10-01 10:59:52 -04:00
338344dbc5
Attempt to fix test for fetching deeply nested comment ( #5072 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-01 09:21:41 -04:00
renovate[bot]
0bc548cd5f
Update dependency @types/jest to v29.5.13 ( #5071 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:25:50 -04:00
renovate[bot]
1518aed929
Update Rust crate async-trait to v0.1.83 ( #5065 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:04:11 -04:00
Dessalines
c3f0a216bd
Changing renovate to run on the weekends. ( #5067 )
...
- Lemmy builds take a long time, and the current schedule only runs for
about 4 hours once a month, and renovate also rate-limits itself to
~ 2 per hour. This gives it a large enough window, without clogging
up my runner machines.
2024-10-01 12:40:52 +02:00
renovate[bot]
8d269fc08e
Update Rust crate tracing-actix-web to v0.7.13 ( #5070 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:48:52 -04:00
renovate[bot]
12275da318
Update Rust crate sitemap-rs to v0.2.2 ( #5069 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:27:01 -04:00
renovate[bot]
777992e829
Update Rust crate reqwest to v0.12.8 ( #5068 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 22:04:24 -04:00
renovate[bot]
0fcbd25ad5
Update Rust crate clap to v4.5.18 ( #5066 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 21:42:11 -04:00
44dda08b13
Avoid stack overflow when fetching nested comments, reduce max comment depth to 50 ( #5009 )
...
* Avoid stack overflow when fetching deeply nested comments
* add test case
* reduce comment depth, add docs
* decrease
* reduce max comment depth to 50
* fmt
* clippy
* cleanup
2024-09-30 20:27:14 -04:00
5115ed4c09
Handle partial settings backup ( fixes #4307 ) ( #5063 )
...
* Handle partial settings backup (fixes #4307 )
* clippy
2024-09-30 20:21:06 -04:00
Dessalines
f7d881ac78
Adding skip_serializing_none to another OAuth API request. ( #5060 )
2024-09-27 11:15:44 -04:00
e82f72d3c8
Avoid breaking changes, keep response fields as deprecated ( #5058 )
2024-09-27 09:23:19 -04:00
Joseph Silva
50ce7961d1
Apply scheduled post limit to future posts instead of past posts, and verify this in test ( #5054 )
...
* test scheduled_post_count
* fix syntax error
* fix formatting
* fix argument order
* fix user_scheduled_post_count function
2024-09-27 08:51:10 -04:00
SleeplessOne1917
33cbd95b7e
Add skip_serialize_none to OAuth structs with option fields ( #5046 )
...
* Add skip_serialize_none to OAuth structs with option fields
* PR feedback
* Remove serde and ts export from SSO db-only structs
2024-09-26 10:24:51 +02:00
f6a24e133a
Replace clippy allow annotation with expect ( fixes #5012 ) ( #5048 )
2024-09-24 13:29:02 -04:00
61a02482ff
Cleanup remaining use of Result<bool, Error> ( fixes #4862 ) ( #5047 )
2024-09-24 13:25:33 -04:00
Dessalines
0fab5bed24
Add ability to search for Community by its description (or title only). ( #5044 )
...
- This changes the post_title_only for Search to title_only, since its
also used in the community query now.
- Fixes #4785
2024-09-24 13:24:28 -04:00
Dessalines
a65be776e3
Remove redundant local_user.auto_expand setting. ( #5041 )
...
- Fixes #4643
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-09-24 08:55:09 -04:00
9eee61dd06
Post scheduling ( fixes #234 ) ( #5025 )
...
* Post scheduling (fixes #234 )
* clippy
* replace map_err with inspect_err
* ignore unpublished posts in read queries
* add api test
* fmt
* add some checks
* address some review comments
* allow updating schedule time
* rewrite scheduled task
* fmt
* machete
* compare date in sql, more filters
* check for community ban in sql
* remove api test (scheduled task only runs every 10 mins)
* remove mut
* add index
* remove Post::read impl
* fmt
* fix
* correctly handle changes to schedule time
* normal users can only schedule up to 10 posts
2024-09-24 05:39:40 -04:00
bab5c93062
Conditionally hide comments on nsfw posts ( fixes #4237 ) ( #5028 )
...
* Conditionally hide comments on nsfw posts (fixes #4237 )
* fix test
2024-09-24 10:33:53 +02:00
Dessalines
d476d32200
Removing a few more Result<bool> . ( #4977 )
...
* Removing a few more Result<bool> .
* Running taplo fmt.
* Running fmt.
* Adding email taken test.
* Fixing tests.
* Adding back in missing admin check.
* Rename check_has_local_followers function.
2024-09-23 20:55:35 -04:00
Dessalines
62e1790ae7
Adding saved_only, liked_only, and disliked_only filters to search. ( #5034 )
...
* Adding saved_only, liked_only, and disliked_only filters to search.
- Fixes #4547
* Removing duplicate Url return type for search (was actually post).
- This now works like the post_title_only filter.
* Address PR comments.
* Add saved_only post_view test.
2024-09-23 11:27:06 -04:00
a8843335a6
Simplify handling of NotFound SQL errors ( fixes #4633 ) ( #5031 )
...
* Simplify handling of NotFound SQL errors (fixes #4633 )
* fmt
* wip
* compiling
* clippy
* api tests
* fix
2024-09-23 11:26:50 -04:00
Dessalines
458bb60144
Get rid of a lot of pointless mut form initializations. ( #5037 )
...
* Get rid of a lot of pointless mut form initializations.
- Fixes #5036
* Fix clippy.
2024-09-23 12:05:18 +02:00
Sander Saarend
25df9d255b
Always save remote image data ( #4875 )
...
* Always save remote image data
* cleanup
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-09-23 09:58:49 +02:00
8cdfc148d7
Ignore zero values when setting rate limits ( fixes #4280 ) ( #5029 )
...
* Ignore zero values when setting rate limits (fixes #4280 )
Havent bothered to add an error message for such an uncommon case.
* fmt
* reorder, add test
2024-09-20 14:43:04 +02:00
ad75192bae
Remove TypedBuilder in favor of derive_new ( fixes #4863 ) ( #5020 )
...
* Remove TypedBuilder in favor of derive_new (fixes #4863 )
* fix
* fix
2024-09-20 08:15:25 -04:00
Dessalines
5a722146b5
Upgrading to rust 1.81 ( #5032 )
2024-09-19 17:00:20 -04:00
leoseg
dbb8f9553a
Unittest for Search by title only ( #5033 )
...
* added test for search by title only
* formatted rust files
2024-09-19 17:00:07 -04:00
89745bb37d
Add category to RSS feeds ( fixes #3446 ) ( #5030 )
2024-09-19 09:43:58 -04:00
Freakazoid182
43f20881cb
Feature/custom emoji and tagline views ( #4580 )
...
* Add custom_emoji list route
* Add tagline list route
* Apply linting
* Remove unecessary TaglineView
* Add category filter for custom emoji
* Add create tagline endpoint
* Add update tagline endpoint
* Add delete tagline endpoint
* Format through lint.sh
* Remove custom_emojis and taglines from site resource
* Get random tagline on site requets
* Impl Crud for Tagline
Remove superfluous properties
* Move tagline endpoints under /admin
* Impl Crud for CustomEmoji
* Remove delete from tagline and custom emoji impls
* Check markdown for tagline
* Validate markdown on tagline
* Make content fields non optional
Add error types for tagline validation
* Use process_markdown instead of process_markdown_opt
* Consolidate Tagline error types
* Remove unecessary clone
* Updat misleading comments
* Remove local_site_id from tagline and custom_emoji
* Update TaglineInserForm and TaglineUpdateForm
* Add ignore_page_limits for custom emojis
EmojiPicker needs to be able to retrieve all emojis in 1 call
* Update custom_emoji_view
Only keep get_all als helper function calling list with paging ignored
Only order on category when filtering on category
* Removing pointless get_all fn.
* remove tagline length checks
* make fields of TaglineInsertForm and TaglineUpdateForm mandatory
* move emoji order statement
* add comment for GetSiteResponse.tagline
---------
Co-authored-by: Freakazoid182 <>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2024-09-19 05:15:04 -04:00
026e23cf32
Simplify tests using default ( #5026 )
2024-09-19 04:43:27 -04:00
Dessalines
6b6457cc54
Adding a default_comment_sort_type column for local_site and local_user. ( #4469 )
...
* Adding a default_comment_sort_type column for local_site and local_user.
- Renamed SortType to PostSortType in the DB and code.
- Renamed references to default_sort_type to default_post_sort_type.
- Fixes #4128
* Renaming migration to current date.
* Simplifying PostSortType.
2024-09-19 10:03:58 +02:00
Dessalines
2b3fd70afd
Adding ability to restore content on user unban. ( #4845 )
...
* Adding ability to restore content on user unban.
- Fixes #4721
* Fixing api tests.
* Fix package.json
* Fixing lemmy-js-client dep.
* Adding API test for restoring content.
2024-09-18 09:11:42 -04:00
privacyguard
b26aaac523
SSO Support ( #4881 )
...
* Added OAUTH2 OIDC support
* Fixes and improvements based on review feedback
* use derive_new::new instead of TypedBuilder
* merge migrations into a single file
* fixes based on review feedback
* remove unnecessary hostname_ui config
* improvement based on review feedback
* improvements based on review feedback
* delete user oauth accounts at account deletion
* fixes and improvements based on review feedback
* removed auto_approve_application
* support registration application with sso
* improvements based on review feedback
* making the TokenResponse an internal struct as it should be
* remove duplicate struct
* prevent oauth linking to unverified accounts
* switched to manually entered username and removed the oauth name claim
* fix cargo fmt
* fix compile error
* improvements based on review feedback
* fixes and improvements based on review feedback
---------
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
2024-09-18 14:52:33 +02:00
6454a4d43d
Remove enable nsfw ( #5017 )
...
* Remove `local_site.enable_nsfw` in favor of `site.content_warning` (fixes #4627 )
* cleanup usage of SiteView::read_local
* test
* uppercase
2024-09-16 11:18:16 -04:00
Dessalines
5febf2b8fb
Adding clearurls crate to clean tracking params from links and markdown. ( #5018 )
...
* Adding clearurls crate to clean tracking params from links and markdown.
- Thanks to @jenrdikw for creating this
- Fixes #4905
* Upgrading to new version of clearurls
* Fix clippy
2024-09-16 11:15:41 -04:00
Dessalines
ff939e04fd
Removing embedded pict-rs. ( #5023 )
...
Some reasons for removing this:
- Even as an optional dependency, it locks us to many specific versions
of rust deps.
- Pict-rs is a large app that can and should be run in on its own.
- Violates the philosophy of separation of concerns.
2024-09-16 11:08:18 -04:00
Dessalines
987e3f8026
Upgrading webmention to 0.6.0, removes native-tls ( #4976 )
2024-09-16 10:11:02 +02:00
Carlos Cabello
fa192f16bd
Add option to search exclusively by post title ( #5015 )
...
* Add option to search exclusively by post title
* Address format issues
* Remove duplicated 'removed' filter
* Replace url_search with search_term
* Build generic PostQuery before search match
* Create default queries. Move title_only to Search struct. Rename Url to PostURL
* Revert PostUrl to Url
2024-09-16 09:59:09 +02:00
dea6ee462c
Upgrade http crate ( #5006 )
...
* Remove opentelemetry
* remove unused deps, use backtrace
* always print db migration messages regardless of log level (fixes #4725 )
* fix ci
* Remove useless root span builder
* Upgrade http and opentelemetry crates
* more fixes
* cleanup
* use release
* upgrade more deps
2024-09-12 05:49:09 -04:00
Dessalines
a6220537b5
Increase bio max length from 300 to 1000. ( #5014 )
...
- Fixes #4972
2024-09-11 15:27:16 +00:00
Sander Saarend
fbb3960c36
Image proxy fixes ( #4871 )
...
* Fix remote image urls
* Remove unnecessary URL decode
* Removing the proxy changes.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-09-11 10:11:25 -04:00
fc13009611
In debug mode allow resolving objects without auth ( #5013 )
2024-09-11 08:53:24 -04:00
Dessalines
ef5e2d96cd
Fixing woodpecker warnings 1. ( #5011 )
2024-09-10 17:42:20 -04:00
Dessalines
d1866cbd04
Remove pointless block_views. ( #4841 )
...
- Fixes #4793
2024-09-10 14:32:12 -04:00
Dessalines
84794714da
Removing local_user.show_scores column, since its now on the ( #4497 )
...
local_user_vote_display_mode table.
- See https://github.com/LemmyNet/lemmy/pull/4450
2024-09-10 14:27:17 -04:00
c90ee3094d
Remove opentelemetry ( #4741 )
...
* Remove opentelemetry
* remove unused deps, use backtrace
* always print db migration messages regardless of log level (fixes #4725 )
* fix ci
* Remove useless root span builder
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-09-10 13:36:03 -04:00
Dessalines
ef49a0eb8d
Changing list_logins to return a ListLoginsResponse object. ( #4888 )
...
- Fixes #4873
2024-09-10 12:41:30 +02:00
Dessalines
c8ad0f2d09
Remove pointless local_user_id from LocalUserVoteDisplayMode ( #4890 )
...
- Fixes #4866
2024-09-10 12:39:45 +02:00
234f5c2060
Remove nonstandard field expires
from apub block activity (ref #2316 ) ( #4542 )
...
* Migrate apub block activity to standard `endTime` property (fixes #2316 )
* Remove nonstandard apub field `expires` (ref #2316 )
2024-09-10 12:35:58 +02:00
renovate[bot]
f98b15511a
chore(deps): update rust crate derive-new to 0.7.0 ( #4995 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 16:47:16 +00:00
renovate[bot]
5683d5ed7a
chore(deps): update pnpm to v9.9.0 ( #4994 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 12:30:05 +00:00
renovate[bot]
b1afd98d29
chore(deps): update dependency @types/node to v22.5.1 ( #4991 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 09:40:23 +00:00
renovate[bot]
f617227f0d
chore(deps): update dependency ts-jest to v29.2.5 ( #4990 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 06:41:42 +00:00
renovate[bot]
fa94a5869e
chore(deps): update dependency eslint to v9.9.1 ( #4992 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 03:11:01 +00:00
Joseph Silva
ae3df4db72
Replace "post" with "comment" in comment_report_view.rs ( #4989 )
2024-08-31 22:36:47 -04:00
d479bb96c6
Version 0.19.6-beta.7
2024-08-27 16:32:08 -04:00
dullbananas
101476df87
Make scripts work in path that contains spaces ( #4986 )
2024-08-22 17:33:00 +02:00
flamingos-cant
bd1b7aa6ef
Let federation modify groups ( #4937 )
...
* Don't check if group is local
* Add API test for mods modifying communities
2024-08-20 16:16:14 +02:00
2913cdf556
Version 0.19.6-beta.6
2024-08-19 19:44:13 -04:00
6b9e5ecb48
Version 0.19.6-beta.5
2024-08-15 08:50:27 -04:00
Richard Schwab
76a2c6e79b
Fix scheduled task to delete users with denied applications ( #4907 )
...
After an admin interacted with an application it can only be accepted or denied.
Denial reasons are not required by Lemmys backend, even though they're mandatory in Lemmy-UI, and therefore they are not a reliable indicator of an application being denied.
This aligns the cleanup logic with the logic used for the unread application count.
2024-08-13 18:54:56 -04:00
Dessalines
254ef6dab3
Make site metadata fetch endpoint require auth. ( #4968 )
...
* Make site metadata fetch require auth.
* Update crates/api/src/post/get_link_metadata.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-08-13 16:53:05 -04:00
Richard Schwab
63a686d390
Approve applications in transaction ( #4970 )
...
* Implement tests for registration application count and list api
* Use transaction when approving applications to ensure consistent approval state
2024-08-13 16:18:26 -04:00
flamingos-cant
ea18d462b0
Throw error when non-mod posts to mod-only comm ( #4966 )
2024-08-13 14:56:26 -04:00
128e78f7c2
Version 0.19.6-beta.4
2024-08-08 20:01:58 -04:00
phiresky
606545ccaf
fix: Run extract_opengraph_data only on first 64kB of data and if Content-Type html ( #4957 )
...
* fix: Run extract_opengraph_data only on first 64kB of data and if data is not binary.
* use mime type for determination
* chore: simplify collect function
2024-08-07 10:35:08 -04:00
88fbcea246
Version 0.19.6-beta.3
2024-08-06 10:32:41 -04:00
Dessalines
eff87b2764
Upgrading arm image. ( #4962 )
2024-08-05 22:25:18 -04:00
Dessalines
33fd31754a
Adding a URL max length lemmy error. ( #4960 )
...
* Adding a URL max length error.
- Also increasing the post.url max length to 2000 (seems standard)
- I ran into this when fixing torrent support, which often use longer
urls.
* Fixing sql_format.
2024-08-04 09:45:53 -04:00
Dessalines
f8c7375731
Upgrading deps. ( #4955 )
2024-08-01 17:04:28 -04:00
renovate[bot]
c6cbc2f61d
chore(deps): update dependency typescript to v5.5.4 ( #4942 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 14:46:59 -04:00
renovate[bot]
4729255514
chore(deps): update typescript-eslint monorepo to v8 ( #4952 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 14:24:16 -04:00
renovate[bot]
b25f9c3e66
chore(deps): update typescript-eslint monorepo to v7.18.0 ( #4950 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:59:55 -04:00
renovate[bot]
c0f3dff5cf
chore(deps): update rust crate mockall to 0.13.0 ( #4946 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:59:40 -04:00
renovate[bot]
79fddc965f
chore(deps): update rust crate typed-builder to 0.19.0 ( #4949 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:22:55 +00:00
renovate[bot]
2cab7935db
chore(deps): update docker/dockerfile docker tag to v1.9 ( #4938 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:53:41 -04:00
renovate[bot]
2318473456
fix(deps): update rust crate console-subscriber to 0.4.0 ( #4944 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:52:40 -04:00
renovate[bot]
75d8d704e7
chore(deps): update pnpm to v9.6.0 ( #4939 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:52:24 -04:00
renovate[bot]
4e7e92da94
chore(deps): update dependency eslint-plugin-prettier to v5.2.1 ( #4940 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:51:37 -04:00
renovate[bot]
fa836bb35a
chore(deps): update dependency ts-jest to v29.2.4 ( #4941 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:51:26 -04:00
renovate[bot]
4e48054b17
chore(deps): update rust crate tokio to v1.39.2 ( #4935 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 14:50:52 +00:00
6c11c013b0
Version 0.19.6-beta.2
2024-08-01 08:29:22 -04:00
renovate[bot]
0bd0c0f11b
chore(deps): update rust crate clap to v4.5.13 ( #4932 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:38:06 +00:00
renovate[bot]
c6db2ad9b7
chore(deps): update rust crate serde_json to v1.0.121 ( #4933 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:46:20 -04:00
Dessalines
60a7829638
Adding deny unimplemented to clippy lints. ( #4922 )
...
* Adding deny unimplemented to clippy lints.
- Context: #4782
* Update crates/apub/src/fetcher/site_or_community_or_user.rs
Thanks, I like that better.
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/apub/src/fetcher/search.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Running fmt.
* Adding debug_assert(false)
* Removing some commands.
* Format.
* Remove todo.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-07-31 20:28:41 -04:00
renovate[bot]
cbb37fa2f1
chore(deps): update dependency @types/node to v20.14.13 ( #4928 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 19:28:17 -04:00
Dessalines
0a6186d7aa
Fixing apt-key deprecation, and using apt-get. ( #4931 )
...
* Fixing apt-key deprecation, and using apt-get.
* Try 2
* Try 3
* Try 4
* Try 5
* Try 6
* Try 7
* Try 8
* Try 9
* Try 10
* Try 11
* Try 12
* Try 13
* Try 14
* Try 15
* Try 16
* Try 17
2024-07-31 18:54:44 -04:00
renovate[bot]
5421e9a3c7
chore(deps): update dependency prettier to v3.3.3 ( #4929 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-30 15:38:17 +00:00
SleeplessOne1917
1ef375e5c3
Replace 3rd party once_cell crate with recently stabilized standard library API ( #4919 )
...
* Replace 3rd party once_cell crate with recently stabilized standard library API
* Bump CI rust version
2024-07-30 10:11:39 -04:00
Dessalines
069a9509d5
Adding renovate automerge. ( #4927 )
2024-07-30 09:41:06 -04:00
abdel-m
2ccb46b66d
pass local user to send local notifs ( #4920 )
...
* pass local user to send local notif
* pass local user to all crud calls
* execution of command "cargo +nightly fmt"
* Formatting and mode fixes.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-30 08:34:58 -04:00
fb911679d0
Fix admin notification for new user registration ( fixes #4916 ) ( #4925 )
2024-07-30 08:34:17 -04:00
John Spurlock
7321a63005
Fix instance AP outbox url ( #4917 )
...
//site_outbox to /site_outbox
2024-07-24 12:18:28 +02:00
Dessalines
9738d87f38
Add the ability to fetch a registration application by person_id. ( #4913 )
...
* Add the ability to fetch a registration application by person_id.
- Fixes #4908
* Cleaning up PR.
2024-07-23 19:01:24 -04:00
Dessalines
32b73193df
Make sure you can view your moderated deleted and removed communities. ( #4912 )
...
* Make sure you can view your moderated deleted and removed communities.
- The front end checks to see whether you are a mod, in order to be
able to restore deleted / removed communities. This removes a filter
which prevents that.
- Fixes #4911
* Only show deleted communities to creator, and removed to admins.
* Addressing PR comments.
2024-07-23 12:38:54 -04:00
SleeplessOne1917
db390a2f3a
Make eligible enums convertable to static strs ( #4915 )
...
* Make eligible enums convertable to static strs
* Run cargo fmt
* Remove unnecessary derives
2024-07-23 11:05:19 -04:00
572a42d880
Change type of concurrent sends in config ( #4914 )
2024-07-22 09:58:50 -04:00
Darren M
3d80ac2ebb
Fix tls pool ( #4910 )
...
* Cargo: add rustls as a dependency
* install tls provider in main
* Cargo: re-define rustls dependency
2024-07-21 22:33:42 -04:00
phiresky
a08642f813
federation: parallel sending per instance ( #4623 )
...
* federation: parallel sending
* federation: some comments
* lint and set force_write true when a request fails
* inbox_urls return vec
* split inbox functions into separate file
* cleanup
* extract sending task code to separate file
* move federation concurrent config to config file
* off by one issue
* improve msg
* fix both permanent stopping of federation queues and multiple creation of the same federation queues
* fix after merge
* lint fix
* Update crates/federate/src/send.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* comment about reverse ordering
* remove crashable, comment
* comment
* move comment
* run federation tests twice
* fix test run
* prettier
* fix config default
* upgrade rust to 1.78 to fix diesel cli
* fix clippy
* delay
* add debug to make localhost urls not valid in ap crate, add some debug logs
* federation tests: ensure server stop after test and random activity id
* ci fix
* add test to federate 100 events
* fix send 100 test
* different data every time so activities are distinguishable
* allow out of order receives in test
* lint
* comment about https://github.com/LemmyNet/lemmy/pull/4623#discussion_r1565437391
* move sender for clarity, add comment
* move more things to members
* update test todo comment, use same env var as worker test but default to 1
* remove else below continue
* some more cleanup
* handle todo about smooth exit
* add federate inboxes collector tests
* lint
* actor max length
* don't reset fail count if activity skipped
* fix some comments
* reuse vars
* format
* Update .woodpecker.yml
* fix recheck time
* fix inboxes tests under fast mode
* format
* make i32 and ugly casts
* clippy
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-07-21 11:50:50 -04:00
Dessalines
073ff44676
Reverting webmention git dep to not break publish. ( #4904 )
...
- Context: #4901
2024-07-19 10:18:45 +02:00
藍+85CD
847c01f348
refactor!: use rustls instead of native-tls ( #4901 )
...
* refactor(utils): remove apub
* refactor(utils): remove apub
* refactor(utils): remove openssl
* refactor(utils): remove openssl
* Use rustls instead of native-tls.
* refactor(utils): remove apub
* refactor(utils): remove apub
* refactor(utils): remove openssl
* refactor(utils): remove openssl
* Use rustls instead of native-tls.
* Upping activitypub_federation dep
* Using git dep of webmention.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-18 08:40:43 -04:00
Daniel Lo Nigro
8abbd56400
Switch PostgreSQL container to use pgautoupgrade ( #4892 )
...
* Switch PostgreSQL container to use pgautoupgrade
This handles automatically upgrading the data files to newer versions of PostgreSQL.
* Fixing other uses of postgres:16-alpine image.
* Simplifying upgrade scripts.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-17 09:59:21 +02:00
Dessalines
ba044c7d98
Adding checks for higher admin and mod. ( #4860 )
...
* Adding checks for higher admin and mod.
* Adding admin/mod checks for ban and comment removal.
* Combining mod or admin check with an SQL union.
* Making community ban or add mod also allow higher admins.
* Making sure remove post also checks higher mods or admins.
* Add unit test for is_higher_mod_or_admin_check
* Fixing comment.
* Addressing PR comments.
* Get rid of pointless wrapper functions, return lemmyresult directly.
2024-07-16 12:22:47 +02:00
Dessalines
6ff128341c
Do pictrs transformations for proxied image urls. ( #4895 )
...
- Fixes #4893
2024-07-11 17:31:31 +02:00
Dessalines
53a226b944
Add show_nsfw override filter to GetPosts. ( #4889 )
...
- Fixes #4124
2024-07-09 13:44:23 -04:00
Dessalines
f229f09f92
Changing nodeinfo test from voyager.lemmy.ml to lemmy.ml ( #4891 )
...
- Fixes #4870
2024-07-07 19:01:03 -04:00
Dessalines
32cee9cbca
Fixing not being able to create comments on local community posts. ( #4854 )
...
* Fixing not being able to create comments on local community posts.
- This was caused by not passing my_person_id into various
`CommentView::read` functions.
- Fixes #4853
* Refactoring views to use local_user, rather than person
* Addressing PR comments.
* Fixing API tests.
2024-07-07 12:28:42 -04:00
dullbananas
78702b59fd
Use trigger to generate apub URL in insert instead of update, and fix query planner options not being set when TLS is disabled ( #4797 )
...
* Update create.rs
* Update utils.rs
* Update utils.sql
* Update triggers.sql
* Update utils.sql
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Create up.sql
* Update up.sql
* Update triggers.sql
* Update utils.rs
* stuff
* stuff
* revert some changed files
* Revert "revert some changed files"
This reverts commit 028eabb4bdcf9eda65e0f315ca1c98f8765f9d7e.
* revert the correct files
* partial reverts
* migration, tests, fix establish_connection
* lint
* pg_format
2024-07-02 11:23:21 -04:00
renovate[bot]
117a8b42c8
Update Rust crate serde_json to v1.0.120 ( #4877 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 10:02:32 -04:00
dullbananas
fd58b4f809
Exponential controversy rank ( #4872 )
...
* Update utils.sql
* add migration
2024-07-02 09:40:18 -04:00
Dessalines
a7c39226e2
Remove unused PersonBlockId. ( #4880 )
...
- Fixes #4879
2024-07-02 09:39:37 -04:00
renovate[bot]
d90e8f8550
Update Rust crate clap to v4.5.8 ( #4876 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-02 09:37:37 -04:00
Richard Schwab
2c57f42022
Relax timeout for sending activities ( #4864 )
...
* Relax timeout for sending activities
Lemmy considers timeouts during activity sending as retryable errors.
While it is frequently enough to retry sending the same activity again after
the original submission attempt resulted in a timeout, allowing the receiving
side to use more time for synchronous processing should reduce the number of
retries needed overall and improve overall compatibility.
Some ActivityPub software, such as Mastodon, implements a queue for processing
received activities asynchronously, which allows immediately returning a
response for activity submissions. Other software, such as Lemmy or Hubzilla
implement synchronous processing of activities before returning a response.
ActivityPub does not specify specific timeouts to be used:
https://github.com/w3c/activitypub/issues/365
* Simplify usage of federation_sender_config Option
2024-07-02 09:30:13 -04:00
dullbananas
9120207314
Format replaceable_schema files in lint.sh ( #4868 )
2024-06-26 10:47:09 +02:00
Dessalines
d09854a722
Adding a show_read override to GetPosts. ( #4846 )
...
* Adding a show_read override to GetPosts.
- If show_read is true, it overrides the local user show_read
setting.
- Fixes #4124
* Addressing PR comments.
* Update crates/db_views/src/post_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing formatting.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-06-21 17:39:40 -04:00
Dessalines
c8d155102a
Removing renovate from git cliff ( #4858 )
...
* Removing renovate from git cliff
* Formatting.
2024-06-21 17:38:44 -04:00
dullbananas
36e6f7ec78
Fix order in CommunityModeratorView::get_community_first_mods
( #4859 )
...
* Fix order in `CommunityModeratorView::get_community_first_mods`
* Update community_moderator_view.rs
* Update community_moderator_view.rs
2024-06-21 13:44:55 -04:00
Dessalines
6d8d23130d
Adding an image_details table to store image dimensions. ( #4704 )
...
* Adding an image_details table to store image dimensions.
- Adds an image_details table, which stores the height,
width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703
* Running sql format.
* Running fmt.
* Don't fetch metadata in background for local API requests.
* Dont export remote_image table to typescript.
* Cleaning up validate.
* Dont proxy url.
* Fixing tests, fixing issue with federated thumbnails.
* Fix tests.
* Updating corepack, fixing issue.
* Refactoring image inserts to use transactions.
* Use select exists again.
* Fixing imports.
* Fix test.
* Removing pointless backgrounded metadata generation version.
* Removing public pictrs details route.
* Fixing clippy.
* Running prettier.
* A few more fixes.
* Moving diesel schema check back down.
* Addressing PR comments.
* Changing back request head to get.
* Fixing lockfile.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-20 12:44:06 +02:00
9cf6da1b9e
Version 0.19.5
2024-06-19 08:17:45 -04:00
Dessalines
59f274e531
Revert "Removing renovate schedule. ( #4808 )" ( #4847 )
...
This reverts commit 65620913fc
.
2024-06-18 16:55:06 -04:00
fa143f72eb
Version 0.19.5-alpha.3
2024-06-18 11:49:02 -04:00
Dessalines
63a824a2ed
Fixing TLS connection by installing provider. ( #4844 )
...
- Fixes #4795
2024-06-18 09:59:24 -04:00
renovate[bot]
b9dc7612a8
Update dependency @types/node to v20.14.5 ( #4843 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-18 10:11:20 +00:00
renovate[bot]
393f65db8d
Update dependency @types/node to v20.14.4 ( #4842 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 20:59:40 -04:00
bfefdfd15d
Version 0.19.5-alpha.2
2024-06-17 20:26:44 -04:00
renovate[bot]
41d1b054fe
Update dependency @types/node to v20.14.3 ( #4840 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 18:07:36 -04:00
dullbananas
42a6d8ab0f
Fix not-equals check in post aggregates update trigger ( #4837 )
...
* Fix not-equals check in post aggregates update trigger
Should fix #4836
* Create up.sql
* Create down.sql
* Update down.sql
2024-06-17 15:25:54 -04:00
renovate[bot]
f080400826
Update typescript-eslint monorepo to v7.13.1 ( #4838 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 15:04:24 -04:00
renovate[bot]
c55636b0d0
Update pnpm to v9.4.0 ( #4839 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 15:03:43 -04:00
renovate[bot]
32b7ee76e3
Update dependency ts-jest to v29.1.5 ( #4834 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-16 19:30:34 +00:00
5cc798a146
Version 0.19.5-alpha.1
2024-06-15 15:12:10 -04:00
renovate[bot]
4974dbb1dd
Update Rust crate console-subscriber to 0.3.0 ( #4817 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-15 08:17:01 -04:00
renovate[bot]
d7a453dd68
Update Rust crate regex to v1.10.5 ( #4811 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 07:29:41 -04:00
renovate[bot]
393b221be0
Update typescript-eslint monorepo to v7.13.0 ( #4827 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:56:47 -04:00
renovate[bot]
966d949f73
Update dependency eslint to v9 ( #4830 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:55:59 -04:00
renovate[bot]
b245bf48c0
Update pnpm to v9.3.0 ( #4826 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:55:06 -04:00
renovate[bot]
b569c7df17
Update docker/dockerfile Docker tag to v1.8 ( #4824 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:54:51 -04:00
renovate[bot]
0f6bd94407
Update dependency prettier to v3.3.2 ( #4823 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:54:31 -04:00
renovate[bot]
5cf1593c9f
Update dependency @types/node to v20.14.2 ( #4822 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:54:17 -04:00
renovate[bot]
04400ceac3
Update Rust crate rustls to v0.23.10 ( #4816 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:54:00 -04:00
renovate[bot]
dede17bf24
Update Rust crate pict-rs to v0.5.16 ( #4815 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:53:44 -04:00
renovate[bot]
b0e2a14d04
Update Rust crate actix-web to v4.7.0 ( #4814 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:53:28 -04:00
renovate[bot]
027017b0a8
Update asonix/pictrs Docker tag to v0.5.16 ( #4813 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:53:11 -04:00
renovate[bot]
b27b38b9a9
Update Rust crate url to v2.5.1 ( #4812 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:52:56 -04:00
renovate[bot]
a7771ff385
Update Rust crate clap to v4.5.7 ( #4810 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:52:40 -04:00
renovate[bot]
27e7aa1e04
Update Rust crate actix-web-httpauth to v0.8.2 ( #4809 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-15 06:52:21 -04:00
dullbananas
6497ec519e
Refactor LocalUser settings conditions in database views ( #4746 )
...
* Create viewer.rs
* Rename viewer.rs to viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update distinguish.rs
* Update like.rs
* Update viewer.rs
* Update list_comment_likes.rs
* Update like.rs
* Update save.rs
* Update like.rs
* revert changes in api crate
* Update post_view.rs
* Update post_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update viewer.rs
* Update community_view.rs
* Update viewer.rs
* Update lib.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update community_view.rs
* Update viewer.rs
* Update crates/db_schema/src/viewer.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update viewer.rs
* Update post_view.rs
* Update save.rs
* Update resolve_object.rs
* Update viewer.rs
* Update save.rs
* Update resolve_object.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update post_view.rs
* Update viewer.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Some additions to localuser DB view helpers. (#39 )
* Some additions to localuser DB view helpers.
- Getting rid of generics.
- Passing in only LocalUser to views.
* Formatting fixes.
* Getting rid of unecessary as_refs
* Fixing clippy.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-06-14 21:51:24 -04:00
Dessalines
65620913fc
Removing renovate schedule. ( #4808 )
2024-06-14 21:51:10 -04:00
a3c8761bed
Revert "Remove unneeded error "last successful id is higher than latest id" ( fixes #4363 ) ( #4486 )" ( #4806 )
...
This reverts commit c895e57086
.
2024-06-14 08:15:12 -04:00
dullbananas
99160228ae
Remove unimplemented
in <Comment as Crud>::create
( #4796 )
...
* Remove `unimplemented` in `<Comment as Crud>::create`
* Update comment.rs
2024-06-14 10:40:57 +02:00
Dessalines
fc6f46c1ac
Fix issue with GetPost not returning bot cross_posts. ( #4804 )
...
- Fixes #4803
2024-06-13 14:32:03 -04:00
dullbananas
046375171e
Don't change encoding style in clean_url_params
( #4802 )
...
* Don't change encoding style in `clean_url_params`
Fixes #4801
* fmt
* fix
2024-06-12 20:35:27 -04:00
Dessalines
b2a480f55c
Fixing sed command for postgres upgrade. ( #4791 )
...
- Context: https://github.com/LemmyNet/lemmy-ansible/issues/245
2024-06-07 12:39:23 -04:00
Dessalines
9236cf7d21
Remove ansible tagging lines. ( #4790 )
2024-06-07 11:26:43 -04:00
dullbananas
b559e0206b
Replace wav with hound ( #4788 )
...
* Update lib.rs
* Update Cargo.toml
* Update lib.rs
* cargo.lock
* fix simultaneous mutable references
2024-06-07 10:27:49 -04:00
f5f2b5ffc6
Version 0.19.4
2024-06-07 07:51:56 -04:00
dullbananas
1e11faf741
Improve comment in triggers.sql ( #4789 )
...
* Clarified existing info
* Added prohibition of inconsistent update order
2024-06-07 07:42:34 -04:00
5d31f0d516
Version 0.19.4-rc.11
2024-06-06 23:02:38 -04:00
844b84a01a
Version 0.19.4-rc.10
2024-06-06 20:46:03 -04:00
Dessalines
b0447ad94d
Upgrading lemmy-js-client version to 0.19.4 ( #4787 )
...
* Upgrading lemmy-js-client version to 0.19.4
* Upgrading deps before renovate.
2024-06-06 20:44:36 -04:00
3d25322089
Version 0.19.4-rc.9
2024-06-06 10:43:40 -04:00
Dessalines
16a82862b8
Allow empty string to clear URL-type DB fields. ( #4780 )
...
* Allow empty string to clear URL-type DB fields.
- To address difficulties with clearing URL-type fields like
avatars, banners, site icons, this PR turns the URL type form
fields into strings.
- This allows an empty string to be used as a "clear data", as
in the case with the regular text form fields.
- Also includes various cleanups.
- Fixes #4777
- Context: #2287
* Fixing comment.
* Use Option<&str> and deref.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-06 09:55:08 -04:00
dullbananas
79e6dbf0de
Remove PersonInsertForm builder ( #4779 )
...
* Update session_middleware.rs
* Update private_message_report_view.rs
* Update session_middleware.rs
* Update private_message_view.rs
* Update private_message.rs
* Update registration_application_view.rs
* Update actor_language.rs
* Update vote_view.rs
* Update code_migrations.rs
* Update comment_aggregates.rs
* Update person_view.rs
* Update user_settings_backup.rs
* Update person.rs
* Update create.rs
* Update comment_view.rs
* Update moderator.rs
* Update site_aggregates.rs
* Update claims.rs
* Update community_aggregates.rs
* Update post_report.rs
* Update person_mention_view.rs
* Update community_view.rs
* Update comment_report_view.rs
* Update post_report_view.rs
* Update community_moderators.rs
* Update comment.rs
* Update person_aggregates.rs
* Update comment_reply_view.rs
* Update password_reset_request.rs
* Update post_aggregates.rs
* Update community.rs
* Update main.rs
* Update post.rs
* Update person.rs
* Update person.rs
* Update claims.rs
* Update person.rs
* Update create.rs
* Update user_settings_backup.rs
* Update community_moderators.rs
* Update main.rs
* Update comment_aggregates.rs
* Update community_aggregates.rs
* Update person.rs
* Update Cargo.toml
* Update Cargo.toml
* Update person.rs
* fix
* Update code_migrations.rs
* fix submodule
* Update person.rs
2024-06-06 08:29:18 -04:00
fda5ce4482
Version 0.19.4-rc.8
2024-06-05 19:01:37 -04:00
Dessalines
e8cfb5665f
When banning from local communities, make sure they aren't deleted or removed. ( #4784 )
...
- This is causing some federation issues.
- Context: #4782
2024-06-05 18:59:46 -04:00
bb94fb1c79
Revert apub library 0.5.7 ( #4783 )
...
Wasnt necessary after all
2024-06-05 18:04:02 -04:00
92214a9364
Version 0.19.4-rc.7
2024-06-05 17:30:43 -04:00
78ae874b89
Apub library 0.5.7 ( #4781 )
2024-06-05 17:28:33 -04:00
a947474c64
Version 0.19.4-rc.6
2024-06-04 08:32:08 -04:00
Dessalines
8bf17946bd
Fix issue with avatar / icon deletion when saving settings. ( #4774 )
...
* Fix issue with avatar / icon deletion when saving settings.
- Fixes #4763
* Update crates/api_common/src/request.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing an existing test, and adding another for replace images.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-06-04 08:28:22 -04:00
dullbananas
9ceb5b6386
Clean up build_update_instance_form in scheduled_tasks.rs ( #4775 )
...
* Clean up build_update_instance_form in scheduled_tasks.rs
* remove unused import
2024-06-04 08:04:16 -04:00
Dessalines
aefb41b551
Remove .json from nodeinfo urls, according to spec. ( #4773 )
2024-06-03 17:30:16 -04:00
Dessalines
4195a9b5a1
Fetch nodeinfo href from .well-known/nodeinfo . Fixes #4757 ( #4765 )
...
* Fetch nodeinfo href from .well-known/nodeinfo . Fixes #4757
* Addressing PR comments.
* Fixing clippy.
* Adding tests.
2024-06-03 17:30:00 -04:00
69b4c6647b
Version 0.19.4-rc.5
2024-06-01 13:30:00 -04:00
renovate[bot]
f7fe0d46fc
Update Rust crate console-subscriber to 0.2.0 ( #4771 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 22:35:34 -04:00
renovate[bot]
609a6411a7
Update pnpm to v9.1.4 ( #4770 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 22:24:17 -04:00
renovate[bot]
44666a34a2
Update dependency ts-jest to v29.1.4 ( #4768 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 22:04:44 -04:00
renovate[bot]
6db878f761
Update dependency typescript to v5.4.5 ( #4769 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 21:34:29 -04:00
renovate[bot]
6031709fcf
Update Rust crate serde to v1.0.203 ( #4766 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 21:14:05 -04:00
renovate[bot]
4d9e38d875
Update asonix/pictrs Docker tag to v0.5.14 ( #4767 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 21:13:39 -04:00
Dessalines
6a6c915014
Changing NodeInfo metadata to HashMap from vector. Fixes #4762 ( #4764 )
2024-05-31 16:38:46 -04:00
phiresky
96b7afc0b1
upgrade rust to 1.78 to fix diesel cli ( #4761 )
2024-05-31 08:39:45 -04:00
d2083f79d9
Version 0.19.4-rc.4
2024-05-30 11:55:34 +02:00
phiresky
e8a7bb07a3
fix both permanent stopping of federation queues and multiple creation of the same federation queues ( #4754 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2024-05-30 05:08:27 -04:00
Richard Schwab
91e57ff954
Prevent bot replies from increasing unread reply count when bot accounts are not shown ( #4747 )
...
* Prevent bot replies from increasing unread reply count when bot accounts are not shown
* Pass LocalUser for unread replies count query
* Prevent bot mentions from increasing unread reply count when bot accounts are not shown
2024-05-29 17:55:15 -04:00
phiresky
7d80a3c7d6
replace instanceid with domain ( #4753 )
2024-05-29 23:10:25 +02:00
Dessalines
abcfa266af
Fixing slowness in saved post fetching. #4756 ( #4758 )
...
* Fixing slowness in saved post fetching. #4756
* Also fix comment_view.rs
2024-05-29 17:03:42 -04:00
SleeplessOne1917
51970ffc81
Update dependencies to alleviate cargo audit peer dependency vulnerability ( #4750 )
2024-05-28 17:47:21 -07:00
fd6a1283a5
Version 0.19.4-rc.3
2024-05-27 09:37:58 -04:00
af034f3b5e
Unit tests and cleanup for outgoing federation code ( #4733 )
...
* test setup
* code cleanup
* cleanup
* move stats to own file
* basic test working
* cleanup
* processes test
* more test cases
* fmt
* add file
* add assert
* error handling
* fmt
* use instance id instead of domain for stats channel
2024-05-27 09:34:58 -04:00
Dessalines
0d5db29bc9
After creating a comment, update the unread comments for the post. ( #4742 )
...
* After creating a comment, update the unread comments for the post.
- Fixes #3863
* Addressing PR comments.
* Add comment.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-27 12:55:44 +02:00
dullbananas
ec77c00ef8
Fix lost separation caused by comment width change ( #4739 )
...
* Update post_view.rs
* Update structs.rs
* Update worker.rs
* Update worker.rs
2024-05-23 14:05:35 -04:00
69bdcb3069
Version 0.19.4-rc.2
2024-05-23 12:10:33 -04:00
Dessalines
6a6108ac55
Fixing proxied images for federated posts. ( #4737 )
...
* Fixing proxied images for federated posts.
- Also added test.
- Fixes #4736
* Address PR comments.
2024-05-23 11:11:25 -04:00
b2c1a14234
Correct url for nodeinfo version ( #4734 )
...
* Correct url for nodeinfo version
* add compat redirect
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-23 10:59:56 -04:00
d8dc38eb06
Upgrade dependencies ( #4740 )
2024-05-23 10:55:20 -04:00
c96017c009
Configure max comment width in clippy ( #4738 )
...
* Configure max comment width in clippy
* update default config
2024-05-23 08:46:26 -04:00
9aa565b559
Version 0.19.4-rc.1
2024-05-22 08:58:31 -04:00
Dessalines
7d7cd8ded4
Dont show replies / mentions from blocked users. Fixes #4227 ( #4727 )
...
* Dont show replies / mentions from blocked users. Fixes #4227
* Adding unit tests for reply and mention views.
- Also cleaned up some unwraps in the tests.
* Add allow deprecated to pass clippy for deprecated wav crate.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 08:50:26 -04:00
943c31cc72
Allow passing command line params via environment ( fixes #4603 ) ( #4729 )
...
* Allow passing command line params via environment (fixes #4603 )
* add prefix
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 08:39:01 -04:00
973f39601c
Dont allow removing comment which was deleted ( fixes #4731 ) ( #4732 )
2024-05-22 08:29:01 -04:00
a39c19c9db
Version 0.19.4-beta.8
2024-05-22 10:30:38 +02:00
Dessalines
55f84dd38a
Fixing proxy images ( #4722 )
...
* Adding an image_details table to store image dimensions.
- Adds an image_details table, which stores the height,
width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703
* Running sql format.
* Running fmt.
* Don't fetch metadata in background for local API requests.
* Dont export remote_image table to typescript.
* Cleaning up validate.
* Dont proxy url.
* Fixing tests, fixing issue with federated thumbnails.
* Fix tests.
* Updating corepack, fixing issue.
* Refactoring image inserts to use transactions.
* Use select exists again.
* Fixing imports.
* Fix test.
* Removing pointless backgrounded metadata generation version.
* Removing public pictrs details route.
* Fixing clippy.
* Fixing proxy image fetching. Fixes #4703
- This extracts only the proxy image fixes from #4704 , leaving off
thumbnails.
* Fix test.
* Addressing PR comments.
* Address PR comments 2.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 10:28:47 +02:00
6b46a70535
Extra logging to debug duplicate activities (ref #4609 ) ( #4726 )
...
* Extra logging to debug duplicate activities (ref #4609 )
* Fix logging for api tests
* fmt
2024-05-21 14:47:06 -04:00
4ffaa93431
Dont allow reusing password reset token, use normal rate limit ( #4719 )
...
* Dont allow reusing password reset token, use normal rate limit
* fix
2024-05-21 14:46:49 -04:00
flamingos-cant
a0ad7806cb
Increase alt_text size to 1500 ( #4724 )
2024-05-17 13:03:19 -04:00
99aac07714
Mark database fields as sensitive so they dont show up in logs ( #4720 )
...
* Mark database fields as sensitive so they dont show up in logs
* add file
* fix test
* Update crates/apub/src/objects/person.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update crates/apub/src/objects/community.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update crates/apub/src/objects/instance.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-05-16 20:41:57 -04:00
Dessalines
1a4aa3eaba
Stop using a diesel_cli docker image, use cargo-install in woodpecker. ( #4723 )
...
* Stop using a diesel_cli docker image, use cargo-binstall in woodpecker.
- The diesel_cli image is 500MB, and rebuilt daily. Much easier to use
binstall to install it.
* Trying out a multiline var.
* Try sequence merges 1
* Try removing features.
* Try path fix.
* Abstracting diesel cli install.
* Try installing mysql and postgres.
* Try installing mysql and postgres 2.
* Try installing mysql and postgres 3.
* Try installing mysql and postgres 4.
* Try installing mysql and postgres 5.
* Try installing mysql and postgres 6.
* Try installing mysql and postgres 7.
* Try installing mysql and postgres 8.
* Try installing mysql and postgres 9.
* Try installing mysql and postgres 10.
* Try installing mysql and postgres 11.
* Try installing mysql and postgres 12.
* Try installing mysql and postgres 13.
* Add logging line.
* Add logging line 2.
* Add logging line 3.
* Add logging line 4.
* Removing binstall.
* Extract taplo into its own image, ignore binstall.
* Use a smaller taplo.
* taplo is the same image.
2024-05-16 16:41:36 -04:00
93c9a5f2b1
Dont federate post locking via Update activity ( #4717 )
...
* Dont federate post locking via Update activity
* cleanup
* add missing mod log entries
* update assets
2024-05-15 07:36:00 -04:00
9a9d518153
Fix import blocked objects ( #4712 )
...
* Allow importing partial backup (fixes #4672 )
* Fetch blocked objects if not known locally (fixes #4669 )
* extract helper fn
* add comment
* cleanup
* remove test
* fmt
* remove .ok()
2024-05-14 23:03:43 -04:00
7fb03c502e
Add test to ensure reports are sent to user's home instance (ref #4701 ) ( #4711 )
...
* Add test to ensure reports are sent to user's home instance (ref #4701 )
* enable all tests
* set package-manager-strict=false
2024-05-14 22:48:24 -04:00
49bb17b583
Stricter rate limit for login ( #4718 )
2024-05-14 22:43:43 -04:00
723cb549d4
Allow importing partial backup ( fixes #4672 ) ( #4705 )
...
* Allow importing partial backup (fixes #4672 )
* Dont throw error on empty LocalUser::update
* fix tests
2024-05-14 22:37:30 -04:00
8b6a4c060e
Make nodeinfo standard compliant, upgrade to nodeinfo 2.1 ( fixes #4702 ) ( #4706 )
...
* Always set activitypub protocol in nodeinfo response (fixes #4702 )
* Add mandatory fields
2024-05-13 22:53:20 -04:00
cb80980027
Version 0.19.4-beta.7
2024-05-11 13:51:09 -04:00
dullbananas
c4fc3a8ede
Optimize stuff in attempt to fix high amount of locks, and fix comment_aggregates.child_count ( #4696 )
...
* separate triggers
* auto_explain.log_triggers=on
* Revert "auto_explain.log_triggers=on"
This reverts commit 078b2dbb9bbb878078f1089cffda06b6458d127c.
* Revert "separate triggers"
This reverts commit 95600da4afb49e1dc203c2d61da4c57858e107db.
* bring back migration
* re-order statements
* add comment about statement ordering
* no redundant updates
* optimize post_aggregates update in comment trigger
* set comment path in trigger
* update comment_aggregates.child_count using trigger
* move `LEFT JOIN post` to inner query
* clean up newest_comment_time_necro
* add down.sql
2024-05-09 08:18:55 -04:00
b4f9ef24a5
Dont exit early when running only scheduled tasks ( #4707 )
...
* Dont exit early when running only scheduled tasks (fixes #4709 )
* fix
2024-05-08 14:56:44 +02:00
866d752a3c
Instance.preferred_username should be optional ( fixes #4701 ) ( #4713 )
2024-05-08 08:01:04 -04:00
e0b1d0553d
Add timeout for processing incoming activities ( #4708 )
...
* Add timeout for processing incoming activities
* move to const
2024-05-08 08:00:55 -04:00
7c146272c3
Federate with wordpress, improvements for NodeBB, Discourse federation ( #4692 )
...
* Federate with wordpress
* upgrade apub lib with fix
* Also read post's community from `audience`
* cleanup
* cargo update
* upgrade apub lib
* add wordpress test activity
2024-05-07 16:20:43 -04:00
cfdc732d3a
On registration set show_nsfw based on site.content_warning ( #4616 )
...
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-07 16:18:58 -04:00
Tim Coombs
522f974e30
fix: use docker compose v2 ( #4622 )
...
* fix: use docker compose v2
* Using sudo tee.
* fix: correct postgres sed command
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-07 11:41:40 +02:00
SleeplessOne1917
b152be7951
Update rustls ( #4690 )
...
* Update rustls
* Format code
2024-05-03 16:06:14 -04:00
SleeplessOne1917
485b0f1a54
Replace unmaintained encoding dep with maintained encoding_rs dep ( #4694 )
...
* Replace dependency on unmaintained encoding crate with dep on maintained encoding_rs crate
* Update lockfile
* Taplo format Cargo.toml
* Use better variable name
* Replace into_owned with into
2024-05-03 10:42:48 +00:00
7540b02723
Update activitypub library ( #4691 )
...
https://github.com/LemmyNet/activitypub-federation-rust/releases/tag/0.5.5
2024-05-02 12:46:34 -04:00
7746db4169
Testing and minor fix for federation with Discourse ( #4628 )
...
* Testing and minor fix for federation with Discourse
* prettier
2024-05-02 07:49:19 -04:00
Dessalines
db2ce81fc4
Show trigger logging. #4681 ( #4688 )
2024-05-01 18:46:14 -04:00
renovate[bot]
4175a1af80
chore(deps): update rust crate serde_with to 3.8.1 ( #4687 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 23:47:02 -04:00
renovate[bot]
563280456e
chore(deps): update pnpm to v9.0.6 ( #4682 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 23:43:14 -04:00
Dessalines
2fecb7ecdf
Dont show own comments for liked and disliked_only. Fixes #4675 ( #4679 )
...
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-30 23:26:55 -04:00
renovate[bot]
2c6f9c7fd5
chore(deps): update rust crate serde to 1.0.199 ( #4684 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 23:17:23 -04:00
renovate[bot]
e338e59868
fix(deps): update rust crate lettre to 0.11.7 ( #4685 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 22:54:16 -04:00
renovate[bot]
b0caa85ed4
chore(deps): update rust crate base64 to 0.22.1 ( #4683 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 22:30:19 -04:00
Dessalines
ad60d91f5c
Dont publish lemmy_db_perf to fix crates.io publish. Fixes #4678 ( #4680 )
2024-04-30 17:51:12 +00:00
6423d2dde5
Version 0.19.4-beta.6
2024-04-30 06:38:44 -04:00
12163701e7
Avoid crash when handling urls without domain ( #4676 )
...
* Avoid crash when handling urls without domain
* Add some extra checks
2024-04-30 06:33:37 -04:00
Dessalines
5c35e97a75
Dont show deleted / removed posts when searching. Fixes #4576 ( #4671 )
...
* Dont show deleted / removed posts when searching. Fixes #4576
* Address PR comments.
* Clean up comment removed also.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-30 12:24:18 +02:00
SleeplessOne1917
b05f221565
Remove login step from publish to crates.io ( #4674 )
2024-04-30 00:07:03 +00:00
beec080274
Testing for federation with NodeBB, make community.followers_url optional ( #4629 )
...
* Testing for federation with NodeBB, make community.followers_url optional
* clippy
2024-04-29 12:34:11 +02:00
Dessalines
492d8f1b01
Fix communities with broken outboxes, and use PostView. Fixes #4658 ( #4668 )
...
* Fix communities with broken outboxes, and use PostView. Fixes #4658
* Fixing tests.
* Dont pass ref and clone.
2024-04-29 12:22:00 +02:00
dullbananas
d3737d4453
Optimize actor_language.rs ( #4612 )
...
* Remove useless transaction in actor_language.rs
* Update actor_language.rs
* site
* community
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
2024-04-27 10:59:58 -04:00
b459949f57
Version 0.19.4-beta.5
2024-04-25 19:59:24 -04:00
Dessalines
93f5df2d2a
Adding post_id desc to all post_aggregates indexes. Fixes #4618 ( #4662 )
...
* Adding post_id desc to all post_aggregates indexes. Fixes #4618
* Running pg_format
* Not rebuilding indexes which had no changes.
2024-04-25 18:19:02 -04:00
cf426493e1
Fix community add mod check ( fixes #4624 ) ( #4667 )
2024-04-25 11:47:38 -04:00
Dessalines
8e3ff0408e
Fixing extra modlog entries when post_id or comment_id is given. ( #4664 )
...
- Previously when given a post_id, it didn't filter out any other
modlog entries, such as community removals. This fixes that problem.
- Context: https://github.com/LemmyNet/lemmy-ui/pull/2437
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-25 10:26:17 +02:00
Dessalines
66e06b3952
Removing scheme from block urls. Fixes #4656 ( #4659 )
...
* Removing scheme from block urls. Fixes #4656
* Fix comment.
* Fixing domain checking.
* Removing pointless URL building in url blocklist regex.
* Remove trailing /
2024-04-23 23:15:20 -04:00
Kroese
6b9d9dfaa5
Fix broken thumbnails ( #4661 )
...
* Check is_image_post flag
* Keep cargo_fmt happy
* Filter on is_image_post
* Trigger CI
* Keep cargo_fmt happy
2024-04-23 22:52:56 -04:00
tracyspacy
0eaf8d33e7
Filter_removed_comments_from_search ( #4634 )
...
* filter_removed_comments_from_search
* Revert "filter_removed_comments_from_search"
This reverts commit c6d6490afa923a666b96c785a776711ef42baed7.
* filtering_removed_comments_search
* filter_deleted_comments
* Revert "filter_deleted_comments"
This reverts commit 7dc1d13d24f0300ae17cecdf13abbfba24ac9a06.
* Revert "filtering_removed_comments_search"
This reverts commit 6e9b1de7a21a03caed3b2832fbf5d09c204b7994.
* filtering_removed_dELeted_comments_search
2024-04-22 11:33:02 -04:00
renovate[bot]
c31a29ec7f
chore(deps): update dependency @types/node to v20.12.7 ( #4647 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 18:56:35 -04:00
renovate[bot]
80635c9e24
chore(deps): update rust crate base64 to 0.22.0 ( #4651 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 18:40:38 -04:00
renovate[bot]
95d75e07b2
chore(deps): update pnpm to v9.0.4 ( #4649 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 18:23:06 -04:00
renovate[bot]
efbfdc9340
chore(deps): update docker/dockerfile docker tag to v1.7 ( #4650 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 18:12:26 -04:00
renovate[bot]
1ae3aab764
chore(deps): update dependency typescript to v5.4.5 ( #4648 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 18:11:21 -04:00
renovate[bot]
f68881c552
chore: Configure Renovate ( #4644 )
...
* Add renovate.json
* Updating renovate.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-04-19 17:00:23 -04:00
Dessalines
2ba1ba88b8
Upgrading deps. ( #4645 )
2024-04-19 16:50:27 -04:00
079fa0b8f6
Version 0.19.4-beta.4
2024-04-18 21:11:15 -04:00
dependabot[bot]
b0a740d5c5
Bump h2 from 0.3.25 to 0.3.26 ( #4639 )
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.25 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.25...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-18 21:05:45 -04:00
Kroese
ee46242a43
Update aarch64-lemmy-linux-gnu to v0.3.0 ( #4638 )
2024-04-18 20:34:55 -04:00
dullbananas
4ba6221e04
Move SQL triggers from migrations into reusable sql file ( #4333 )
...
* stuff
* stuff including batch_upsert function
* stuff
* do things
* stuff
* different timestamps
* stuff
* Revert changes to comment.rs
* Update comment.rs
* Update comment.rs
* Update post_view.rs
* Update utils.rs
* Update up.sql
* Update up.sql
* Update down.sql
* Update up.sql
* Update main.rs
* use anyhow macro
* Create down.sql
* Create up.sql
* Create replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update utils.rs
* Update .woodpecker.yml
* Update sql_format_check.sh
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Create dump_schema.sh
* Update start_dev_db.sh
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* stuff
* Update replaceable_schema.sql
* Update .pg_format
* fmt
* stuff
* stuff (#21 )
* Update replaceable_schema.sql
* Update up.sql
* Update replaceable_schema.sql
* fmt
* update cargo.lock
* stuff
* Update replaceable_schema.sql
* Remove truncate trigger because truncate is already restricted by foreign keys
* Update replaceable_schema.sql
* fix some things
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update .woodpecker.yml
* stuff
* fix TG_OP
* Psql env vars
* try to fix combine_transition_tables parse error
* Revert "try to fix combine_transition_tables parse error"
This reverts commit 75d00a46266fbb49b7fab1b149c79fa1c31ee84a.
* refactor combine_transition_tables
* try to fix create_triggers
* fix some things
* try to fix combined_transition_tables
* fix sql errors
* update comment count in post trigger
* fmt
* Revert "fmt"
This reverts commit a5bcd0834bb91a63b66bf63a848caa078f193940.
* Revert "update comment count in post trigger"
This reverts commit 0066a4b42b3472c088eed945605a2cf0bfcc1362.
* fix everything
* Update replaceable_schema.sql
* actually fix everything
* refactor create_triggers
* fix
* add semicolons
* add is_counted function and fix incorrect bool operator in update_comment_count_from_post
* refactor comment trigger
* refactor post trigger
* fix
* Delete crates/db_schema/src/utils/series.rs
* subscribers_local
* edit migrations
* move migrations
* remove utils::series module declaration
* fix everything
* stuff
* Move sql to schema_setup dir
* utils.sql
* delete .pg_format
* Update .woodpecker.yml
* Update sql_format_check.sh
* Update .woodpecker.yml
* Merge remote-tracking branch 'upstream/main' into bliss
* fmt
* Create main.rs
* Update lib.rs
* Update main.rs
* Update .woodpecker.yml
* Update main.rs
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update triggers.sql
* YAY
* Update mod.rs
* Update Cargo.toml
* a
* Update Cargo.toml
* Update Cargo.toml
* Delete crates/db_schema/src/main.rs
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update utils.sql
* Update utils.sql
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update down.sql
* Update up.sql
* Update triggers.sql
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update triggers.sql
* Update down.sql
* Update .woodpecker.yml
* Update Cargo.toml
* Update .woodpecker.yml
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update mod.rs
* Update Cargo.toml
* Update mod.rs
* make dump_schema.sh executable
* fix dump_schema.sh
* defer
* diff dumps
* fmt
* Update utils.sql
* Update .woodpecker.yml
* use correct version for pg_dump
* Update .woodpecker.yml
* Update .woodpecker.yml
* change migration date
* atomic site_aggregates insert
* temporarily repeat tests in CI
* drop r schema in CI migration check
* show ReceivedActivity::create error
* move check_diesel_migration CI step
* Update .woodpecker.yml
* Update scheduled_tasks.rs
* Update scheduled_tasks.rs
* update cargo.lock
* move sql files
* move rank functions
* filter post_aggregates update
* fmt
* cargo fmt
* replace post_id with id
* update cargo.lock
* avoid locking rows that need no change in up.sql
* only run replaceable_schema if migrations were run
* debug ci test failure
* make replaceable_schema work in CI
* Update .woodpecker.yml
* remove println
* Use migration revert and git checkout
* Update schema_setup.rs
* Fix
* Update schema_setup.rs
* Update schema_setup.rs
* Update .woodpecker.yml
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-04-17 20:58:44 -04:00
31829b6c05
Untangle thumbnail generation logic (ref #4604 ) ( #4615 )
...
* Untangle thumbnail generation logic (ref #4604 )
* prettier
* test cleanup
* fix tests
* also consider opengraph image for local thumbnail generation
2024-04-17 10:36:45 -04:00
TechVest
b0370ae2fd
chore: fix some comments ( #4637 )
...
Signed-off-by: TechVest <techdashen@qq.com>
2024-04-17 14:35:54 +02:00
Dessalines
6efab9aab1
Creating a LocalImageView, so that front ends have the Person struct. ( #4631 )
...
* Creating a LocalImageView, so that front ends have the Person struct.
* Removing local_user from LocalImageView.
* Add uploader check.
2024-04-16 19:20:44 -04:00
Dessalines
d075acce43
Make all single-fetch database calls return an Option. ( #4617 )
...
- Diesel ordinarily throws an error when no results are returned for a
single fetch, which is a bit confusing. This PR ensures that the
missing value cases are all caught, and wrapped with new LemmyErrors,
rather than diesel errors.
- Fixes #4601
2024-04-16 14:48:15 +02:00
3a0c1dca90
Avoid overwriting local objects via federation ( #4611 )
...
* Dont allow federation to overwrite local objects
* is_local check in apub lib
* use imports
* fix check, update lib
* use verify_is_remote_object()
* submodule
2024-04-11 10:05:49 -04:00
dullbananas
0f6b13a4ec
Test coverage ( #4596 )
...
* update .gitignore
* add test-with-coverage.sh
* coverage gutters extension comment
* move lcov.info to target folder
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-11 10:32:07 +02:00
64760ec960
Version 0.19.4-beta.3
2024-04-10 11:03:11 -04:00
Dessalines
555f789269
Fixing custom_thumbnail updates. ( #4593 )
...
* Fixing custom_thumbnail updates.
* Fixing issue with image posts.
* Fixing upgrade deps script.
* Adding API tests for custom thumbnails.
* Remove pointless todo.
* Address PR comments.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-10 10:59:46 -04:00
Dessalines
5dea21d531
Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 ( #4614 )
...
* Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613
* Fixing clippy.
2024-04-10 10:14:11 -04:00
Kroese
d5622a65f8
Fix for PictrsImageMode::None ( #4604 )
...
* Fix PictrsImageMode::None
* Update crates/api_common/src/request.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Fix formatting
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-10 10:09:54 -04:00
9059de8569
Allow fetching from local url, add fetch redirect test ( fixes #4526 ) ( #4607 )
...
* Allow fetching from local url, at fetch redirect test (fixes #4526 )
* prettier
* update lib
* update apub lib
2024-04-10 10:04:57 -04:00
0203b62a6d
Ignore old federated post edits (ref #4529 ) ( #4586 )
...
* Ignore old federated post edits (ref #4529 )
* use filter on insert
* coalesce(updated, published)
* avoid comment conflict clause
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-10 10:03:51 -04:00
Dessalines
99d585b7be
Change defaults on user vote display mode to upvotes + downvotes ( #4599 )
...
* Change defaults on user vote display mode to upvotes + downvotes
* Forgot to regenerate the rows.
* Drop and re-add columns instead.
2024-04-10 10:47:05 +02:00
b4670988b5
Change exponential backoff algorithm for federation send ( #4597 )
...
* Limit federation send retry interval to one hour
* clippy
* avoid overflow
* change base for exp backoff
* ignore first error
* fix day duration
2024-04-09 19:33:01 -04:00
1d0a6ac08f
Avoid breaking api change, reduce api cache duration ( #4610 )
...
* Dont mark site.public_key as `serde(skip)` to avoid breaking change (fixes #4605 )
* Reduce cache duration for api
2024-04-09 10:10:20 -04:00
Dessalines
8e54a4a6cc
Fixing bug where comment replies wouldn't be sent to blocked instances. ( #4595 )
...
* Fixing bug where comment replies wouldn't be sent to blocked instances.
- Instance blocks should only affect communities, not comments.
- Fixes #4590
* Revert "Fixing bug where comment replies wouldn't be sent to blocked instances."
This reverts commit 1349aa351a195fdf0d179c27a8057257ca37e255.
* Only block replies from the community's instance id.
- Also refactor send_local_notifs slightly, since it has to fetch the
community now.
- Fixes #4590
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-08 16:26:24 +02:00
jim-taylor-business
a14ebefd24
When env variable is set, any config file will be ignored and the default settings will be used ( #4594 )
...
* do not panic when no config file found use defaults
* formatting
* implement env variable
* ermove commented code
* remove redundant comment
* remove redundant space
* simplify check logic
* format
* returns and messages
* correct mistake
2024-04-08 12:05:54 +02:00
Dessalines
705e86eb4c
Fixing docker release ( #4592 )
...
* Re-add notif on tag failure.
* Upping rust version.
* Version 0.19.4-beta.1a
* Try again.
* Version 0.19.4-beta.1b
* Removing unstable inspect.
* Version 0.19.4-beta.1c
* Remove use release cache.
* Trying to fix cargo publish 1.
* Version 0.19.4-beta.1d
* Re-adding publish release
* Version 0.19.4-beta.2
* Fixing workspace for lemmy_federate
2024-04-04 16:14:59 +02:00
Dessalines
a1d632e582
Re-add notif on tag failure. ( #4591 )
2024-04-04 10:21:31 +02:00
087684658a
Cache result of LocalSite::read to avoid unnecessary db calls ( #4585 )
...
* Cache result of LocalSite::read to avoid unnecessary db calls
* single const for cache duration
* clippy
* revert apub send changes
* clippy
* fmt
2024-04-03 17:38:31 -04:00
Dessalines
aaaa362b98
Remove latest tag for pgformatter. ( #4589 )
2024-04-03 17:29:24 -04:00
5237233f97
Version 0.19.4-beta.1
2024-04-03 16:50:35 -04:00
Dessalines
94438a8516
Removing cardano, this was never used. ( #4588 )
2024-04-03 10:38:57 +02:00
Dessalines
4d9c16a336
Fix private message sort order. #4581 ( #4587 )
2024-04-02 13:25:28 -04:00
ae9f82b452
Read crate version from cargo.toml ( fixes #4583 ) ( #4584 )
2024-04-02 11:19:51 -04:00
dullbananas
007e9b7aab
Optimize Community::set_featured_posts ( #4579 )
...
* Don't lock excess rows in Community::set_featured_posts
* Update community.rs
* Update community.rs
* Update community.rs
* Update community.rs
2024-04-02 11:19:04 -04:00
tracyspacy
60f9a97dfa
Fix unnecessarily duplicated notifs ( #4578 )
...
* add check to remove duplicated notifs
* added comments
2024-03-29 17:09:19 -04:00
Dessalines
067332553d
Fixing woodpecker. ( #4575 )
2024-03-27 11:09:44 -04:00
a4b79ca610
Generate post thumbnail/metadata in background (ref #4529 ) ( #4564 )
...
* Generate post thumbnail/metadata in background (ref #4529 )
* fix api test
* Apply suggestions from code review
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* fix test
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-27 10:54:42 -04:00
Dessalines
a632a86852
Delete a person's local images on delete account. ( #4506 )
...
* Delete a person's local images on delete account.
* Rename purge function to delete.
* Use purge_user_account instead of Person::delete_account in purge person.
* Fixing clippy
2024-03-27 10:28:02 -04:00
85ee89f4e8
When uploading new icon/avatar/banner, delete old one ( #4573 )
2024-03-27 09:00:52 -04:00
Dessalines
6bfbb9332d
Adding listMedia endpoint, to view all your local image uploads. ( #4509 )
...
* Adding listMedia endpoint, to view all your local image uploads.
- Fixes #4445
* Fix ts import.
* Forgot to order by published desc
* Adding an endpoint to list all images, for admins only.
* Forgot to add file.
* Add additional test.
* Use better logic for no-limit version.
* Better call sites.
* Adding another test.
* Fix tests.
* Moving list_media to /account action.
* Addressing PR comments.
* Removing pointless comment.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-26 12:06:11 -04:00
Dessalines
945064726f
Add creator_banned_from_community to vote_view. ( #4568 )
...
* Add creator_banned_from_community to vote_view.
- Fixes #4561
* Adding tests.
2024-03-26 16:22:04 +01:00
Dessalines
7929e77602
Fixing issue with comment replies wrongly marked as read. ( #4567 )
...
* Fixing issue with comment replies wrongly marked as read.
- Fixes #4566
* Elaborating on a comment.
2024-03-26 10:46:37 -04:00
Dessalines
95069d7648
Fixing some clippy and woodpecker lints. ( #4565 )
...
* Fixing some clippy and woodpecker lints.
* Try fixing woodpecker 1.
* Revert "Try fixing woodpecker 1."
This reverts commit 7c2020a08d7b72b179b23cf7c56c1d9fcdcb2a6e.
2024-03-26 10:17:42 +01:00
Dessalines
e4356a7701
Fixing a few broken tests from the change in LocalUser::create ( #4569 )
2024-03-25 19:14:35 -04:00
846848c4f6
On registration, automatically set content languages from accept-language
header ( #4550 )
...
* On registration, automatically set content languages from accept header
* no need to set site language or default language for new user anymore
* fix test
* fix langs
* avoid duplicate writing of new user languages
2024-03-25 16:02:12 -04:00
d06ef2c47e
Migrate apub block activity to standard endTime
property and deprecate expires
( fixes #2316 ) ( #4541 )
...
* Migrate apub block activity to standard `endTime` property (fixes #2316 )
* add todo
2024-03-25 08:10:09 -04:00
Sander Saarend
99d01e186a
Fix rate limiter ( #4560 )
2024-03-25 07:56:03 -04:00
ef4bb3cc40
Add delete user field removeData
to apub assets ( fixes #4544 ) ( #4549 )
2024-03-22 18:41:59 -04:00
21547dedf7
Fix handling of apub downvote ( fixes #4545 ) ( #4551 )
...
* Fix handling of apub downvote (fixes #4545 )
* fmt
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-22 18:41:09 -04:00
baf5921d2c
Add comment about console feature requiring tokio_unstable ( fixes #4553 ) ( #4555 )
2024-03-22 18:40:08 -04:00
SleeplessOne1917
6679b2559f
Add SleeplessOne1917 to CODEOWNERS ( #4558 )
...
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-03-22 18:31:45 -04:00
SleeplessOne1917
38c22d9453
Add banned_from_community to PostView and CommentView ( #4552 )
...
* Add banned_from_community to PostView and CommentView
* Add post view test
* Add tests for CommentView
* Add tests for case where local user is not banned from community
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-03-22 18:31:08 -04:00
Tomas
78581bd696
Add ARG RUSTFLAGS into Dockerfile ( #4556 )
...
* Add ARG RUSTFLAGS into Dockerfile
Allows passing RUSTFLAGS through --build-arg
* Remove invalid ARG syntax
2024-03-21 16:42:30 +01:00
Dessalines
2fd81067c7
Temporarily comment sticky test. ( #4538 )
2024-03-18 12:54:45 +01:00
Dessalines
0f77951e05
Upgrading deps. ( #4537 )
...
* Upgrading deps.
* Addressing PR comments
2024-03-18 10:36:49 +01:00
9d4299aaac
Dont require leading ! or @ for webfinger resolve ( #4513 )
...
* Dont require leading ! or @ for webfinger resolve
* fmt
* clippy
2024-03-15 08:42:09 -04:00
43378c5bb3
Fix video thumbnail generation ( fixes #3484 ) ( #4539 )
...
* Fix video thumbnail generation (fixes #3484 )
* fix test
2024-03-15 08:41:16 -04:00
flamingos-cant
19a1a077c5
Add a blocklist for URLs. ( #4515 )
...
* Add a blocklist for URLs.
* Fix SQL format
* Make clippy happy.
* Use regex for URL matching.
* Escape regex chars in URLs.
* Use post for modification.
* Make URL block regex static and remove API routes.
* Add date fields to table and use transaction.
* Use Cache for blocklist.
* Rename check_links + move list to parameters of process_markdown.
* SQL format.
* Format, again.
* Remove println.
* Add API test.
* Set a shorter lifetime for regex in debug mode.
* Add missing macro.
* Update lemmy-js-client
* Update api_test/pnpm-lock.yaml
* Don't break other tests
* Use different URL for test
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2024-03-15 07:03:29 -04:00
0e7080337b
Dont allow admins to post in community with posting_restricted_to_mods
( fixes #3571 ) ( #4534 )
...
* Dont allow admins to post in community with `posting_restricted_to_mods` (fixes #3571 )
* fmt
2024-03-14 17:31:54 -04:00
835d329134
Fix longstanding bug that breaks initial community view ( fixes #3529 ) ( #4535 )
2024-03-14 16:57:56 -04:00
f1de7b7590
Automatically include apub hashtag with posts ( fixes #3906 ) ( #4533 )
2024-03-14 12:16:45 -04:00
Dessalines
255e695633
Adding extra fields to PostReport and CommentReport views. ( #4520 )
...
- Fixes #4200
2024-03-13 12:11:24 -04:00
Dessalines
15f02f00a9
Add a vote_display_mode local_user setting. ( #4450 )
...
* Add a vote_display_mode local_user setting.
- Fixes #4449
* Changing HideDownvotes to Score.
* Adding ScoreAndDownvote display mode.
* Adding upvote and downvote mode.
* Extracting vote_display_mode to another table.
* Fixing fmt.
* Remove published and updated columns.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-13 12:10:58 -04:00
Dessalines
45c56df4e8
Adding git cliff to help generate changelogs. ( #4522 )
2024-03-12 11:24:27 +01:00
5d361d63ef
Change 2FA to use hostname as issuer ( fixes #4518 ) ( #4525 )
2024-03-11 16:27:05 -04:00
Dessalines
10bf7464b1
Add code of conduct rules to issue template. ( #4523 )
2024-03-08 11:53:57 -05:00
5859502a2a
Fix missing private key for signed fetch ( #4516 )
...
* Fix missing private key for signed fetch (fixes #4451 )
* clippy
* instance actor name and webfinger
* better webfinger handling
* upgrade lib
* update test asset
2024-03-08 10:23:15 -05:00
00f7778485
Store thumbnails in db table local_image ( #4512 )
...
* Store thumbnails in db table local_image
* fmt
2024-03-08 10:17:26 -05:00
bc2e75d5a3
Add @dullbananas to codeowners ( #4521 )
2024-03-08 10:16:05 -05:00
battmdpkq
f228f9d7a9
fix some typos ( #4519 )
...
Signed-off-by: battmdpkq <cmaker@163.com>
2024-03-08 10:38:20 +01:00
fed6b61eaf
Upgrade apub lib, correct webfinger content-type ( #4498 )
...
* Upgrade apub lib, correct webfinger content-type
* fmt
* fix test by avoiding network fetch
2024-03-06 11:21:46 -05:00
Raphael Lullis
bdabc5e827
Add curl to base images ( #4510 )
...
Having a tool like curl or wget can help us to run healthchecks on
docker-based deployments more easily. This commit adds curl to the
list of deb packages that are installed as external dependencies
2024-03-06 11:15:13 +01:00
97e2dbdfd7
Update contact section in readme ( #4508 )
...
* Update contact section in readme
* Update README.md
* Update README.md
2024-03-05 13:07:52 -05:00
22c2e20fc5
Remove contributing.md ( #4507 )
2024-03-05 13:07:20 -05:00
Dessalines
6778279bb6
When purging a federated user, federate local community removals. ( #4505 )
2024-03-05 09:31:04 -05:00
1ad9a211c9
Improve contributing instructions ( #4504 )
2024-03-05 09:14:15 -05:00
157378b4c9
Clear text of deleted/removed comments ( #4503 )
2024-03-05 08:52:35 -05:00
Dessalines
7f9950fe85
Add alt_text for posts. Fixes #1086 ( #4477 )
...
* Add alt_text for posts. Fixes #1086
* Moving alt_text to attachment name.
* Cleaning up mod action line.
* Addressing PR comments
* Addressing PR comments.
* Fixing clones.
2024-03-05 11:34:57 +01:00
Dessalines
52155c74cb
View report history for a post or comment. Fixes #4190 ( #4492 )
2024-03-05 11:31:40 +01:00
SleeplessOne1917
36ad1868b3
Make SiteAggregates derive Copy and Hash ( #4501 )
...
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-03-05 11:14:12 +01:00
Dessalines
65da4e7dbd
View mod history for a post or comment. Fixes #4162 ( #4491 )
2024-03-04 11:42:25 -05:00
3c358e5b0b
Mods and admins can comment in locked posts ( fixes #4116 ) ( #4488 )
...
* Mods and admins can comment in locked posts (fixes #4116 )
* fmt
* fix
* fix test
2024-03-04 09:15:21 -05:00
Dessalines
eb1245bceb
When using saved_only
, sort posts / comments by the saved publish time, not the item creation time ( #4479 )
...
* Work on saved selection.
* Using single value for join.
* Removing unecessary check.
* Remove saved_only pointless block.
2024-03-04 14:19:51 +01:00
Dessalines
7eec8714d7
When site banning a federated user, also remove their content from our local communities. ( #4464 )
...
* When banning a federated user, also remove their content from our local
communities.
- This works by:
- Before a site ban, find all posts and comments to local communities
- Send a federated community ban action for each local comm.
- This also removes their content in the apub receive code.
- Adding back in federated community ban api tests.
- Adding in two more api tests for site bans.
- Fixes #4118
* Add local community ban, and nonlocal person check.
* Ignoring errors.
* Move local check into function.
* Addressing PR comments 2
2024-03-01 13:45:06 -05:00
08b01a377d
Support listing type for person ( fixes #4146 ) ( #4487 )
...
* Support listing type for person (fixes #4146 )
* add test
2024-03-01 11:53:20 -05:00
c5e54a318a
Store password reset token after email successfully sent ( fixes #3757 ) ( #4489 )
2024-03-01 11:32:59 -05:00
a7fa075e8c
Make logs less verbose ( fixes #3627 ) ( #4490 )
2024-03-01 11:32:13 -05:00
c895e57086
Remove unneeded error "last successful id is higher than latest id" ( fixes #4363 ) ( #4486 )
2024-03-01 11:31:37 -05:00
Dessalines
e1b26897be
Add nlnet grant line in readme. ( #4484 )
2024-03-01 11:22:53 -05:00
Dessalines
87b577467b
Adding ability to hide posts. ( #4480 )
...
* Adding ability to hide posts.
- Adds an post/hide API route.
- Adds a `show_hidden` (default false) to `GetPosts`.
- Adds a `hidden` field to `PostView`.
- Removes the single `post_id` from MarkPostAsRead.
- Fixes #1403
* Add a check to make sure hidden field is true.
* Fixing test.
* Add back semicolon
2024-02-29 10:42:34 -05:00
6d815db375
Require verified email to reset password ( #4482 )
2024-02-29 09:12:45 -05:00
328a48c9f5
Remove error-type feature from lemmy-utils ( #4474 )
...
* Remove error-type feature from lemmy-utils
* fixes
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-27 11:13:52 -05:00
ab4deaa49a
Add api test for synchronizing featured posts (ref #4475 ) ( #4476 )
...
* Correctly synchronize collection of community featured posts (fixes #3867 )
* Add api test for synchronizing featured posts (ref #4475 )
* prettier
2024-02-27 09:11:41 -05:00
Dessalines
e01ea32928
Fix doctype check issue for metadata fetching. Fixes #4468 ( #4472 )
...
* Fix doctype check issue for metadata fetching. Fixes #4468
* Change warn to info.
2024-02-26 10:24:09 -05:00
Dessalines
f3d48f2c2c
Adding some recommended fixes from nightly clippy. ( #4473 )
2024-02-26 09:47:10 -05:00
7316dd281a
Correctly synchronize collection of community featured posts ( fixes #3867 ) ( #4475 )
2024-02-26 09:45:23 -05:00
Richard Schwab
80bfd23b4d
Ensure rustfmt is installed in cargo fmt CI job ( #4466 )
2024-02-26 11:22:22 +01:00
SleeplessOne1917
f42420809b
Expose LemmyErrorType in lemmy_api_common ( #4439 )
...
* Expose LemmyErrorType in lemmy_api_common
* Make conditional compilation gates for utils
* Make it so api_common doesn't pull in unnecessary deps
* Make error type non exhaustive
* Fix formatting
* Format toml
* Add some convenience derives to LemmyError
* Simplify features
* Fix CI compile error
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-24 19:54:27 -05:00
dullbananas
f56b84615c
Move DbUrl trait impls to newtypes.rs ( #4463 )
...
* Move DbUrl trait impls to newtypes.rs
* Update utils.rs
2024-02-19 12:41:28 -05:00
dullbananas
d79502dff3
Escape backslashes in fuzzy_search ( #4462 )
...
* Escape backslashes in fuzzy_search
* Update utils.rs
2024-02-18 09:12:56 -05:00
dullbananas
ae62ef2b7e
Ignore expired bans in CommentReportView::read, just like in CommentReportQuery::list ( #4457 )
...
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update comment_report_view.rs
2024-02-18 09:12:12 -05:00
SleeplessOne1917
39345466da
Make it so the signed in user can see if they're banned from a community ( #4458 )
...
* Make it so the signed in user can see if they're banned from a community
* Use more appropriate field name
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-18 09:09:46 -05:00
Dessalines
5d551e6da5
Adding an instance-level default_sort_type ( #4454 )
...
* Adding an instance-level default_sort_type
- Fixes #3796
* Fixing comment.
* Put user sort before site sort.
2024-02-16 09:36:46 -05:00
ffcf415cac
Dont log db url on connection error ( fixes #4453 ) ( #4456 )
...
* Dont log db url on connection error (fixes #4453 )
* remove format
2024-02-16 08:50:06 -05:00
86b44c2a4d
Add site.content_warning, local_site.default_post_listing_mode ( #4393 )
...
* Include local_site.content_warning setting for showing nsfw by default
* Add community setting `only_followers_can_vote`
* clippy
* add auto_expand_images site setting
* cleanup
* add missing api params
* postquery/communityquery changes
* clippy
* change error
* replace auto_expand_images with default_site_post_listing_mode
* change post/community query params
* get rid of only_followers_can_vote
* machete
* fix
* clippy
* revert remaining vote changes
* remove dead code
* remove unused var
* fmt
2024-02-16 07:24:35 -05:00
Dessalines
a3bf2f1cf1
Auto resolve reports on removing a comment or post. Fixes #4390 ( #4402 )
...
* Automatically resolve report when post/comment is removed (#3850 )
* Automatically resolve report when post/comment is removed
* also handle apub removes
* Removing auto-resolve report triggers.
* Dont allow creating reports for deleted / removed items.
* Running pgformat.
* Fixing test.
* Addressing PR comments.
* Forgot comment report.
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-02-15 08:52:04 -05:00
Dessalines
890565ca14
Deleting denied local_users older than a week. Fixes #4434 ( #4448 )
...
* Deleting denied local_users older than a week. Fixes #4434
* Addressing PR comments.
* Upping rust to 1.76
* Delete the person rows also.
2024-02-15 07:50:53 -05:00
Dessalines
3f7cc07b02
Adding ability to specify a custom post thumbnail. ( #4425 )
...
* Adding ability to specify a custom post thumbnail.
- Context: #4204
* Fixing ts-rs serialization.
* Fixing conversion, adding checks.
* Proxying custom_thumbnail. Fixed logic for update.
* Only generate metadata thumbnail is theres no custom thumbnail.
2024-02-15 10:42:23 +01:00
Dessalines
33989f5518
Blocking an instance also hides private messages from their users. ( #4447 )
...
* Blocking an instance also hides private messages from their users.
- Fixes #4444
* Separating private message tests.
2024-02-14 10:49:55 +01:00
Lcchy
8a6a86c1bb
Add support for RSS media enclosures in feeds ( #4442 )
...
* Add support for RSS media enclosures in feeds
* Use post.url_content_type
2024-02-13 10:46:46 +01:00
dullbananas
677d54ae57
Allow better query plans ( #4424 )
...
* Update utils.rs
* Create bind_if_some.rs
* limit connection age
* Delete crates/db_schema/src/utils/bind_if_some.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
2024-02-12 16:44:29 +01:00
SleeplessOne1917
300869d397
Make request models derive PartialEq, Eq, and Hash ( #4443 )
...
* Make request models derive PartialEq, Eq, and Hash
* Fix clippy error
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-11 00:32:14 -05:00
Dessalines
609de3e9e2
Remove front end size. Fixes #4437 ( #4440 )
2024-02-09 10:42:12 +01:00
Elara
3c5b1ac6dd
Use the Accept-Language header to set new users' language ( #4435 )
...
* Use the Accept-Language header to set new users' language
* Implement clippy suggestions
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-02-08 10:53:03 +01:00
dullbananas
f631f43024
Run analyze in db_perf ( #4420 )
2024-02-07 22:37:44 -05:00
Dessalines
9367cbdb00
Upgrading from postgres 15 -> 16-alpine. ( #4426 )
...
- Includes an upgrade script.
- Fixes #4406
2024-02-07 11:21:02 +01:00
Dessalines
3647a46e86
Remove ansible tagging. ( #4417 )
...
- See https://github.com/LemmyNet/lemmy-ansible/issues/215
2024-01-31 10:46:13 +01:00
Elara
328d48ef7e
Remove invalid XML characters from RSS feeds ( #4416 )
...
* Remove all characters that are disallowed by XML
* Combine contiguous unicode ranges into one range
2024-01-30 15:55:45 +01:00
a09027c4c0
Silence warnings from ts-rs ( #4415 )
...
* Silence warnings from ts-rs
https://github.com/Aleph-Alpha/ts-rs/issues/108
* fmt
2024-01-29 09:22:53 -05:00
Elara
0e9924a2b3
Add media:content
thumbnail to RSS feed ( #4413 )
...
* Add media:content thumbnail to RSS feed
* Run formatter
* Add media namespace definition
* Add comment linking to media-rss documentation
2024-01-29 08:56:35 -05:00
Dessalines
eb0dc2fda4
Moving from yarn to pnpm. ( #4414 )
...
* Moving from yarn to pnpm.
* Prettier check.
2024-01-29 11:38:39 +01:00
Dessalines
9a2fb8e7c2
Fix image_mode for docker lemmy.hjson ( #4403 )
2024-01-26 10:51:59 +01:00
dullbananas
f481a607d0
Show server output if federation tests fail in CI ( #4389 )
...
* Show server output if federation tests fail in CI
* dummy failure
* Revert dummy failure
* Update private_message.rs
* Fix errors
* Update private_message.rs
* Update private_message.rs
* Update .woodpecker.yml
* correct exit code
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update prepare-drone-federation-test.sh
* Update .woodpecker.yml
* Update prepare-drone-federation-test.sh
* Update .woodpecker.yml
* Update prepare-drone-federation-test.sh
* Update private_message.rs
* Update lib.rs
* Update lib.rs
* Update session_middleware.rs
* Update session_middleware.rs
* Update .woodpecker.yml
2024-01-26 10:38:15 +01:00
dullbananas
ade1cb1495
Remove outdated comment from .woodpecker.yml ( #4404 )
2024-01-26 10:33:03 +01:00
0f414a95d5
Local only community ( #4350 )
...
* Add support for local only community (fixes #1576 )
* add filters and tests to db views
* dont federate local only community
* test get apub community http
* tests
* more checks
* wip
* api test
* fix tests
* change community.local_only column to visibility enum
(for private communities)
* sql fmt
* rename vars
* clippy
* fix tests
* update lib
* review
* fix js client version
* update client
2024-01-25 11:04:25 -05:00
Dessalines
8cde452fca
Add a comment to clarify the ban expires field. ( #4400 )
...
* Add a comment to clarify the ban expires field.
* Add comment about simpler client implementation.
* Better language.
2024-01-25 16:45:42 +01:00
dadf8f28f9
Send purges to federated instances ( fixes #4119 ) ( #4398 )
...
* Send purges to federated instances (fixes #4119 )
* clippy
* review
* remove unused function
* clippy
2024-01-25 09:24:09 -05:00
e8a52d3a5c
Rewrite images to use local proxy ( #4035 )
...
* Add markdown rule to add rel=nofollow for all links
* Add markdown image rule to add local image proxy (fixes #1036 )
* comments
* rewrite markdown image links working
* add comment
* perform markdown image processing in api/apub receivers
* clippy
* add db table to validate proxied links
* rewrite link fields for avatar, banner etc
* sql fmt
* proxy links received over federation
* add config option
* undo post.url rewriting, move http route definition
* add tests
* proxy images through pictrs
* testing
* cleanup request.rs file
* more cleanup (fixes #2611 )
* include url content type when sending post over apub (fixes #2611 )
* store post url content type in db
* should be media_type
* get rid of cache_remote_thumbnails setting, instead automatically
take thumbnail from federation data if available.
* fix tests
* add setting disable_external_link_previews
* federate post url as image depending on mime type
* change setting again
* machete
* invert
* support custom emoji
* clippy
* update defaults
* add image proxy test, fix test
* fix test
* clippy
* revert accidental changes
* address review
* clippy
* Markdown link rule-dess (#4356 )
* Extracting opengraph_data to its own type.
* A few additions for markdown-link-rule.
---------
Co-authored-by: Nutomic <me@nutomic.com>
* fix setting
* use enum for image proxy setting
* fix test configs
* add config backwards compat
* clippy
* machete
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-25 09:22:11 -05:00
Dessalines
1782aafd10
Upgrading deps. ( #4401 )
2024-01-25 10:24:07 +01:00
dullbananas
d8f9e8a64c
Post view: move cursor pagination to separate library, add backward pagination to PostQuery ( #4320 )
...
* stuff
* stuff
* crates.io
* Update up.sql
* Rerun federation tests
* Update post_view.rs
* Update post_view.rs
* Update up.sql
* Update utils.rs
* Fix precision loss
* Update up.sql
* Update down.sql
* remove unwrap
* Update post_view.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-24 10:50:11 -05:00
dullbananas
759f6d8a9a
Better query plan viewing experience ( #4285 )
...
* stuff
* stuff including batch_upsert function
* stuff
* do things
* stuff
* different timestamps
* stuff
* Revert changes to comment.rs
* Update comment.rs
* Update comment.rs
* Update post_view.rs
* Update utils.rs
* Update up.sql
* Update up.sql
* Update down.sql
* Update up.sql
* Update main.rs
* use anyhow macro
* replace get(0) with first()
* as_slice
* Update series.rs
* Update db_perf.sh
* Update and rename crates/db_schema/src/utils/series.rs to crates/db_perf/src/series.rs
* Update utils.rs
* Update main.rs
* Update main.rs
* Update .woodpecker.yml
* fmt main.rs
* Update .woodpecker.yml
* Instance::delete at end
* Update main.rs
* Update Cargo.toml
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-01-24 10:22:33 -05:00
İsmail Karslı
8670403a67
Add local_subscribers field to CommunityAggregates. Fixes #4144 ( #4166 )
...
* Add upload timeout to PictrsConfig
* Bad space 🤔
* Update PictrsConfig upload timeout to include units.
* Add local_subscribers field to CommunityAggregates
struct and schema
* sql format
* local_subscribers test
* fix local_subscribers test
* Revert "fix local_subscribers test"
This reverts commit 4bbac5ce4afe101b2db4b9f099ca772c5ce2932b.
* Revert "local_subscribers test"
This reverts commit 735107e1f7554dfac6e474104eb87047675f11a5.
* Create trigger for local_subscribers
* Rename variable
* re-trigger ci
* re-trigger ci
* Add local_subscribers count to follow.spec.ts
* Rename local_subscribers to subscribers_local
* Add subscribers_local to community_aggregates
* added subscribers_local to the aggregate tests
* Check if person exists on community_follower trigger
* Delete community follows before deleting person
* Update lemmy-js-client in api_tests
* Refactor local_subscriber migration
* fix format
* Move migration files date to now
* Fix test to wait for aggregates to federate
* re-trigger ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-24 10:22:05 -05:00
Dessalines
922ec7c2cd
Forgot to add skip_serializing_none to persondetailsres. ( #4399 )
2024-01-24 09:58:58 -05:00
jim-taylor-business
f43d2eca70
make inner type pub so it can be read and created easily in other crates ( #4397 )
...
this is for use in SSR pagination in Lemmy-UI-Leptos
2024-01-24 09:03:31 -05:00
Dessalines
20fd4b5869
Clippy fixes for 1.77.0 nightly ( #4395 )
...
* A few 1.77.0-nightly clippy fixes.
* Dead code warnings.
* More fixes.
2024-01-24 10:34:09 +01:00
Dessalines
eb56d9253c
Adding site to GetPersonDetails. Fixes #4373 ( #4394 )
...
* Adding site to GetPersonDetails. Fixes #4373
* Removing the conditioned site return.
2024-01-24 10:32:14 +01:00
SleeplessOne1917
4b4b99aa78
Allow community mods to see votes in addition to admins ( #4392 )
...
* Allow community mods to see votes in addition to admins
* Use Post instead of PostView
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-01-23 18:47:28 -05:00
2133bcea4e
Version 0.19.3
2024-01-22 08:56:08 -05:00
0868910570
Add secondary sort by published date for post view ( fixes #4383 ) ( #4384 )
2024-01-22 08:52:21 -05:00
Dessalines
e78fe5a34c
Removing group from woodpecker, as its deprecated. ( #4387 )
...
* Removing group from woodpecker, as its deprecated.
* Removing meltwater drone cache.
2024-01-22 10:57:07 +01:00
f652513030
Version 0.19.3-rc.1
2024-01-19 11:25:45 -05:00
df11d77a0d
Updating translations.
2024-01-19 11:23:47 -05:00
3d6f7ff911
Revert "Dont ignore errors during login ( fixes #4319 ) ( #4321 )" ( #4380 )
...
This reverts commit 4163e0465e
.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-19 11:21:43 -05:00
516db012bf
Dont allow caching captcha response ( #4381 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-19 10:41:05 -05:00
b58da11fb7
Mark instance as alive after successful activity send ( fixes #4039 ) ( #4377 )
...
* Mark instance as alive after successful activity send (fixes #4039 )
* clippy
* Instance::update
* domain
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-01-19 09:40:12 -05:00
1be7dbde33
Count chars, not bytes for max title length ( fixes #4366 ) ( #4367 )
...
* Count chars, not bytes for max title length (fixes #4366 )
* fix api test
2024-01-15 09:33:39 -05:00
9240a653c0
Fix bug with Mastodon undo follow activities ( #4364 )
2024-01-11 18:56:19 -05:00
0d35c247f9
Version 0.19.2
2024-01-10 10:18:09 -05:00
143fdb62b1
Updating translations.
2024-01-10 10:16:36 -05:00
2d16d12cb7
Move publish = false
to correct place in lemmy_server ( fixes #4359 ) ( #4361 )
2024-01-10 09:07:09 -05:00
Dessalines
3b717cfc88
Removing serde_skip from newest_comment_time. Fixes #4351 ( #4360 )
2024-01-10 10:44:27 +01:00
ea0b856f1e
Version 0.19.2-rc.5
2024-01-09 12:45:54 -05:00
92b49dea3a
Increase CI timeout for restore cache ( #4358 )
2024-01-09 12:37:48 -05:00
dullbananas
1ef90773e0
Refactor post view tests ( #4313 )
...
* Refactor post view tests
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* remove unused import
2024-01-09 12:19:25 -05:00
Dessalines
3d9dda4677
Woodpecker rust 1.75 ( #4355 )
...
* Upgrading woodpecker rust to 1.75
* Trying to get publish working, try 1.
* Version 0.19.2-rc.3.publish1
* Temporarily disable arm builds.
* Version 0.19.2-rc.3.publish2
* Comment out arm blocks.
* Version 0.19.2-rc.3.publish3
* Moving back publish block to below.
* Upgrade to rasky lemmy-arm v0.2.0
* Version 0.19.2-rc.3.publish4
* Test bump for upgraded woodpecker.
* Revert "Test bump for upgraded woodpecker."
This reverts commit e2a5a99f33b63ef2a6f731b1ba7b4f06a02ded5f.
* Adding link to raskys repo.
2024-01-09 11:48:29 -05:00
2f09ad8e5b
Version 0.19.2-rc.4
2024-01-09 09:25:52 -05:00
e3b715002b
Handle federated reports from Mastodon, Kbin ( #4323 )
...
* Test Kbin/Mbin federation
* Handle reports from Mastodon/Kbin (fixes #4217 )
* prettier
* revert
* add mastodon activity
* ci
* revert
* ci
2024-01-05 11:03:13 -05:00
4ca63c5641
Move apub context to join-lemmy.org ( fixes #4234 ) ( #4302 )
...
* Move apub context to join-lemmy.org (fixes #4234 )
* Dont store federation context in sent_activity table
* include basic activitypub context
* update lib
* ci
2024-01-05 15:42:46 +01:00
346ff11795
Version 0.19.2-rc.2
2024-01-05 12:33:20 +01:00
747ab89e87
Upgrade docker rust version to 1.75 ( #4353 )
2024-01-05 12:32:06 +01:00
d3efebfa4e
Version 0.19.2-rc.1
2024-01-05 11:33:37 +01:00
Dessalines
1856e7c0ca
Increasing max items for user settings import. ( #4352 )
...
- Fixes #4307
2024-01-05 10:43:30 +01:00
phiresky
0e6669f617
no endless loop if queue too recent ( #4349 )
2024-01-04 13:28:26 -05:00
4a740ee80a
Version 0.19.1
2024-01-04 12:32:26 -05:00
7d9b59c467
Reduce default db pool size to 30, remove db timeout (ref #4282 ) ( #4301 )
...
* Reduce default db pool size to 30 (ref #4282 )
* remove db timeout
2024-01-04 12:16:51 -05:00
38e64825e6
Add macro assert_length!() for tests ( #4348 )
...
* Add macro assert_length!() for tests
* fix
* number
2024-01-04 11:51:55 -05:00
3cad3b2119
Dont overwrite cache-control header in session middleware ( #4337 )
2024-01-04 11:44:36 -05:00
023c9f4fcd
Fix fetching of community posts ( fixes #4283 ) ( #4293 )
...
* Fix fetching of community posts (fixes #4283 )
Also use spawn_try_task to fetch community outbox, mods etc to avoid
delay/timeout when fetching new community.
* prettier
* fix test
* fix api test
* prettier
* add delay
* Update run-federation-test.sh
* fix test
2024-01-04 11:42:18 -05:00
952c162dac
Fix CI cache ( #4276 )
...
* Minor CI improvements (second attempt)
* test slow check condition
* remove rebuild cache condition for testing
* trigger quick ci check
* mkdir
* ls, remove steps
* exclude cargo home from prettier
* ci
* increase timeout
* more timeout
* even higher just for testing
* disable compression
* also increase restore timeout
* cleanup
* try again
* Update .woodpecker.yml
* Update .woodpecker.yml
* cleanup
* rerun ci
* cleanup
2024-01-04 11:40:41 -05:00
ALEX11BR
a5289dd4cf
Use pretty_assertions
for assertions ( #4347 )
...
* Use `pretty_assertions` for assertions
* fixed ordering of `use`s
* ci
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
2024-01-04 04:47:18 -05:00
Dessalines
009a45dffb
Adding /post/like/list and /comment/like/list for admins. ( #4332 )
...
- Allows admins to view likes, sorted by downvotes first,
for a given comment or post.
- Fixes #4088
2024-01-03 13:39:21 -05:00
phiresky
024ab7d530
Fix federate loop ( #4330 )
...
* make activity channel infallible
* clippy
* federate: make cancellabletask loop itself
2024-01-03 13:30:06 -05:00
53147596b4
Drop unique constraint for site.name ( fixes #4329 ) ( #4342 )
...
* Drop unique constraint for site.name (fixes #4329 )
* working down migration
2024-01-03 12:47:39 -05:00
4163e0465e
Dont ignore errors during login ( fixes #4319 ) ( #4321 )
...
* Dont ignore errors during login (fixes #4319 )
* fix test
* fmt
2024-01-03 10:34:03 -05:00
abe8b18ea8
Also send reports to user's home instance ( fixes #4286 ) ( #4305 )
2024-01-03 10:31:51 -05:00
Sander Saarend
35db0dc8e7
Reduce initial federation retry delay ( #4346 )
2024-01-03 10:31:23 +01:00
Dessalines
5f603985c0
Allow reports to be resolved, even if the community is deleted / removed. ( #4345 )
...
Fixes #4344
2024-01-03 10:31:03 +01:00
Ikko Eltociear Ashimine
2f3a7abe6b
Update READMEs ( #4325 )
...
* Update README.ja.md
fix image path
* Update README.es.md
* Update README.ru.md
* Update README.zh.hans.md
* Update README.zh.hant.md
* prettier
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-12-26 05:23:03 -05:00
Andrew Voynov
f223eb94d5
Fixed matrix_user_id
regex ( #4312 )
...
* fix(matrix_user_id): fixed regex
* test(matrix_user_id): added test with underscore
2023-12-21 12:13:24 +01:00
SleeplessOne1917
4ef00e068f
Prevent crates that shouldn't be published from being published ( #4309 )
...
* Prevent crates that shouldn't be published from being published
* Make dependent crates publishable
* Make dependent crates publishable
* fix toml formatting
* Removing publish=true
* Removing versioned deps.
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-12-20 09:11:58 -05:00
2b9d89057d
Reenable crates.io releases ( fixes #4291 ) ( #4294 )
...
* Reenable crates.io releases (fixes #4291 )
* disable docker release for now
* fixes
* fix indent
* move to top
* install libssl
* -y
* apt update
* debian version
* install cargo, git
* use cargo install
* move to orig position
2023-12-20 08:18:54 -05:00
08b7e0f03d
Version 0.19.1-rc.2
2023-12-20 10:32:51 +01:00
Dessalines
7f780376bc
Add end software patents bagde ( #4296 )
...
* Adding End software patents badge.
Context: https://github.com/LemmyNet/joinlemmy-site/issues/283
* Smaller badge.
* Smaller badge 2.
* Smaller badge 3.
2023-12-19 19:59:48 -05:00
a507a39336
Add missing test cleanup ( #4289 )
...
* Add missing test cleanup
* cleanup
2023-12-19 05:26:00 -05:00
Dessalines
2899ba0131
Fixing broken post_read logic. Fixes #4290 ( #4297 )
2023-12-19 10:46:41 +01:00
8583a85607
Version 0.19.1-rc.1
2023-12-18 14:20:42 -05:00
phiresky
6790b54d4d
make activity channel infallible ( #4295 )
2023-12-18 13:17:10 -05:00
dullbananas
dcb89f52d6
Don't update comment_aggregates if updating path fails ( #4281 )
2023-12-18 10:31:39 +01:00
Dessalines
bc32b408b5
Fixing private message reports. ( #4279 )
2023-12-18 10:25:05 +01:00
aab3ca4eb0
Version 0.19.0
2023-12-15 06:53:26 -05:00
dullbananas
a7ba5c9dd3
Sort by post id in post view ( #4270 )
...
* Sort by post id in post view
* Remove tie_breaker
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2023-12-15 06:42:28 -05:00
7a182c982b
Debug random test failure ( #4275 )
2023-12-15 12:28:08 +01:00
Dessalines
719b76a6e7
Create comment in transaction. Fixes #3741 ( #4265 )
...
* Create comment in transaction. Fixes #3741
* Removing if let on comment create.
2023-12-15 11:36:58 +01:00
Dessalines
246e38a45b
Making login case-insensitive. Fixes #4272 ( #4273 )
...
* Making login case-insensitive. Fixes #4272
* Removing redundant lowercase.
2023-12-15 11:34:17 +01:00
Dessalines
e4b97ad8a9
Revert "Minor CI improvements ( #4266 )" ( #4271 )
...
This reverts commit af4d008ce4
.
2023-12-14 18:36:33 -05:00
Dessalines
70530a8ad2
Optimizing sql format check. ( #4268 )
...
* Optimizing sql format check.
* Fixing format testing.
* Fixing format testing 2.
2023-12-14 11:35:52 -05:00
af4d008ce4
Minor CI improvements ( #4266 )
...
* Speed up SQL formatting in CI with parallel processing
* mess up formatting
* check permissions
* make repo world writable
* need git
* use debian image
* apt update
* perl image for faster install
* fix format
* run restore cache in parallel to format
* add drone-cache exit code
* revert sql format changes
2023-12-14 11:18:15 -05:00
Dessalines
ac209d58b4
Adding a retry on a few fetches. ( #4267 )
2023-12-14 16:26:42 +01:00
59eef85bb7
Version 0.19.0-rc.16
2023-12-14 07:59:27 -05:00
Dessalines
442ec0b9f8
Upgrading lemmy-js-client to 0.19.0 ( #4260 )
2023-12-14 07:26:01 -05:00
4a55d4f871
Quick fix for Peertube federation ( fixes #4261 ) ( #4264 )
...
* Quick fix for Peertube federation (fixes #4261 )
* prettier
* apub assets should be included in slow check paths
2023-12-14 07:25:47 -05:00
phiresky
7353be5b68
federate-less-noisy ( #4263 )
2023-12-14 07:25:04 -05:00
dullbananas
32afc32bc0
Correctly combine sorts in post view cursor-based pagination ( #4247 )
...
* Update post_view.rs
* Update post_view.rs
* Update Cargo.toml
* Update post_view.rs
* fix
* Update post_view.rs
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-12-14 07:10:01 -05:00
01aa17f38e
Reenable API tests that were accidentally skipped ( #4259 )
...
* Reenable API tests that were accidentally skipped
* log get comment parent id failure
2023-12-13 09:29:10 -05:00
0b2df3980f
Version 0.19.0-rc.15
2023-12-13 09:24:24 -05:00
6626d35b98
Second attempt to make command line options more consistent ( #4249 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-12-13 09:14:59 -05:00
60ffa2a599
Upgrade pictrs to 0.5.0-rc.2, remove cargo unstable flags ( #4258 )
2023-12-13 07:05:13 -05:00
dullbananas
5e589004a5
Add test for fixed deleted post filter ( #4256 )
...
* Add test for fixed deleted post filter
* fmt
* Fmt
* Update post_view.rs
2023-12-13 11:09:10 +01:00
dullbananas
a0ef56b9b7
Remove moderator_view field from PostQuery ( #4255 )
2023-12-13 10:52:28 +01:00
Dessalines
93d123b46e
Fixing metadata endpoint. ( #4257 )
2023-12-13 10:50:51 +01:00
5ad881f3df
Version 0.19.0-rc.14
2023-12-12 14:58:17 -05:00
dullbananas
3e2393993e
Update mod.rs ( #4240 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-12-12 13:06:17 -05:00
SleeplessOne1917
8d52c7e7c7
See if different SQL query fixes performance regression ( #4246 )
...
* See if different SQL query fixes performance regression
* Fix formatting
* Hopefully fix failing federation test
* Hopefully solve federation test problem
* Use already-existing coalesce function
* Update person_view.rs
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-12-12 12:09:52 -05:00
30d58865b8
Speed up GET /api/v3/site endpoint ( #4245 )
...
* Make db queries for GET /api/v3/site in parallel (ref #4244 )
* Cache site response
* machete
* Use try_join_with_pool macro
* machete
* taplo
* ttl 1s
2023-12-12 11:56:39 -05:00
e0e74e50ae
Dont use test.png image for api tests ( #4254 )
2023-12-12 10:58:22 -05:00
c7ee53026f
Upgrade dependencies ( #4248 )
...
* Upgrade dependencies
* clippy
2023-12-12 08:56:33 -05:00
b2ae69f96c
Set explicit limit for getPosts/getComments in tests ( #4250 )
...
* Set explicit limit for getPosts/getComments in tests
* pretier
2023-12-12 08:54:54 -05:00
95130370f0
Add CI check for ignored files ( #4252 )
...
* Add CI check for ignored files
* remove ignored files
2023-12-12 08:54:06 -05:00
Dessalines
f764996745
Show federated posts on user profile. Fixes #4228 ( #4229 )
...
* Show federated posts on user profile. Fixes #4228
* Make sure posts are hidden if no listing_type is given.
2023-12-11 14:36:12 -05:00
e317947b75
Dont allow blocking local instance ( fixes #4241 ) ( #4242 )
...
* Dont allow blocking local instance (fixes #4241 )
* use localuserview
2023-12-11 14:35:53 -05:00
cef3f220a2
Make command line options consistent ( #4243 )
2023-12-11 09:39:18 -05:00
Benjamin Barbeau
60849355db
Add voters to active users ( #4235 )
...
* Add voters to active users
* Edit formatting
* Edit formatting
* Edit formatting in down.sql
* Fix person table inner joins
* Remove post read from calculations
2023-12-11 09:38:17 -05:00
Kroese
2d4037ba61
Extend sitemap span ( #4231 )
...
* Extend sitemap span
* Keep cargo_fmt happy
* Add FETCH_LIMIT_SITEMAP
* Use FETCH_LIMIT_SITEMAP
* Keep cargo_fmt happy
* Update utils.rs
* Use SITEMAP_DAYS
* Keep cargo_fmt happy
* Sitemap
* Keep cargo_fmt happy
* Sitemap
* Sitemap
* Increase to 31 days
2023-12-11 11:24:51 +01:00
c85e680aba
Version 0.19.0-rc.13
2023-12-06 18:20:52 -05:00
Kroese
203ca9d617
Print version to log ( #4226 )
...
* Print version to log
* Keep cargofmt happy
* Keep cargo_fmt happy
* Keep Clippy happy
2023-12-05 11:35:59 -05:00
a790a24c4d
Revert debug auth ( #4232 )
...
* Revert "Some changes to help debug auth problems on lemmy.ml (#4220 )"
This reverts commit 16ac893e15
.
* Rename auth cookie back to jwt
2023-12-05 11:22:08 -05:00
de85e51fac
Dont set duplicate context for activities ( #4233 )
2023-12-05 11:19:12 -05:00
a5386187e3
Enable missing code for prometheus actix-web stats ( #4230 )
...
* Enable missing code for prometheus actix-web stats
* enable middleware conditionally
2023-12-04 09:53:53 -05:00
3f79eacb53
Version 0.19.0-rc.12
2023-12-01 09:29:44 -05:00
16ac893e15
Some changes to help debug auth problems on lemmy.ml ( #4220 )
...
* Some changes to help debug auth problems on lemmy.ml
* fix
* clippy
2023-12-01 09:18:29 -05:00
d7376d9541
Fix cors_origin wildcard ( fixes #4214 ) ( #4221 )
2023-12-01 09:16:55 -05:00
809fc05cb3
Only allow distinguishing own comments ( fixes #4216 ) ( #4222 )
2023-12-01 09:16:22 -05:00
70003407a7
Version 0.19.0-rc.11
2023-11-30 05:02:18 -05:00
Dessalines
170b3ec45f
Removing cookie secure check. ( #4213 )
2023-11-30 04:44:18 -05:00
7ef6476520
Version 0.19.0-rc.10
2023-11-29 10:04:42 -05:00
Dessalines
e84f8f55a2
Remove httpOnly requirement. ( #4212 )
2023-11-29 09:58:35 -05:00
Dessalines
86990d5138
Registrations and Reports should sort by New when viewing unresolved / unread. ( #4207 )
...
- Fixes #4206
2023-11-29 11:08:23 +01:00
Dessalines
23b266ec12
Upgrade deps, fix issue with wrong diesel-async in Cargo.lock ( #4211 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2023-11-29 11:06:34 +01:00
Dessalines
a986db1a00
Fixing rust-analyzer suggestions on rss feeds. ( #4210 )
...
* Fixing rust-analyzer suggestions on rss feeds.
* Get rid of other pointless builders.
* More cleanup.
2023-11-29 11:00:06 +01:00
Bhoomtawath Plinsut
6fa3b59d25
Fix:#4197: validate post title must be shorter than 200 letters ( #4198 )
...
* validate post title must be shorter than 200 letters
* use range contains
2023-11-27 10:46:03 +01:00
dullbananas
d95df3a46f
Update diesel-async ( #4203 )
...
* Update diesel-async
* Fix
2023-11-27 10:31:19 +01:00
7972dd0fcf
Version 0.19.0-rc.8
2023-11-26 22:26:57 -05:00
Kroese
fc07ba2d3b
Fix entrypoint in Dockerfile ( #4202 )
...
* Fix entrypoint
* Delete docker/builders/lemmy-builder-arm64/docker-build.sh
* Delete docker/builders directory
* Remove exception for builder
* Remove publish_builder_arm64
2023-11-26 16:50:31 -05:00
Enzo Nocera
8a05c8f8be
fix: Cross-compilation to ARM64 ( #4142 )
...
* feat(docker/docs): explain how building lemmy works
Signed-off-by: Enzo NOCERA <enzo@nocera.eu>
* feat: add arm build
* review: rename script & fix typo
* feat(ci): allow cross platform compilation
* feat(ci): prettier
* fix(docker): fix base image name
* fix: add dockerfile in CI path
Signed-off-by: Enzo Nocera <enzo@nocera.eu>
* fix(docker): fix runner name
* fix(docker): fix builder base image
* fix(docker): fix builder base image platform
* fix(docker): avoid using the wrapper adduser/addgroup
* feat: avoid adding the whole docker directory in the build context
---------
Signed-off-by: Enzo NOCERA <enzo@nocera.eu>
Signed-off-by: Enzo Nocera <enzo@nocera.eu>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2023-11-24 12:52:19 -05:00
934fe7d1cb
Remove pictrs config section old_db
( #4199 )
...
* Remove pictrs config section `old_db` (ref #4194 )
* ci
* remove cargo config comment
* ci
* Revert "remove cargo config comment"
This reverts commit 9389e936490ec1a82e5a51a61f61a576201479a8.
* rename .cargo to .cargo_home
2023-11-24 11:26:21 -05:00
7d489f1e3f
Upgrade pictrs to 0.5.0-beta.2 ( #4194 )
...
* Upgrade pictrs to 0.5.0-beta.2
* Update src/main.rs
Co-authored-by: asonix <asonix@asonix.dog>
* add comment
---------
Co-authored-by: asonix <asonix@asonix.dog>
2023-11-24 07:44:17 -05:00
Dessalines
2b5a31b411
Upgrading deps. ( #4196 )
...
* Upgrading deps.
* Try to use native node-fetch function.
* Fixing image upload tests.
2023-11-24 10:29:41 +01:00
d795c54a7a
Version 0.19.0-rc.7
2023-11-23 21:09:56 -05:00
Dessalines
6e4278b1c9
Setting rank column defaults to a small number. Fixes #4178 ( #4191 )
...
* Setting rank column defaults to a small number. Fixes #4178
* Fixing tests.
2023-11-23 20:39:46 -05:00
26297b4035
Users can view their own posts after removal ( fixes #4186 ) ( #4192 )
2023-11-23 09:47:49 -05:00
cafeb14f1c
Add API tests for purge user and purge post ( #4183 )
...
* Add API tests for purge user and purge post
* prettier
* fix test
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-22 10:15:06 -05:00
58258414cc
Version 0.19.0-rc.6
2023-11-22 09:59:04 -05:00
e58a167d64
Fix remote community posts appearing in local listing ( fixes #4180 ) ( #4181 )
...
* Fix remote community posts appearing in local listing (fixes #4180 )
* fmt
* fix typo
2023-11-22 09:41:52 -05:00
375e232217
Prevent purged user getting refetched from home instance ( fixes #3815 ) ( #4189 )
2023-11-22 09:36:20 -05:00
Dessalines
9d4d6ce881
Removing yarn-error.log ( #4185 )
2023-11-22 09:34:15 -05:00
Dessalines
3e1f7f2efa
Adding creator_is_admin
to PersonView
, CommentView
, and PostView
. ( #4165 )
...
* Adding creator_is_admin to PersonView, CommentView, and PostView.
* Removing left joins from comment_view.
* Removing joins from person_mention and comment_reply views.
* Removing extra left join from person_view.
* Reverting some changes in post_view.
* Fixing compile error.
2023-11-21 11:20:24 -05:00
Dessalines
28d779a960
Fixing issue with mods not being able to view reports. Fixes #4172 ( #4174 )
...
* Fixing issue with mods not being able to view reports. Fixes #4172
* Addressing PR comments.
2023-11-21 16:33:49 +01:00
7ba1d98915
Prevent random test failure ( #4184 )
2023-11-21 10:08:19 -05:00
49377c195e
Fix deleted posts so they can only be seen by creator ( #4182 )
2023-11-21 08:59:47 -05:00
dullbananas
30f7135f32
Use rust 1.74.0 in CI and move clippy lints to Cargo.toml ( #4170 )
...
* ci rust 1.74.0
* do it
* Update .woodpecker.yml
* Update Cargo.toml
* Update lint.sh
* Update lib.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-21 08:51:22 -05:00
62357f4444
Fix banning of remote user ( fixes #4169 ) ( #4171 )
2023-11-21 08:44:55 -05:00
Dessalines
82b30b5467
Adding Selectable and diesel postgres backend check. ( #4175 )
2023-11-21 08:42:28 -05:00
cetra3
1c03a86c17
Upgrade activitypub to 0.5.0-beta.5
( #4179 )
...
* Remove anyhow test
* Update lock
* Fix lints hopefully!
2023-11-21 10:26:12 +01:00
f786df151f
Include instance blocks in settings export ( #4173 )
2023-11-17 21:59:15 -05:00
25450ea090
Fix following local communities stuck on pending ( fixes #4160 ) ( #4161 )
...
* Fix following local communities stuck on pending (fixes #4160 )
* fmt
* remove import
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-17 04:55:26 -05:00
İsmail Karslı
2070381e81
Add upload_timeout to PictrsConfig ( #4159 )
...
* Add upload timeout to PictrsConfig
* Bad space 🤔
* Update PictrsConfig upload timeout to include units.
2023-11-17 04:01:32 -05:00
525359f7c5
Add api tests for image endpoints ( #4150 )
...
* Add api tests for image endpoints (fixes #4105 )
* curl instead of wget
* add missing files
* revert cargo update
* simplify setup
* use const
* rename to image.spec.ts
* adjust to client changes
* update client lib
* remove todos, move import
* try to fix ci
---------
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-11-16 23:43:40 -05:00
7cb20200d8
Version 0.19.0-rc.5
2023-11-16 23:30:09 -05:00
fc56d0aa05
Use result instead of unwrap in apub tests ( #4168 )
2023-11-16 22:51:33 -05:00
SleeplessOne1917
e573010202
Fix report count endpoint error ( #4167 )
2023-11-16 08:50:15 -05:00
a00313e680
Merge /site_inbox
into /inbox
, remove unique constraint for inboxes ( #4138 )
...
* Merge /site_inbox into /inbox (fixes #4137 )
Get rid of different inboxes, only use /inbox
Remove shared_inbox_url db columns
add code migration
move to db migration, fixes
machete
fix sql
drop inbox url unique constraints
Dont create auth cookie in backend (#4136 )
dont change individual inboxes to shared inbox
Dont send comment reply to user who has community blocked. Fixes #3684 (#4096 )
* Dont send comment reply to user who has community blocked. Fixes #3684
* Adding source instance block check.
* Adding api test.
* Addressing PR comments.
* move site inbox rewrite to db
* fix test
* clippy
* clippy 2
* fix test
2023-11-16 14:22:40 +01:00
Dessalines
a53892d2bb
Fixing an issue with timezone migration. ( #4153 )
2023-11-16 14:19:31 +01:00
Dessalines
e2bf2ce530
Removing show_new_post_notifs. ( #4158 )
2023-11-15 10:20:01 +01:00
9a94a86363
Fix cors wildcard (ref #4095 ) ( #4156 )
...
* Fix cors wildcard (ref #4095 )
* cleanup
* clippy
2023-11-14 09:39:13 -05:00
Dessalines
28c30cc502
Adding skip_serializing_none to federation state. ( #4152 )
2023-11-14 08:20:44 -05:00
Dessalines
907e0ce726
Removing one other cache_remote_images. ( #4151 )
2023-11-14 11:09:35 +01:00
1d23df37d8
Rename cache_remote_images setting to cache_external_link_previews (ref #4035 ) ( #4148 )
2023-11-13 09:19:09 -05:00
dullbananas
8e2cbc9a0f
Remove id column and use different primary key on some tables ( #4093 )
...
* post_saved
* fmt
* remove unique and not null
* put person_id first in primary key and remove index
* use post_saved.find
* change captcha_answer
* remove removal of not null
* comment_aggregates
* comment_like
* comment_saved
* aggregates
* remove "\"
* deduplicate site_aggregates
* person_post_aggregates
* community_moderator
* community_block
* community_person_ban
* custom_emoji_keyword
* federation allow/block list
* federation_queue_state
* instance_block
* local_site_rate_limit, local_user_language, login_token
* person_ban, person_block, person_follower, post_like, post_read, received_activity
* community_follower, community_language, site_language
* fmt
* image_upload
* remove unused newtypes
* remove more indexes
* use .find
* merge
* fix site_aggregates_site function
* fmt
* Primary keys dess (#17 )
* Also order reports by oldest first (ref #4123 ) (#4129 )
* Support signed fetch for federation (fixes #868 ) (#4125 )
* Support signed fetch for federation (fixes #868 )
* taplo
* add federation queue state to get_federated_instances api (#4104 )
* add federation queue state to get_federated_instances api
* feature gate
* move retry sleep function
* move stuff around
* Add UI setting for collapsing bot comments. Fixes #3838 (#4098 )
* Add UI setting for collapsing bot comments. Fixes #3838
* Fixing clippy check.
* Only keep sent and received activities for 7 days (fixes #4113 , fixes #4110 ) (#4131 )
* Only check auth secure on release mode. (#4127 )
* Only check auth secure on release mode.
* Fixing wrong js-client.
* Adding is_debug_mode var.
* Fixing the desktop image on the README. (#4135 )
* Delete dupes and add possibly missing unique constraint on person_aggregates.
* Fixing clippy lints.
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
* fmt
* Update community_block.rs
* Update instance_block.rs
* Update person_block.rs
* Update person_block.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2023-11-13 08:14:07 -05:00
SleeplessOne1917
1dc6c60760
Make import and export settings endpoints reachable ( #4143 )
...
* Make import and export settings endpoints reachable
* Preserve original routes
2023-11-13 08:08:07 -05:00
Dessalines
e00b0c9da2
Dont send comment reply to user who has community blocked. Fixes #3684 ( #4096 )
...
* Dont send comment reply to user who has community blocked. Fixes #3684
* Adding source instance block check.
* Adding api test.
* Addressing PR comments.
2023-11-09 12:03:25 +01:00
aaaf17486d
Dont create auth cookie in backend ( #4136 )
2023-11-08 07:55:09 -05:00
Dessalines
7a30a75905
Fixing the desktop image on the README. ( #4135 )
2023-11-07 11:05:12 +01:00
Dessalines
98ed0e51cc
Only check auth secure on release mode. ( #4127 )
...
* Only check auth secure on release mode.
* Fixing wrong js-client.
* Adding is_debug_mode var.
2023-11-07 11:03:13 +01:00
cb01427dcf
Only keep sent and received activities for 7 days ( fixes #4113 , fixes #4110 ) ( #4131 )
2023-11-06 16:17:53 -05:00
Dessalines
97a4fb9a72
Add UI setting for collapsing bot comments. Fixes #3838 ( #4098 )
...
* Add UI setting for collapsing bot comments. Fixes #3838
* Fixing clippy check.
2023-11-06 16:09:12 -05:00
phiresky
b9b65c9c18
add federation queue state to get_federated_instances api ( #4104 )
...
* add federation queue state to get_federated_instances api
* feature gate
* move retry sleep function
* move stuff around
2023-11-06 16:07:04 -05:00
8c85f35b19
Support signed fetch for federation ( fixes #868 ) ( #4125 )
...
* Support signed fetch for federation (fixes #868 )
* taplo
2023-11-06 16:02:01 -05:00
cf788334aa
Also order reports by oldest first (ref #4123 ) ( #4129 )
2023-11-06 05:29:30 -05:00
adef3479c0
Version 0.19.0-rc.4
2023-11-03 10:02:30 -04:00
Dessalines
eeec56c22d
Adding creator_is_moderator to CommentReplyView and PersonMentionView. ( #4126 )
2023-11-03 14:41:00 +01:00
1e59e7ab47
Show oldest registration applications first (ref #4122 ) ( #4123 )
...
* Show oldest registration applications first (ref #4122 )
* fix tests
2023-11-02 07:38:46 -04:00
df53d2a0e8
Change logout endpoint to return SuccessResponse ( #4121 )
2023-10-31 08:41:52 -04:00
9007d49324
Remove unused deps ( #4111 )
...
* Remove unused deps
* Adding cargo-machete to woodpecker.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-31 11:11:12 +01:00
Dessalines
c11e9446c6
Fix hot_rank algorithm pushing downvoted content off the feed. ( #4085 )
...
* Fix hot_rank algorithm pushing downvoted content off the feed.
- Max hot_rank algorithm now uses max(2, score) rather than greatest(1, score + 3)
- Fixes #4084
* Fixing SQL format.
* Adding 2 to bias the positive scores.
2023-10-30 10:47:57 +01:00
08739e2925
Move usage of env::var to lemmy_utils, simplify db init (ref #4095 ) ( #4108 )
2023-10-25 11:34:38 -04:00
Dessalines
b63836b31b
Add link to githubs new issue button for security advisories. Fixes #3734 ( #4107 )
2023-10-25 16:50:56 +02:00
Dessalines
1b751a8cac
Adding cors_origin to settings. Fixes #3665 ( #4095 )
...
* Adding cors_origin to settings. Fixes #3665
* Fix result to option.
* Forgot to update config defaults.
* Setting a cors origin doku default.
* Adding comments for CORS.
2023-10-25 16:46:34 +02:00
Dessalines
64b00ee850
Dont allow bots to vote. Fixes #3940 ( #4100 )
...
* Dont allow bots to vote. Fixes #3940
* Removing pointless function.
2023-10-25 10:14:12 -04:00
568233b062
Resolve federated objects from other instances via redirect ( fixes #3129 ) ( #4073 )
...
* Resolve federated objects from other instances via redirect (fixes #3129 )
* restore domain check using library change
* add test case, update apub lib
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-25 07:14:59 -04:00
45bed71c36
Include prometheus in default build, remove build feature ( fixes #3558 ) ( #4071 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-25 06:54:58 -04:00
Dessalines
766ca99fd5
Hide private messages from blocked users. ( #4102 )
...
- Also fixes the unread count calls for CommentReply and PrivateMessage.
- Fixes #3629
2023-10-25 12:01:40 +02:00
Dessalines
bd9739b5b7
Upgrading deps. ( #4103 )
2023-10-25 05:32:21 -04:00
Dessalines
0b41ddca58
Fix issue with sending private messages to yourself. Fixes #3912 ( #4099 )
...
* Fix issue with sending private messages to yourself. Fixes #3912
* Fix clippy.
2023-10-25 05:09:10 -04:00
Dessalines
c38dfdcd64
Disable ansi coloring in logs. Fixes #3975 ( #4101 )
2023-10-25 10:58:55 +02:00
Dessalines
c0aee244e7
Hide public rss items for private instance. Fixes #3785 ( #4097 )
2023-10-25 10:41:52 +02:00
Dessalines
221365bc9a
Fix bug when leaving admin team, setting accepted application as true… ( #4090 )
...
* Fix bug when leaving admin team, setting accepted application as true. Fixes #3422
* Addressing PR comments.
2023-10-24 17:30:47 -04:00
Dessalines
2df21b9d83
Dont serialize karma. #3393 ( #4089 )
2023-10-24 17:26:09 -04:00
d55bd2f2bc
Allow Arabic and Cyrillic usernames/community names ( fixes #1764 ) ( #4083 )
...
* Allow Arabic and Cyrillic usernames/community names (fixes #1764 )
* update comment
2023-10-24 16:25:52 -04:00
HackerNCoder
722d9efc13
Use starts_with for forbidden unicode ( Fix #3888 ) ( #4079 )
...
* Use starts_with for forbidden unicode (Fix #3888 )
* Require 3 visible chars in display name
* Run cargo fmt and scripts/lint
* Undo invisibly_starts_with_at
* Remove 3 min chars.count() check for display name
2023-10-24 16:57:40 +02:00
Dessalines
09a67472e7
Allow torrent magnet links as post urls. Fixes #3916 ( #4092 )
2023-10-24 16:48:00 +02:00
Dessalines
053dcf8c10
Fixing matrix id regex. Fixes #3431 ( #4091 )
2023-10-24 16:47:02 +02:00
Dessalines
5d48ee3dc8
Add creator_is_moderator to Comment and PostViews. Fixes #3347 ( #4087 )
...
* Add creator_is_moderator to Comment and PostViews. Fixes #3347
* Fixing community_moderator join.
* Addressing PR comments.
2023-10-24 08:37:03 -04:00
Dessalines
5540257b36
Fixing problem with SaveUserSettings, when either the Person or Local… ( #4077 )
...
* Fixing problem with SaveUserSettings, when either the Person or LocalUser update is null.
- Fixes #4076
- Also upgrading api_test deps
* Move function into test.
2023-10-24 11:20:23 +02:00
Dessalines
1596aee724
Adding /version route. Fixes #2914 ( #4059 )
...
* Adding /version route. Fixes #2914
* Using a simple version string.
* Use nginx rewriting to solve version.
* Forgot to remove version.
* Using an actix redirect.
2023-10-24 10:49:52 +02:00
Dessalines
5bfa4e9358
Make sure my_vote is consistently missing if not voted. Fixes #3197 ( #4075 )
...
* Make sure my_vote is consistently missing if not voted. Fixes #3197
* Fix clippy.
* Fix tests.
2023-10-23 12:40:29 -04:00
6235ff45b5
Return status 401 on logout with invalid auth ( fixes #4081 ) ( #4082 )
...
* Return status 401 on logout with invalid auth (fixes #4081 )
* format
2023-10-23 12:17:26 -04:00
ec0a707110
Avoid using proxy for pictrs requests ( fixes #3489 ) ( #4072 )
...
* Avoid using proxy for pictrs requests (fixes #3489 )
* fmt
2023-10-20 11:09:34 -04:00
dfc74835b1
Hide deleted user accounts, add tests for PersonView ( fixes #3811 ) ( #4070 )
...
* Hide deleted user accounts, add tests for PersonView (fixes #3811 )
* clippy
2023-10-20 10:01:29 -04:00
6bcb12b14f
Version 0.19.0-rc.3
2023-10-19 20:34:48 -04:00
Dessalines
236c7e24fd
Making mark post read fields optional. ( #4055 )
...
* Making mark post read fields optional.
* Remove unecessary &
* Fix clippy.
* Addressing PR comments.
* serde(default)
* Revert "serde(default)"
This reverts commit d56afd3075a3baccb2b0eda1cc739406b83963aa.
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-10-19 20:16:23 -04:00
Dessalines
cae25486e4
Adding ts-rs directives for login_token. ( #4063 )
...
* Adding ts-rs directives for login_token.
* Fixing ts-rs derive.
2023-10-19 20:16:12 -04:00
Dessalines
c1db65c6e5
Fix up convert more responses to SuccessResponse ( #4066 )
...
* Revert "Convert more responses to SuccessResponse. Fixes #2860 (#4058 )"
This reverts commit 8deb4e5752
.
* Removing purgeitem and deletecustomemoji response.
* Adding back in utils building.
2023-10-19 20:15:55 -04:00
Dessalines
8deb4e5752
Convert more responses to SuccessResponse. Fixes #2860 ( #4058 )
...
* Convert more responses to SuccessResponse. Fixes #2860
* Upgrading lemmy-js-client.
2023-10-19 13:21:05 -04:00
9ef28eb53b
Remove unused static ( #4061 )
2023-10-19 11:57:39 -04:00
dullbananas
a14657d124
Refactor rate limiter and improve rate limit bucket cleanup ( #3937 )
...
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Shrink `RateLimitBucket`
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* rerun ci
* Update rate_limiter.rs
* Undo changes to fields
* Manually undo changes to RateLimitBucket fields
* fmt
* Bucket cleanup loop in rate_limit/mod.rs
* Remove rate limit bucket cleanup from scheduled_tasks.rs
* Remove ;
* Remove UNINITIALIZED_TOKEN_AMOUNT
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* stuff
* MapLevel trait
* fix merge
* Prevent negative numbers in buckets
* Clean up MapLevel::check
* MapLevel::remove_full_buckets
* stuff
* Use remove_full_buckets to avoid allocations
* stuff
* remove tx
* Remove RateLimitConfig
* Rename settings_updated_channel to rate_limit_cell
* Remove global rate limit cell
* impl Default for RateLimitCell
* bucket_configs doc comment to explain EnumMap
* improve test_rate_limiter
* rename default to with_test_config
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2023-10-19 15:31:51 +02:00
a675fecacd
Version 0.19.0-rc.2
2023-10-17 14:13:44 -04:00
6d27bfed08
Handle invalid ban expires values ( fixes #4045 ) ( #4046 )
...
* Handle invalid ban expires values (fixes #4045 )
* Adding a few missing expire time checks. Fixing up time conversions. (#4051 )
* Adding a few missing expire time checks. Fixing up time conversions.
* Increase settings export wait time.
* get rid of RemoveCommunity.expires
* fmt
* tests
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 13:25:35 -04:00
d827af725a
List distinguished comments first ( fixes #3843 ) ( #4050 )
...
* List distinguished comments first (fixes #3843 )
* then_order_by
* Fixing assert.
* move line
* then
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-17 13:22:50 -04:00
3a19af5215
Allow marking multiple posts as read in single api call ( fixes #3963 ) ( #4048 )
...
* Allow marking multiple posts as read in single api call (fixes #3963 )
* cleanup
* limit array length
* fix test
* review
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 12:35:51 -04:00
3f62135083
Add validate_auth api endpoint ( fixes #3702 ) ( #4049 )
...
* Add validate_auth api endpoint (fixes #3702 )
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 11:25:48 -04:00
SleeplessOne1917
cf1c32d2ab
Enable animated avatars setting ( #4040 )
...
* feat: Add user setting for toggling avatar gif animations
* Add forgotten post listing mode option to settings form
* Fix compilation error
* Fix formatting
* Change name of column to be more general purpose
* Fix sql format.
* Fix comments
* Running format.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 10:52:34 -04:00
56322c75f0
Read community follower count from home instance ( fixes #1440 ) ( #4013 )
...
* Read community follower count from home instance (fixes #1440 )
* fmt
* prettier
* fix tests
* fmt
* rename fn
* fmt
* Run prettier
* increase timeout
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-17 10:34:38 -04:00
332e698336
Cleanup public api ( #4047 )
...
* Convert PersonSortType to purely internal
* Remove hot rank and other db optimizations from public api
2023-10-16 19:37:28 -04:00
6cfbb8fc3b
Remove empty API responses ( #3993 )
...
* Remove empty API responses
* also remove change password response
* fix invalidate
* Run clippy.
* Fixing api_test lints.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-16 12:36:53 -04:00
256ee61908
Ignore activities in remote communities without local followers ( #4006 )
...
* Ignore activities in remote communities without local followers (fixes #3568 )
* x
* comments
* prettier
* fix api test
* fix test
* cleanup
* fix remaining test
* clippy
* decrease delay
2023-10-16 06:03:49 -04:00
Dessalines
3be56ef2e0
Trying to fix export ci, try 1. ( #4038 )
2023-10-16 12:01:59 +02:00
9e099726e6
Cleanup checks for community actions ( fixes #2858 , fixes #2868 ) ( #4028 )
...
* Cleanup checks for community actions (fixes #2858 , fixes #2868 )
* allow restoring deleted community
* review changes
* remove unneeded sql
* remove joins
* change mod log check
2023-10-13 09:48:18 -04:00
608bb6b1b4
Convert titles for posts from Mastodon to plaintext ( fixes #3828 ) ( #4033 )
...
* Convert titles for posts from Mastodon to plaintext (fixes #3828 )
* Fix prettier.
* Trigger build
* Convert titles for posts from Mastodon to plaintext (fixes #3828 )
* Fix prettier.
* Fix sanizize.
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-12 20:36:02 -04:00
Dessalines
645bf21d54
Moving to debian-based docker image. Fixes #3972 ( #4004 )
...
* Moving to debian-based docker image. Fixes #3972
* Fix cargo.toml format.
* Try nightly rust for cargo_fmt.
* Trying to fix cargo build.
* Trying to fix cargo build 2.
* Trying to fix federation tests.
* Trying to fix federation tests 2.
* Trying to fix federation tests 3.
* Try to fix aarch 1.
* Try to fix aarch 2.
* Try to fix aarch 3.
* Removing aarch
* Adding tests back in.
* Adding ca-certs, and debian non-root user
* Commenting arm image building.
* Fix platform on runner.
* Version 0.19.0-beta.6
2023-10-11 11:57:05 -04:00
Maxime Poulin
3a1be8c041
Fix legacy pagination for Subscribed feed ( #4030 )
...
This is the fix suggested in #4019
I've manually tested both legacy pagination (`page=2&limit=20`) as well as the new pagination (`cursor_next=XXXXXXX&limit=20`) using the same endpoint as #4019 , and both methods appear to work as expected.
2023-10-11 16:53:18 +02:00
291ff19718
Only sanitize strings when generating RSS feeds and emails ( fixes #4003 ) ( #4024 )
...
* Only sanitize strings when generating RSS feeds and emails (fixes #4003 )
* clippy
* fix test
2023-10-11 16:48:19 +02:00
6d7b38f4de
Implement user data import/export ( #3976 )
...
* Implement endpoints for user data import/export
* add test
* exclude avatar/banner
* increase import url count, add rate limit
* also export/import saved posts
* rate limit
* rename
* saved posts also exist
* rename routes
* fix test
* error handling
* clippy
* limit parallelism
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-11 16:47:22 +02:00
6d1a7c8ae0
Wipe bio when user is banned with remove content ( fixes #4012 ) ( #4032 )
2023-10-10 11:11:11 -04:00
Hamzah Mansour
6470ea81a7
add keyboard navigation setting ( #3569 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-10 12:17:27 +02:00
dc327652a5
Add db table for login tokens which allows for invalidation ( #3818 )
...
* wip
* stuff
* fmt
* fmt 2
* fmt 3
* fix default feature
* use Authorization header
* store ip and user agent for each login
* add list_logins endpoint
* serde(skip) for token
* fix api tests
* A few suggestions for login_token (#3991 )
* A few suggestions.
* Fixing SQL format.
* review
* review
* rename cookie
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-09 12:46:12 +02:00
b7d570cf35
Make input length checks consistent with HTML maxlength attribute ( #4009 )
...
* Make input length checks consistent with HTML maxlength attr (fixes #3688 )
* ci
* Extricating min and max length checks (#4018 )
* revert string change
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-05 16:39:07 -04:00
a5b8583aab
Version 0.19.0-beta.7
2023-10-05 16:01:12 -04:00
4bf9947153
Add comment to explain startup server (ref #4005 ) ( #4022 )
...
* Add comment to explain startup server (ref #4005 )
* ci
2023-10-05 07:41:05 -04:00
0115613f90
Specify password length limits in error ( fixes #3284 ) ( #4007 )
...
* Specify password length limits in error (fixes #3284 )
* convert to comment
2023-10-05 07:40:22 -04:00
5ef4807d09
Dont create :latest docker tag ( fixes #3996 ) ( #4016 )
...
* Dont create :latest docker tag (fixes #3996 )
* ci
* Update .woodpecker.yml
Co-authored-by: Richard Schwab <mail@w.tf-w.tf>
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Richard Schwab <mail@w.tf-w.tf>
2023-10-04 18:34:56 -04:00
6950dd90e5
Return HTTP status 503 to all requests during startup ( fixes #3780 ) ( #4005 )
...
* Return HTTP status 503 to all requests during startup (fixes #3780 )
* add message
* fmt
* remove err
* dont run startup server if http disabled
* ci
2023-10-04 18:19:58 -04:00
626c7ebc85
Handle empty reason for registration application denial ( fixes #3485 ) ( #4008 )
...
* Handle empty reason for registration application denial (fixes #3485 )
* clippy
* clippy
2023-10-04 15:20:22 +02:00
50b7322ff3
Mention max length for site name in config ( fixes #3006 ) ( #4010 )
...
* Mention max length for site name in config (fixes #3006 )
* ci
2023-10-04 15:09:25 +02:00
Dessalines
2dad29106a
Change RELEASES.md to link to join-lemmy.org news ( #3997 )
...
* Adding 0.18.5 Release notes.
* Linking to join-lemmy RELEASES dir instead.
2023-10-02 10:55:23 +02:00
d45a2a6441
Increase timeout for image upload to 30s ( fixes #3920 ) ( #3998 )
2023-09-29 11:20:14 -04:00
210c470ebd
Notify admin about registration application after email verification ( fixes #3024 ) ( #3995 )
2023-09-28 10:06:45 -04:00
9bb99bec5e
Increase default database connections ( fixes #3394 ) ( #3994 )
2023-09-28 09:56:39 -04:00
9275041f42
Version 0.19.0-rc.1
2023-09-26 23:01:19 -04:00
50589115e0
Fix federation of admin actions ( fixes #3980 ) ( #3988 )
...
* Fix federation of admin actions (fixes #3980 )
* clippy
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-09-25 21:39:18 -04:00
SleeplessOne1917
9a9ece8fa4
Merge pull request #3982 from SleeplessOne1917/bearer-token
...
feat: Replace ad hoc auth header with internet standard bearer token auth header
2023-09-26 00:59:55 +00:00
SleeplessOne1917
1032cce065
Fix api test typo
2023-09-25 07:18:06 -04:00
SleeplessOne1917
bee6b7a1bb
Update translations
2023-09-25 06:38:23 -04:00
SleeplessOne1917
13b20b0502
Address PR feedback
2023-09-25 06:37:45 -04:00
SleeplessOne1917
ed8dae99f1
Merge branch 'main' into bearer-token
2023-09-24 17:47:17 -04:00
SleeplessOne1917
e181f4f41d
Merge pull request #3965 from SleeplessOne1917/comment-fix
...
Display deleted or removed comments when they have children
2023-09-24 18:29:40 +00:00
SleeplessOne1917
6387ac07b3
Merge branch 'bearer-token' of https://github.com/SleeplessOne1917/lemmy into bearer-token
2023-09-22 21:48:47 -04:00
SleeplessOne1917
3a76a10931
chore: Run rust format
2023-09-22 21:48:27 -04:00
SleeplessOne1917
37655f0f18
chore: Run rust format
2023-09-22 21:39:03 -04:00
SleeplessOne1917
519e800b33
feat: Replace ad hoc auth header with internet standard bearer token
...
auth header
2023-09-22 21:26:27 -04:00
Dessalines
b16661a17d
Merge branch 'main' into comment-fix
2023-09-21 11:20:49 -04:00
phiresky
24c98a726a
Merge pull request #3960 from LemmyNet/add_federation_worker_index
...
Fixing high CPU usage on federation worker recheck + fix federation tests. Fixes #3958
2023-09-21 16:40:04 +02:00
phiresky
9bcadadede
fix after merge
2023-09-21 12:52:10 +00:00
phiresky
fe40adfc39
fix after merge
2023-09-21 12:32:41 +00:00
phiresky
31f3677270
fix after merge
2023-09-21 12:01:22 +00:00
phiresky
5941dc2924
Merge remote-tracking branch 'origin/main' into add_federation_worker_index
2023-09-21 11:57:13 +00:00
phiresky
07ffdc3d53
Revert "Revert "re-remove lemmy logs""
...
This reverts commit 459d5a3726
.
2023-09-21 11:45:43 +00:00
phiresky
2c283d90ca
Revert "Revert "re-remove debug comments""
...
This reverts commit 6d519ef376
.
2023-09-21 11:45:33 +00:00
phiresky
dec25f9ee8
ensure overlap
2023-09-21 11:11:54 +00:00
phiresky
6d519ef376
Revert "re-remove debug comments"
...
This reverts commit ae37ca0137
.
2023-09-21 11:07:36 +00:00
phiresky
459d5a3726
Revert "re-remove lemmy logs"
...
This reverts commit ac0c0c8856
.
2023-09-21 11:07:20 +00:00
f858d8cbce
Remove explicit auth params ( #3946 )
...
* Remove explicit auth params (ref #3725 )
Only take auth via header or cookie. This requires a new version
of lemmy-js-client for api tests to pass.
* rework api_crud
* remove remaining auth params, move logic to session middleware
* fmt, fix test
* update js client
* remove auth param from api tests
* Pass auth as header
* add !
* url vars, setHeader
* cleanup
* fmt
* update
* Updating for new lemmy-js-client.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-21 06:42:28 -04:00
phiresky
7e8b973128
empty
2023-09-20 21:21:23 +00:00
phiresky
f16aa9228d
community fix
2023-09-20 21:00:30 +00:00
phiresky
1b7ab96887
wait until ban post removed
2023-09-20 20:26:00 +00:00
SleeplessOne1917
bb552d7659
Merge branch 'main' into comment-fix
2023-09-20 17:38:47 +00:00
phiresky
ac0c0c8856
re-remove lemmy logs
2023-09-20 16:07:01 +00:00
phiresky
2dbaf67b7c
Merge branch 'main' into add_federation_worker_index
2023-09-20 18:06:44 +02:00
phiresky
ae37ca0137
re-remove debug comments
2023-09-20 15:33:09 +00:00
phiresky
a808d3208a
use max(id) instead of seq max value to prevent uncommitted transactions from causing skipped activities
2023-09-20 14:57:18 +00:00
22608ae983
Rework the way 2FA is enabled/disabled ( fixes #3309 ) ( #3959 )
...
* Rework the way 2FA is enabled/disabled (fixes #3309 )
* postgres format
* change algo to sha1 for better compat
* review comments
* review
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-20 10:49:54 -04:00
phiresky
3d649e1d3e
remove synchronous federation flag
2023-09-20 14:22:17 +00:00
phiresky
1a0c866b51
logging temporary
2023-09-20 13:37:18 +00:00
Dessalines
77b2d236b9
Forgot to add ts export to pagination cursor. ( #3971 )
2023-09-20 15:28:56 +02:00
SleeplessOne1917
a866b3424d
Make local federated instances use comnpose file for build ( #3968 )
...
* Make local federated instances use comnpose file for build
* Remove commented out part of script
2023-09-20 09:14:51 -04:00
phiresky
a61d564732
fix delete test
2023-09-20 13:07:36 +00:00
phiresky
a59a94492d
more debug log
2023-09-20 12:30:38 +00:00
phiresky
78a8a7b8b7
clippy
2023-09-20 11:41:34 +00:00
phiresky
c792f46c59
more wait for
2023-09-20 11:38:12 +00:00
phiresky
ae3b8f4f76
fix
2023-09-20 11:23:02 +00:00
phiresky
2e7d2d1956
wait for post api test function, better announce activity id
2023-09-20 11:23:02 +00:00
50f81cf157
User can block instances ( fixes #2397 ) ( #3869 )
...
* User can block instances (fixes #2397 )
* update comments
* review comments
* use route
* update
* add api test
* update tests
* fix
* fix test
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-20 11:56:13 +02:00
Dessalines
89b7c981f5
Fixing GetPostsResponse serialization. ( #3967 )
2023-09-20 11:49:26 +02:00
SleeplessOne1917
a57b116431
Merge branch 'comment-fix' of https://github.com/SleeplessOne1917/lemmy into comment-fix
2023-09-18 22:10:07 -04:00
SleeplessOne1917
553c5bda88
Update versions to correct version
2023-09-18 22:07:31 -04:00
3812c8bf81
Force update 2
2023-09-18 21:20:06 -04:00
dc6dee61b9
Force update
2023-09-18 21:19:08 -04:00
SleeplessOne1917
671676d7e4
Remove unused import
2023-09-18 19:40:01 -04:00
SleeplessOne1917
c471692949
Merge branch 'main' into comment-fix
2023-09-18 19:31:46 -04:00
SleeplessOne1917
be961075c7
Do not filter removed and deleted comments on the backend
2023-09-18 19:31:12 -04:00
Dessalines
c25734e4ca
Merge branch 'main' into add_federation_worker_index
2023-09-18 19:19:24 -04:00
8c419103b2
Fixing formatting.
2023-09-18 19:19:13 -04:00
Dessalines
4f85adc393
Merge branch 'main' into add_federation_worker_index
2023-09-18 19:16:49 -04:00
SleeplessOne1917
f93d08a147
Make moderators be able to see removed comments in communities they moderate
2023-09-18 19:09:17 -04:00
phiresky
990445bf84
tmp tail lemmy log
2023-09-18 21:08:17 +00:00
phiresky
a19b1d2606
ci
2023-09-18 21:02:52 +00:00
phiresky
afde8e7576
tweak more tests
2023-09-18 20:31:12 +00:00
phiresky
dff54d5e39
tweak tests more
2023-09-18 19:58:20 +00:00
Apple Sheeple
c05458adcd
Sanitize registration application answer
...
Signed-off-by: Apple Sheeple <AppleSheeple@github>
2023-09-18 22:39:29 +03:00
Apple Sheeple
5fff7504e5
Reject registration application if sanitizing the username modifies it
...
This removes the possibility of using a mix of sanitized and
non-sanitized values for `username` in code.
Signed-off-by: Apple Sheeple <AppleSheeple@github>
2023-09-18 22:39:20 +03:00
phiresky
7dd857e00b
log result
2023-09-18 19:19:40 +00:00
phiresky
2f0ad53b60
wait longer for fed init
2023-09-18 18:39:09 +00:00
phiresky
9868065089
minor test improvement
2023-09-18 18:23:55 +00:00
phiresky
d58e2e9db7
minor test improvement
2023-09-18 18:09:18 +00:00
phiresky
007f4f5319
wait on score
2023-09-18 17:30:02 +00:00
phiresky
954b3f443d
fix wait
2023-09-18 17:28:23 +00:00
phiresky
9e886fba4a
delay shorter
2023-09-18 16:49:55 +00:00
phiresky
88931227b0
Merge remote-tracking branch 'origin/main' into add_federation_worker_index
2023-09-18 16:45:23 +00:00
phiresky
943b960c32
fix waits after all follow actions
2023-09-18 16:29:08 +00:00
phiresky
48496599b2
ci
2023-09-18 15:45:39 +00:00
phiresky
27141553b6
fix after revert
2023-09-18 14:28:49 +00:00
phiresky
08401fc85f
Revert "remove synchronous federation"
...
This reverts commit 2767ab4a6fed9aa8d197eda0c6a25a1d617d192d.
2023-09-18 14:25:35 +00:00
Apple Sheeple
b431c9bdf9
Sanitize apub post body
...
Signed-off-by: Apple Sheeple <AppleSheeple@github>
2023-09-18 16:00:29 +02:00
phiresky
544d30f0d4
Fix Posts List Performance + cursor-based pagination ( #3872 )
...
* add token-based pagination + fast subscribed post view
* add migrations
* fix failing heuristic
* revert
* output pagination token as next_page, fix off-by-one, restructure
* more cleanup
* clean
* format sql
* fix comment
* fix tests
* e
* empty
* move last page thing
* restructure a bit for readability
* rename page_cursor
* update for scaled sort
* fix
* sql format
* fix
* get rid of macros
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-18 15:44:48 +02:00
SleeplessOne1917
7118200cab
Use up to date default UI container for dev
2023-09-18 07:55:38 -04:00
SleeplessOne1917
6d02a9914c
Update translation
2023-09-18 07:38:00 -04:00
SleeplessOne1917
05b1ebdc7c
Fix comments created by ser not showing up
2023-09-18 02:59:59 -04:00
SleeplessOne1917
eab1862e9a
Make deleted and removed comments show when they have childern
2023-09-17 23:38:07 -04:00
phiresky
fc1f9c1ec3
ci
2023-09-15 22:06:55 +00:00
phiresky
c86173577d
fix export location
2023-09-15 15:51:31 +00:00
phiresky
7ee707e78b
ci
2023-09-13 11:59:09 +00:00
phiresky
b09ffa7197
instead of changing fed delays in debug mode, change them via env variable
2023-09-13 11:23:13 +00:00
phiresky
dca43dcfd9
fix a bug where after an hour community follows would be overwritten completely by an incremental upgrade
2023-09-13 10:54:10 +00:00
4f1240487e
Fixing high CPU usage on federation worker recheck. Fixes #3958
2023-09-12 15:54:49 -04:00
Alex Roman
6735a98d35
Async scheduler ( #3949 )
...
* fix: switch to async scheduler
* fix: pass context to scheduled tasks
* Merge remote-tracking branch 'upstream/main' into async-scheduler
* retrigger ci
* retrigger ci
2023-09-11 11:12:16 +02:00
phiresky
375d9a2a3c
Persistent, performant, reliable federation queue ( #3605 )
...
* persistent activity queue
* fixes
* fixes
* make federation workers function callable from outside
* log federation instances
* dead instance detection not needed here
* taplo fmt
* split federate bin/lib
* minor fix
* better logging
* log
* create struct to hold cancellable task for readability
* use boxfuture for readability
* reset submodule
* fix
* fix lint
* swap
* remove json column, use separate array columns instead
* some review comments
* make worker a struct for readability
* minor readability
* add local filter to community follower view
* remove separate lemmy_federate entry point
* fix remaining duration
* address review comments mostly
* fix lint
* upgrade actitypub-fed to simpler interface
* fix sql format
* increase delays a bit
* fixes after merge
* remove selectable
* fix instance selectable
* add comment
* start federation based on latest id at the time
* rename federate process args
* dead instances in one query
* filter follow+report activities by local
* remove synchronous federation
remove activity sender queue
* lint
* fix federation tests by waiting for results to change
* fix fed test
* fix comment report
* wait some more
* Apply suggestions from code review
Co-authored-by: SorteKanin <sortekanin@gmail.com>
* fix most remaining tests
* wait until private messages
* fix community tests
* fix community tests
* move arg parse
* use instance_id instead of domain in federation_queue_state table
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: SorteKanin <sortekanin@gmail.com>
2023-09-09 12:25:03 -04:00
3b67642ec2
Add ts(skip) attributes to fix js client code generation ( #3952 )
...
* Add ts(skip) attributes to fix js client code generation
* use feature flag
2023-09-08 08:35:58 -04:00
Dessalines
9785b20843
Adding a scaled sort, to boost smaller communities. ( #3907 )
...
* Adding a scaled sort, to boost smaller communities.
- Previously referred to as *best* .
- Fixes #3622
* Fixing scheduled task update.
* Converting hot_rank integers to floats.
* Altering hot_rank psql function to default to zero after a week.
* Setting scaled_rank to zero, where hot_rank is zero.
* Adding image_upload table.
2023-09-06 13:43:27 -04:00
SorteKanin
4121fc4d56
Include domain in errors ( #3944 )
2023-09-06 13:29:15 -04:00
SorteKanin
722027ce2e
Bump ts_rs version ( #3947 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2023-09-06 13:04:24 -04:00
71d61138bc
Replace ammonia lib with manual html escaping ( fixes #3774 ) ( #3938 )
...
* Replace ammonia lib with manual html escaping (fixes #3774 )
* prettier
* clippy
* remove sanitize unit test
* fix tests
* fix schema
2023-09-06 10:56:26 -04:00
Anon
fe3ebea95a
Add logging for pictrs uploads ( #3927 )
...
* Add logging for pictrs uploads
* cleanup
2023-09-06 09:13:30 -04:00
Dessalines
797d26fdf4
Change AddAdmin to use person_id instead of local_user_id ( #3941 )
...
- Front ends don't have easy access to local_user_id on moddable
items like comments and posts.
2023-09-06 11:37:03 +02:00
a0ea8dbc00
Auto resolve reports trigger ( #3871 )
...
* Revert "Automatically resolve report when post/comment is removed (#3850 )"
This reverts commit f7f6766650
.
* Automatically resolve reports using db trigger
* lint
* use mod log tables
* fix migration
* fix ci
* fix clippy
2023-09-05 05:35:10 -04:00
366d9d1e2e
Get rid of remaining Perform/SendActivity traits ( fixes #3670 ) ( #3926 )
...
* Get rid of remaining Perform/SendActivity traits (fixes #3670 )
* fix api tests
* ci
2023-09-05 05:33:46 -04:00
dullbananas
a1a9c3e4c0
Make use of variables less redundant and inconsistent in distinguish.rs ( #3932 )
...
* Make use of variables less redundant and inconsistent in distinguish.rs
* fmt
2023-09-04 11:06:54 +02:00
dullbananas
5b5ac0f37d
Remove left joins and use only one call to select method in post_view.rs ( #3865 )
...
* Use same joins for read and list in post_view.rs
* fmt
* rerun ci
* rerun ci
* Update post_view.rs
* rerun ci
* rerun ci
* Update post_view.rs
* Use `exists`
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* rerun ci
* Update post_view.rs
* person_id_join parameter
* rerun ci
* fmt
* Update post_view.rs
* rerun ci
* Update post_view.rs
* rerun ci
* fmt
* Update post_view.rs
* fmt
* Use into_sql
* Update post_view.rs
* Use inferred query source for BoxableExpression
* Update post_view.rs
* Update post_view.rs
* Update community.rs
* Update community.rs
* Update post_view.rs
* fmt
* Update community.rs
* Update community.rs
* Update community.rs
* Update community.rs
* Update community.rs
* Update post_view.rs
* Update community.rs
* fmt
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* fmt
* Update post_view.rs
* Update post_view.rs
* fix
* trigger ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2023-09-04 11:05:00 +02:00
Nick Webster
a57658d99c
Adding a new config flag to disable pictrs caching for thumbnails ( #3897 )
...
* add logic to prevent downloading remote pictrs images
* apply formatting
* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance
* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance and cache_federated_images is false
* Generalising the no caching option to handle all remote images
* rustfmt
* Return None if the URL is not an image
* Updating defaults.hjson
* fixing typo
* Fixing typo
* Skip cloning the Url unless we need to
* using a HEAD request for checking the content type, saving bandwidth/improving perf
* Removing early returns
* Switching back to GET requests for Content-Type because pictrs does not handle HEAD requests
* Simplifying logic and using metadata_image instead of url if we do not get a pictrs thumbnail
* Removing unused import
* Return None as a thumbnail if caching is disabled
* formatting
---------
Co-authored-by: Djones4822 <david.jones4822@gmail.com>
2023-08-31 10:36:39 -04:00
dullbananas
15930cbf4d
Use Queryable instead of JoinView ( #3917 )
...
* Update utils.rs
* Update traits.rs
* Update comment_report_view.rs
* Update comment_view.rs
* Update local_user_view.rs
* Update post_report_view.rs
* Update post_view.rs
* Update private_message_report_view.rs
* Update private_message_view.rs
* Update registration_application_view.rs
* Update site_view.rs
* Update structs.rs
* Update comment_reply_view.rs
* Update community_block_view.rs
* Update community_follower_view.rs
* Update community_moderator_view.rs
* Update community_person_ban_view.rs
* Update community_person_ban_view.rs
* Update community_view.rs
* Update person_block_view.rs
* Update person_mention_view.rs
* Update person_view.rs
* Update structs.rs
* Update admin_purge_comment_view.rs
* Update admin_purge_community_view.rs
* Update admin_purge_person_view.rs
* Update admin_purge_post_view.rs
* Update mod_add_community_view.rs
* Update mod_add_view.rs
* Update mod_ban_from_community_view.rs
* Update mod_ban_view.rs
* Update mod_feature_post_view.rs
* Update mod_hide_community_view.rs
* Update mod_lock_post_view.rs
* Update mod_remove_comment_view.rs
* Update mod_remove_community_view.rs
* Update mod_remove_post_view.rs
* Update mod_transfer_community_view.rs
* Update structs.rs
* Update utils.rs
* Update private_message_view.rs
* Update comment_report_view.rs
* Update registration_application_view.rs
* Update utils.rs
* fix
* fix db_views
* fix
* Update comment_view.rs
2023-08-31 15:26:10 +02:00
Ellie
bd3f39973f
Add ARM64 Docker image support ( #3810 )
...
* Add ARM64 Docker image support
* Fix
* Fix Docker build
* Fix typo
* Use OpenSSL 3 and PostgreSQL Lib v15 in Docker builder
* Use simple comments in Dockerfile
* Add comment explaining Docker image cross build
* Move docker step above tests for testing
* Move docker build step back to normal position
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-31 09:02:59 -04:00
Dessalines
56e26fc3d4
Adding a post_view mode. Fixes #3730 ( #3731 )
...
* Adding a post_view mode. Fixes #3730
* Fix test.
* Addressing PR comments.
* Adding a post_view mode. Fixes #3730
* Fix test.
* Addressing PR comments.
* Fixing column order.
* Fix default Ok returns.
* Removing return Err(... where feasible.
2023-08-31 09:01:08 -04:00
fed6542055
Implement remote follow ( #3738 )
...
* Add remote follow url to webfinger response
* update apub lib
2023-08-31 09:00:41 -04:00
biosfood
384e55f0e4
update moderator view ( #3820 )
...
* update api tests for new moderator view
* chage moderator view to be a listing type in get posts
Note: Internally, the listing type is called ListingType.ModeratorView,
but it's called "Moderator View" in the api endpoint
* fix formatting
* add support for moderator view to list comments
* add api test for moderator view when listing comments
* fix api test formatting
* retry tests
* don't filter out blocked users and communities when using moderator view
* fix cargo tests failing
* fix formatting
* fix previous merge
* Adding ModeratorView to listing_type_enums
* Fixing fmt.
* Adding a default to ListingType.
* Upgrading to use new lemmy-js-client.
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-08-31 13:07:45 +02:00
Lukas Trombach
c93bde9799
replace expect
with ErrorUnauthorized
( #3915 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-29 19:08:44 -04:00
b2aee565f3
Allow passing auth via header or cookie ( #3725 )
...
* Allow passing auth via header or cookie
* revert submodule
* taplo
* fix build
* working
* convert apub api methods
* also set cache-control header
* opt
* clippy
* deduplicate code, ignore invalid auth
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-29 10:47:57 -04:00
7fd14b3d2a
Make remove content optional during account deletion ( fixes #1617 ) ( #3817 )
...
* Make remove content optional during account deletion (fixes #1617 )
* simplify purge params by passing context
* update js client
* add delete content
* update woodpecker config
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-28 12:23:45 +02:00
Lukas Trombach
26d125cc63
Sitemap - use UTC time ( #3914 )
...
* change local filter to use `eq` function
* use Utc time for sitemap
2023-08-28 11:09:20 +02:00
phiresky
514f2222e0
Fix time zone handling ( #3496 )
...
* convert naive time to utc time
* compounding fixes
* cargo fmt
* fix the rest
* fix down migration
* fix migrations
* fix after merge
* clippy fix
* ap-fed 0.5.0
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-08-24 11:27:00 -04:00
6047257bfc
Move admin flag from person to local_user ( fixes #3060 ) ( #3403 )
...
* Move admin flag from person to local_user (fixes #3060 )
The person table is for federated data, but admin flag can only
apply to local users. Thats why it really belongs in the local_user
table. This will also prevent the federation code from accidentally
overwriting the admin flag
* fmt
* try to fix api tests
* lint
* fix person view
* ci
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-24 05:40:08 -04:00
Freakazoid182
51ccf318e8
Lowercase domain on db query filters ( #3849 ) ( #3873 )
...
* Lowercase domain on db query filters (#3849 )
* Add test to get a community on different cased domain (#3849 )
* Lowercase the identity for webfinger (#3849 )
* Lowercase both sides of the domain comparison (#3849 )
* Format api_tests (#3849 )
* Lowercase domain lookup on Instance and Person (#3849 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
Co-authored-by: Freakazoid182 <>
2023-08-22 11:10:21 -04:00
Lukas Trombach
28324ad2c8
Sitemap ( #3808 )
...
* generate sitemap.xml file
* set up endpoint for sitemap
* Update sitemap generation
- remove sitemap generation from scheduled tasks
- add posts query for sitemap
- create sitemap module in API crate
* remove priority and change freq from sitemap
* add configuration option for number of posts for sitemap
* fix default config
* rate limit sitemap endpoint
* update sitemap query
* update sitemap generation
- remove config value for query limit
- adjust sitemap generation to query changes
- tidy up error handling
* refactor sitemap generation loop
* remove `limit` argument
* refactor `generate_urlset` and add unit test
* change query to only fetch local posts of past 24h
* fix outdated comment and log
* cargo fmt
2023-08-22 10:30:15 -04:00
Alex Roman
ab828b81e4
fix: add client connect timeout to scheduled task ( #3883 )
2023-08-21 10:53:35 +02:00
Freakazoid182
ee7b35a04a
Add person name to PersonIsBannedFromSite error ( #3786 ) ( #3855 )
...
* Add person name to PersonIsBannedFromSite error (#3786 )
* Log PersonId instead of Person name (#3850 )
* Log actor_id for PersonIsBannedFromSite (#3850 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
2023-08-16 11:36:58 +02:00
Freakazoid182
c8063f3267
Replace Option<bool> with bool for PostQuery and CommentQuery ( #3819 ) ( #3857 )
...
* Replace Option<bool> with bool for PostQuery and CommentQuery (#3819 )
* Replace Option<bool> from all list queries (#3819 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
2023-08-11 11:13:14 +02:00
Maarten Vercruysse
9b710a2ed3
Update .woodpecker.yml use steps instead ( #3858 )
2023-08-10 08:15:30 -04:00
Dessalines
654bc513ea
Fixing woodpecker env var. ( #3854 )
2023-08-09 11:14:09 +02:00
Dessalines
29869b132c
Adding 0.18.4 Release notes. ( #3853 )
2023-08-09 11:08:32 +02:00
f7f6766650
Automatically resolve report when post/comment is removed ( #3850 )
...
* Automatically resolve report when post/comment is removed
* also handle apub removes
2023-08-08 11:19:55 -04:00
ae438e148e
Speedup CI ( #3852 )
...
* Speedup CI
* run tests in parallel
* restore cp
* main push
* no self update
* parallel format
2023-08-08 10:35:03 -04:00
33b2d67be6
Reorder woodpecker config to avoid ci failures ( #3851 )
2023-08-08 13:09:27 +02:00
dullbananas
969f8b2ce9
Replace TypedBuilder with Default in update forms ( #3814 )
...
* Update comment.rs
* Update community.rs
* Update local_site.rs
* Update local_site_rate_limit.rs
* Update local_user.rs
* Update person.rs
* Update comment.rs
* Update community.rs
* Update local_site.rs
* Update local_site_rate_limit.rs
* Update local_user.rs
* Update post.rs
* Update private_message.rs
* Update site.rs
* Update post.rs
* Update person.rs
* Update private_message.rs
* Update comment.rs
* Update create.rs
* Update leave_admin.rs
* Update update.rs
* Update remove.rs
* Update add_admin.rs
* Update verify_email.rs
* Update mod.rs
* Update mod.rs
* Update undo_delete.rs
* Update undo_delete.rs
* Update utils.rs
* Update feature.rs
* Update delete.rs
* Update lock.rs
* Update create.rs
* Update approve.rs
* Update update.rs
* Update lock_page.rs
* Update block_user.rs
* Update delete.rs
* Update undo_block_user.rs
* Update collection_remove.rs
* Update post.rs
* Update hide.rs
* Update person.rs
* Update remove.rs
* Update post_view.rs
* Update create.rs
* Update remove.rs
* Update collection_add.rs
* Update community.rs
* Update update.rs
* Update post_aggregates.rs
* Update update.rs
* Update comment.rs
* Update code_migrations.rs
* Update registration_application_view.rs
* Update update.rs
* Update ban_person.rs
* Update community.rs
* Update delete.rs
* Update delete.rs
* Update delete.rs
* Update person_aggregates.rs
* Update save_settings.rs
* Update distinguish.rs
* Update mark_read.rs
* Update site_aggregates.rs
* Update create.rs
* Fix
* rerun ci
* Update comment.rs
* rerun ci
* Update create.rs
* Update create.rs
* Update post_view.rs
* rerun ci
* Update undo_delete.rs
* rerun ci
2023-08-08 11:41:41 +02:00
dullbananas
a47b12bbde
Reduce amount of columns selected ( #3755 )
...
* PostAggregatesNotInPost
* CommentAggregatesNotInComment
* CommunityPersonBanAdditionalInfo (partial)
* Revert "CommunityPersonBanAdditionalInfo (partial)"
This reverts commit 158f7f0cd9a07392fb1f457ac43c8d7c57e4190d.
* Replace some nullable parts of selection with id::nullable().is_not_null()
* CommunityFollower::select_subscribed_type
* WithoutId
* Add WithoutId derives
* Update Cargo.toml
* rerun ci
* Fix syntatx errors
* rerun ci
* Add missing "|" in private_message_report_view.rs
* rerun ci
* cargo fmt
* rerun ci
* Only derive WithoutId for Community with "full" feature
* rerun ci
* Fix attribute filtering in WithoutId macro
* rerun ci
* Update without_id.rs
* rerun ci
* Update without_id.rs
* rerun ci
* Fix errors
* rerun ci
* cargo fmt
* Fix errors
* rerun ci
* Move WithoutId to lib.rs
* rerun ci
* Remove macro_use for paste
* rerun ci
* Update comment_reply_view.rs
* rerun ci
* Update registration_application_view.rs
* rerun ci
* Revert "Update registration_application_view.rs"
This reverts commit 2e98e4bb8385b4630ed2d1dfdd8da9a35c0126b2.
* Revert "Update comment_reply_view.rs"
This reverts commit 857bf9f5a2413ff0e6e6c95e1157e8ce6bf9c0c3.
* Revert "Remove macro_use for paste"
This reverts commit 13247279ed9090f2d3c5c6525b9611529217d605.
* Revert "Move WithoutId to lib.rs"
This reverts commit 0c23e5213be1366bb64029e2007e97194e126676.
* Revert "Fix errors"
This reverts commit a283d155e5622bba0b6df8b07649fc246df8bb77.
* Revert "cargo fmt"
This reverts commit 36a5210352809b3ca417ec3b869ae4baaca17e16.
* Revert "Fix errors"
This reverts commit c9102c14f466a5d6175732625e74183579ee2be5.
* Revert "Update without_id.rs"
This reverts commit 19adb2fcc805f92f6720a439f3b2c80a2b866938.
* Revert "Update without_id.rs"
This reverts commit e26107a2fe30cc2ec81797830e3a34a1676619e4.
* Revert "Fix attribute filtering in WithoutId macro"
This reverts commit acaa4902b0e7e33205c5d287cd22b83732a1a401.
* Revert "Only derive WithoutId for Community with "full" feature"
This reverts commit de0e9c6fdc3c9344998d9d72e5e361a7f009c829.
* Revert "cargo fmt"
This reverts commit 5e1bd1ce58e997e9431f212fd2ee0283faaf6da3.
* Revert "Add missing "|" in private_message_report_view.rs"
This reverts commit c7ae9f1cd50dfead0fbc363d93692f82274ff870.
* Revert "Fix syntatx errors"
This reverts commit d942f099de8128b5a02fe74f5af43a4453a06350.
* Revert "Update Cargo.toml"
This reverts commit 23cdb6f6d3df6d2db06173f066c117a0c96dd8e1.
* Revert "Add WithoutId derives"
This reverts commit 06006d6ad338e946410962f4276f67fe5096ad5a.
* Revert "WithoutId"
This reverts commit 5e86922b0fd5bf08d114a8eee5d1e10b2ea534ee.
* Revert "CommentAggregatesNotInComment"
This reverts commit 603aede7cecacd246664f7f3f0047202f80d9938.
* Revert "PostAggregatesNotInPost"
This reverts commit 1ee3fcaeab8705e4e0e849ae6b93b45716aa9cc0.
* Restore original position of options.saved_only filter
* rerun ci
* Update post_view.rs
* rerun ci
2023-08-08 11:41:10 +02:00
Piotr Juszczyk
2ad3450004
Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 ( #3523 )
...
* Allow filtering posts and comments by whether they were liked/disliked
* Switch to 2 args - liked_only, disliked_only - taking bools
* Make liked_only and disliked_only Option<bool>
* Fix unrelated is_profile_view compilation error
2023-08-08 11:40:28 +02:00
Alex Lavallee
f9c2ba1cfa
Allow filtering PMs by sender ( #3770 )
...
* Allow filtering PMs by sender
* Fix retreiving own messages when filtering pm creator id
* Add tests
* Undo rename
* Fix PM tests
* Fix formatting for PMs
* Fix PM test formatting
* Rename PM creator_id field
* Fix PM formatting
2023-08-08 11:07:41 +02:00
91c024fd98
Revert "Version 0.18.4-rc.2"
...
This reverts commit 48466b6826
.
2023-08-07 17:12:09 +02:00
48466b6826
Version 0.18.4-rc.2
2023-08-07 17:09:10 +02:00
maxime.io
d81fb987aa
Fix sanitize_html whitespaces ( #3829 )
2023-08-07 14:22:52 +02:00
bed9474cf0
Revert "Attempt to fix CI building wrong commits ( #3830 )"
...
This reverts commit 5e9930bdcc
.
2023-08-07 13:19:07 +02:00
dullbananas
5e9930bdcc
Attempt to fix CI building wrong commits ( #3830 )
...
* Attempt to fix CI building wrong commits
* Update .woodpecker.yml
* Update .woodpecker.yml
2023-08-07 06:40:50 -04:00
Dessalines
57cb5637fc
Fix ordering when doing a comment_parent type list_comments
( #3823 )
...
* Fix ordering when doing a comment_parent type GetPost.
* Fix missing options.
2023-08-07 11:11:07 +02:00
66ac8100d9
Remove unused db view options ( #3787 )
...
* Remove unused db view options
* fix tests
* ci
2023-08-04 11:36:36 -04:00
2bb24c2859
Remove form_id params ( #3812 )
2023-08-04 09:22:43 -04:00
Maarten Vercruysse
da031a4ce2
Update QUESTION.yml, remove UI ( #3807 )
2023-08-03 05:12:21 -04:00
Dessalines
70fae9d68d
Fixing broken SQL migration formatting. ( #3800 )
...
* Fixing SQL format.
* Fixing clippy lints.
* Fixing clippy lint 2.
2023-08-03 11:07:35 +02:00
2d0f77af59
Dont use sha hash for password reset token ( fixes #3491 ) ( #3795 )
2023-08-02 13:02:53 -04:00
27be1efb74
Rewrite remaining federation actions, get rid of PerformCrud trait ( #3794 )
...
* Rewrite ban actions
* Rewrite delete/remove actions
* Rewrite remove/delete community
* Rewrite report actions
* Rewrite feature/lock post
* Rewrite update community actions
* Rewrite remaining federation actions
* Get rid of PerformCrud trait
* clippy
2023-08-02 12:52:41 -04:00
Dessalines
be1389420b
Adding SQL format checking via pg_format
/ pgFormatter ( #3740 )
...
* SQL format checking, 1.
* SQL format checking, 2.
* SQL format checking, 3.
* SQL format checking, 4.
* SQL format checking, 5.
* Running pg_format
* Getting rid of comment.
* Upping pg_format version.
* Using git ls-files for sql format check.
* Fixing sql lints.
* Addressing PR comments.
2023-08-02 12:44:51 -04:00
RocketDerp
b4380cb548
Do not hide read posts when it is a user profile view ( #3791 )
2023-08-02 12:31:28 -04:00
58388f2ce8
Only run slow CI checks for actual code changes (attempt 2) ( #3759 )
...
* Only run slow CI checks for actual code changes (attempt 2)
* use when path include
* change rust
* update
* x
* y
* zsad
* remove println
* fmt
* readme
* Revert "readme"
This reverts commit d58b6ad9731d8c6009d8680d0126d9e9f0af3103.
* ci
* gitmodules
2023-08-02 12:29:21 -04:00
Louis GERARD
7bc64ab91a
Remove follow community traits ( #3737 )
...
* chore(FollowCommunity): remove Perform and Send Activity traits
* chore(FollowCommunity): avoid fetching community and person from db
2023-08-02 11:32:16 +02:00
dullbananas
91834d0d21
Default imprementations for read and delete in Crud trait ( #3707 )
...
* h
* Start doing stuff
* Default impl for Crud::read
* Simplify Crud::read lifetimes
* fmt
* Stuff
* Stuff
* Successfully make default read implementation work
* Restore Person::read
* Clean up default Crud::read and rename 'query2
* Replace filter with find
* Attempt default Crud::create
* Change Crud to Crud<'a> (won't compile)
* Revert "Change Crud to Crud<'a> (won't compile)"
This reverts commit 7ed20f5f713600bd48c85aad0848d8dbaae56503.
* Default Crud::delete
* Remove Crud::delete definitions that match default
* Remove commented Site::read
* Insert trait
* Revert "Insert trait"
This reverts commit 9d780c24035d3a9fb12968d3009a28724046dc3a.
* Use non-borrowed forms
* Revert "Use non-borrowed forms"
This reverts commit d2dd4425634b54ef105aab44f1c37cc10a32491e.
* Revert "Revert "Change Crud to Crud<'a> (won't compile)""
This reverts commit 25a27165a8ef56495e9f605ac15c9924b101d1bf.
* Fix lifetime for everything except Crud::delete
* Fix Crud::delete
* Add comment about futures
* Attempt Crud::create
* Attempt separate CrudBounds
* Revert "Attempt separate CrudBounds"
This reverts commit 1b4ca321c3d2a1d045e2f4c542c593582e9c6d80.
* Try to fix Crud::create
* Move lifetime parameters to associated types
* Revert "Move lifetime parameters to associated types"
This reverts commit af1bc858ce5e1dacddc4bbded2da7e4b7237e237.
* Revert "Try to fix Crud::create"
This reverts commit eec238496c38127cbf3d542b7cfd57ec55622d1f.
* Revert "Revert "Attempt separate CrudBounds""
This reverts commit 1ec33ce5022c58a5ad079ed7f5c220fafe5f0a5f.
* Revert "Attempt separate CrudBounds"
This reverts commit 1b4ca321c3d2a1d045e2f4c542c593582e9c6d80.
* Revert "Attempt Crud::create"
This reverts commit 47e8071b6826f27e2a562680b4948c37dffa68cb.
* Revert "Add comment about futures"
This reverts commit b266b1465393995b3be51d5ba207d5249560884f.
* Revert "Fix Crud::delete"
This reverts commit 3abcce2eec55208993dd9c7c3e51cff83412d15a.
* Revert "Fix lifetime for everything except Crud::delete"
This reverts commit c1ad7a161bbc8495dbfb8b52073f35ae88519da6.
* Revert "Revert "Revert "Change Crud to Crud<'a> (won't compile)"""
This reverts commit 3129cd0fc302f34bc0aad59987b9d0eb1139076c.
* Clean up
* Update site.rs
2023-08-01 10:34:10 -04:00
d82194cfe9
Rewrite some federation actions to remove Perform/SendActivity (ref #3670 ) ( #3758 )
2023-08-01 15:53:36 +02:00
RocketDerp
05a7fced65
Enhanced testing of comments. Validate reply notifications, mentions ( #3686 )
...
* shared.ts first test of getReplies
* comment testing now validates reply notifications and mentions, some code comment cleanup in other functions
* comments revised
* first use of getUnreadCount in testing
* test notification of new comment replies, clarify usage of getReplies
* killall moved earlier in bash script
* api-test jest run does not need directory prefix, make consistent with other jest runs
* do not put my testing system password into script
* fix, killall exits script when no process found
* killall now moved to parent script to release locks before database create
* need to run killall a second time, before database drop
* first use of getReplies getPosts saveUserSettings
* accidental duplication of functions, removed
* try to sync shared library with main
* Nutomic feedback: Better to rename the var instead of putting a comment which can easily get outdated.
* Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. (#3761 )
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
* Fix fetch instance software version from nodeinfo (#3772 )
Fixes #3771
* remove unused code, revert killall change
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: figure-0e <133478007+figure-0e@users.noreply.github.com>
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
Co-authored-by: Denis Dzyubenko <denis@ddenis.info>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-08-01 09:14:40 -04:00
Denis Dzyubenko
55e383ae38
Fix fetch instance software version from nodeinfo ( #3772 )
...
Fixes #3771
2023-08-01 10:55:28 +02:00
figure-0e
6ed2ddf76d
Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. ( #3761 )
...
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
2023-08-01 10:40:42 +02:00
963d04b352
Revert "Only run slow CI checks for actual code changes ( #3750 )"
...
This reverts commit a34e0d477e
.
2023-07-28 22:44:45 +02:00
543bd99900
Update CODEOWNERS ( #3748 )
2023-07-28 11:16:18 -04:00
39752fa096
Delete migrations_testing folder ( #3751 )
...
Its completely unused as far as I can see
2023-07-28 11:14:26 -04:00
e365d48769
Move entry from .rgignore to .gitignore ( #3752 )
...
rg command respects gitignore, and sql dumps should be ignored by
git as well. So theres no reason to have a separate file.
2023-07-28 11:11:18 -04:00
37998b3398
Rewrite some API handlers to remove Perform trait ( #3735 )
...
* Rewrite some API handlers to remove Perform trait
* Convert CreateComment
* ci
2023-07-28 10:39:38 -04:00
Dessalines
db76c5b7ff
Adding 0.18.3 Release notes. ( #3753 )
2023-07-28 16:33:45 +02:00
a34e0d477e
Only run slow CI checks for actual code changes ( #3750 )
...
* Only run slow CI checks for actual code changes
Its a waste of time to compile Rust and run tests when only
something like the readme was changed.
* also make cache restore/rebuild conditional
* remove unused condition
2023-07-28 09:33:23 -04:00
0e6fb08284
Restore markdown quotes after sanitize ( #3708 ) ( #3749 )
2023-07-28 08:23:46 -04:00
dullbananas
9a5a13c734
Use same table join code for both read and list functions ( #3663 )
...
* Try stuff
* Revert "Try stuff"
This reverts commit 3da5f83a8b4928368bf58e0061091c270259a226.
* Revert "Revert "Try stuff""
This reverts commit 178bd43cac8c7674d30d2c285ed47ca0493ad659.
* Revert "Revert "Revert "Try stuff"""
This reverts commit b9f9a2316e7cd37082319608c606a1c7db057206.
* Revert "Revert "Revert "Revert "Try stuff""""
This reverts commit ccd498dd7228050ae05d2022e9106034fd4132f8.
* Try more stuff
* Add queries function
* Simplify queries function
* Move aliases to db_schema
* Revert "Move aliases to db_schema"
This reverts commit 69afed05c1807c3fef8d5b5872546fa22e60b4d0.
* Add ReadFuture and ListFuture
* Refactor queries function and add Queries struct
* Box futures in Queries::new
* Use from_tuple
* Add comment_view::queries and improve comment_report_view::queries
* Add local_user_view::queries
* Add post_report_view::queries
* Ad post_view::queries
* Add private_message_report_view::queries
* private_message_view, registration_application_view
* Use 'a in BoxedQuery
* comment_reply_view, community_view
* Change aliases to inline module
* person_mention_view
* person_view
* Use separate community_person_ban joins instead of including boolean literal in join-on clause
* Fix comment_view
* rerun ci
2023-07-28 10:36:50 +02:00
phiresky
e315092ee3
remove n^2 part of person triggers, improve community aggregate trigger ( #3739 )
...
* remove n^2 part of person triggers, improve community aggregate trigger
* comment out comment_score tests since previously they only accidentally succeeded
* empty
2023-07-27 23:36:51 +02:00
phiresky
1253a2a0d5
remove performance-problematic and buggy duplicate site aggregates ( #3732 )
2023-07-27 23:35:53 +02:00
d909f3455d
Change readme installation link ( #3736 )
...
Replaces https://github.com/LemmyNet/lemmy/pull/3551
2023-07-27 09:42:52 -04:00
RocketDerp
21a87ebaf2
Federation tests replication round1 - demonstrate absent replication of comment deletes ( #3657 )
...
* more robust test of unlike a comment, confirm replication to instance downstream from community home
* more robust 'delete a comment' test, confirm replication
* Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report
* typo and actually have Gamma comment check use gamma, not alpha
* prepare-drone-federation-test.sh has some more echo output and note about the LEMMY_DATABASE_URL format (#3651 )
* Add http cache for webfingers (#3317 )
* Add http cache for webfingers
* Remove the outgoing cache middleware & adjust the cache headers directive
* Use 1h & 3day cache header
* Update routes and adjust the cache headers location
* revert apub caching
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
* Rewrite activity lists to fix delete federation (fixes #3625 )
* Revert "typo and actually have Gamma comment check use gamma, not alpha"
This reverts commit 7dfb6ee0f4885da3a2d10316422f5b510772806c.
* Revert "Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report"
This reverts commit 7bd3b20ae08a64324029491ddb3ce4295ba16787.
* prettier TypeScript
* revised comments, as ResolveObject isn't using routine replication
* fmt
* fix api tests
* remove comment
---------
Co-authored-by: cetra3 <cetra3@hotmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-07-27 06:17:40 -04:00
Bao
2d7b416652
Omit local instance from federated instances list ( #3712 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2023-07-27 12:12:18 +02:00
phiresky
9bfa86d162
add trigram index to search ( #3719 )
...
* add trigram index to search
* add community index
2023-07-27 12:11:00 +02:00
3471f3533c
Sanitize html ( #3708 )
...
* HTML sanitization in apub code
* Sanitize API inputs
* fmt
* Dont allow html a, img tags
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-26 14:01:15 -04:00
biosfood
2de994797e
Add moderator view parameter to list posts ( #3176 )
...
* add option to only show posts from moderated communities
* rename moderated_only to moderator_view and show blocked users in moderator view
* add test for moderator view
* bump lemmy-js-client version for moderation view tests
* fix yarn lockfile
* retry build
* Delete logfile
* retry checks
* remove unused select statement from list posts
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-26 13:51:11 -04:00
Pavlos Smith
c890797b37
Add controversial ranking ( #3205 )
...
* Added controversy rank property to posts and comments, and ability to sort by it
* Triggers instead of schedules tasks, integer -> double, TODO: comments don't seem to get updated with floats, divide SortTypes
* Created PersonSortType
* PersonSortType::MostComments case
* Removed unused PartialOrd trait
* Added new person sort type mappings
* SortType -> PersonSortType
* fixes
* cargo fmt
* fixes after merge with main
* Fixed bug in controversy rank trigger, removed TopX sorts from PersonSortType and added CommentScore instead
* Uncovered enum case
* clippy
* reset translation changes
* translations
* translations
* Added additional hot ordering on controversial posts and comments
* featured local and featured community added to controversy rank index, additional order_by removed (?), added post_score and post_count to PersonSortType
* Woodpecker rerun
* cargo fmt
* woodpecker rerun
* fixed controversy_rank order
* fix
* Readded migration as latest, removed second update statement for setting controversy rank
2023-07-26 13:07:05 -04:00
marsara9
dc4572460e
Make resolve_object not require auth #3685 ( #3716 )
...
* Resolves issue #3685
If user isn't authenticated with resolve_object, only allow a local search instead of possibly making an http request.
* Making sure to validate auth before doing a potential remote lookup.
2023-07-26 12:17:42 -04:00
afac3ee7ff
Skip fragile API tests ( #3723 )
...
* Skip fragile API tests
These tests fail very often for no reason, eg in #3712 and #3696 .
Better to disable them until they can be fixed.
* killall -s1
2023-07-26 12:15:18 -04:00
Domenic Horner
f9351b6512
UI Settings - Blur NSFW & Auto Expand ( #3377 )
...
* add new flag to api
* add new ui settings for local user
* remove extraneous def
* add props to application reg.
* fix clippy updated these
* re-order db schema entries
* remove dupe
* update lemmy sdk
* update lemmy js client
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-07-26 07:53:45 -04:00
dullbananas
9b123f45ec
Enable gzip for reqwest ( #3696 )
...
This will reduce bandwidth used by federation
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-26 12:22:14 +02:00
Into the V0id
cf2229d665
Dont authenticate user after successful password reset #3714 ( #3715 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-25 13:33:02 -04:00
Freakazoid182
9a1f9aad45
detailed error message for blocked domains ( #3698 ) ( #3701 )
...
* detailed error message for blocked domains (#3698 )
* Pass the domain as an error param
Not formatting the error message to support i18n
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
2023-07-25 13:26:54 -04:00
Ben Wyatt
95e758e707
Bump version of dependency "webmention" ( #3711 )
...
Webmention .4->.5 bumps a few internal dependencies that needed to be upgraded
2023-07-25 13:01:13 -04:00
phiresky
3b09d8c882
prevent ordering by comment path without post filter ( #3717 )
2023-07-25 12:46:00 -04:00
asimons04
13a866aeb0
Update Dockerfile to run process as non-privileged user. ( #3709 )
2023-07-24 09:51:51 -04:00
102124b6d2
Change logic for determining comment default language ( fixes #3451 ) ( #3672 )
2023-07-21 09:08:25 -04:00
Joel Beckmeyer
ea7f83c4dc
disable rustfmt feature on rosetta-build ( #3679 )
2023-07-21 11:50:47 +02:00
Dessalines
e17f0097ff
Fix federation test errors with new lemmy-js-client ( #3678 )
2023-07-21 11:47:56 +02:00
Dessalines
417c4d2311
Adding diesel migration check. Fixes #3676 ( #3677 )
...
* Adding diesel migration check. Fixes #3676
* Fixing prettier.
2023-07-21 11:46:10 +02:00
Dessalines
623d81139e
Make sure comments are sorted by hot_rank, then score. ( #3667 )
2023-07-21 11:44:47 +02:00
ccc122100e
Fix process shutdown ( #3673 )
...
I noticed that stopping the Lemmy process with ctrl+c wasnt working
because the activity channel isnt properly closed. This is now fixed.
Later we should also move the channel from static into LemmyContext,
Im not doing that now to avoid conflicts with #3670 .
2023-07-20 11:36:48 -04:00
1a164a649e
Ignore errors when fetching community mods ( fixes #3460 ) ( #3674 )
2023-07-20 11:34:07 -04:00
3753a3bf54
Upgrade activitypub library to 0.4.6 ( fixes #3222 ) ( #3675 )
2023-07-20 11:33:19 -04:00
Sander Saarend
b511c2e6cb
Denormalize community_id into post_aggregates for a 1000x speed-up when loading posts ( #3653 )
...
* Denormalize community_id into post_aggregates for a 1000x speed-up when loading posts
* Remove unused index
* Add creator_id to post_aggregates
* Use post_aggregates as main table for PostQuery
* Make post_aggregates the main table for PostView
* Reformat SQL
2023-07-20 11:13:21 -04:00
Dessalines
ced3aa5bd8
Fixing hot_ranks and scores to append a published sort. ( #3618 )
...
- #3428
2023-07-20 16:44:23 +02:00
047db9ac85
Handle displaying of deleted and removed posts/comments ( fixes #2624 ) ( #3286 )
...
* Handle displaying of deleted and removed posts/comments (fixes #2624 )
* remove duplicate test
* fix tests
* no show_removed/show_deleted
* merge
* partially fix tests
* fix tests
* clippy
* fix tests
* get rid of build_post_response_deleted_allowed
2023-07-20 16:36:16 +02:00
Sander Saarend
d7051c40f8
Use local_site.default_post_listing_type as the initial default listing type for new users ( #3666 )
2023-07-19 11:04:43 -04:00
5cd4c6c586
Dont publish releases to crates.io ( fixes #3272 ) ( #3664 )
...
This is not needed anymore as from scratch installation now uses
`git clone` instead of `cargo install`.
https://github.com/LemmyNet/lemmy-docs/pull/241/files
2023-07-19 10:25:46 -04:00
5d23ef960e
Remove SendActivity and Perform traits, rely on channel ( #3596 )
...
* Remove SendActivity and Perform traits, rely on channel
These traits arent necessary anymore now that websocket is removed.
Removing them allows us to use normal actix http handler methods
which are much more flexible, and allow using different middlewares
as well as setting response attributes.
* compiling and create post federating
* clippy
* rename methods, join outgoing activities task
* fix api tests
* no unwrap
* conditional compile
* add back getrandom
* make crates optional
* fmt
2023-07-19 09:49:41 -04:00
Sander Saarend
77a8e3b897
Don't panic when scheduled tasks can't connect to database ( #3634 )
...
* Don't panic when scheduled tasks can't connect to database
* Use map & map_err instead of match
* Empty commit for Woodpecker re-run
2023-07-19 15:00:44 +02:00
cetra3
1f21bdb2f9
Add http cache for webfingers ( #3317 )
...
* Add http cache for webfingers
* Remove the outgoing cache middleware & adjust the cache headers directive
* Use 1h & 3day cache header
* Update routes and adjust the cache headers location
* revert apub caching
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-07-19 06:09:04 -04:00
RocketDerp
2adf7d5008
prepare-drone-federation-test.sh has some more echo output and note about the LEMMY_DATABASE_URL format ( #3651 )
2023-07-19 10:28:10 +02:00
RocketDerp
38c6210912
Post remove delete federation outbound fix0 ( #3613 )
...
* add new function build_post_response_deleted_allowed
* PostDelete uses new function build_post_response_deleted_allowed
* RemovePost uses new build_post_response_deleted_allowed function
* code comments about mod or admin flag having other use
* reformat "cargo +nightly fmt --all"
2023-07-17 11:07:45 -04:00
Ikko Eltociear Ashimine
0ada7dc889
Add Japanese README ( #3620 )
...
* Add Japanese README
* add translate
* fix link
* Update README.ja.md
2023-07-17 11:05:14 -04:00
cetra3
9256895635
Cache & Optimize Woodpecker CI ( #3450 )
...
* Try using drone cache plugin
* Try another path
* Include volume
* Fix formatting
* Include fmt
* Exclude cargo dir from prettier
* Don't override cargo
* Just do check
* Add cache key
* Use different cache plugin
* Add clippy
* Try minio
* Add quotes
* Try adding secrets
* Try again
* Again
* Use correct secret formation
* Add back clippy
* Use secret for the root bucket name
* Try drone cache instead
* Add region
* Add path-style option
* Include cargo clippy
* Include everything again
* Fix formatting
* Don't run clippy twice
* Add `allow` statements for tests to pass
* Adjust endpoint to be a secret
* Fix prettier
* Merge & fix tests
* Try to restart the woodpecker test
* Change the ENV var name
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-17 11:04:14 -04:00
dullbananas
88215bfbc9
Remove TypedBuilder from db_views and db_views_actor ( #3637 )
...
* change pool fields to parameters for list
* remove my_person_id and admin fields
* Change recipient id to list param
* Remove TypedBuilder from db_views and db_views_actor
2023-07-17 12:20:25 +02:00
Sander Saarend
6688a8a5d4
Optimize hot rank updates ( #3617 )
2023-07-17 11:05:55 +02:00
e9e76549a8
Split activity table into sent and received parts ( fixes #3103 ) ( #3583 )
...
* Split activity table into sent and received parts (fixes #3103 )
The received activities are only stored in order to avoid processing
the same incoming activity multiple times. For this purpose it is
completely unnecessary to store the data. So we can split the
table into sent_activity and received_activity parts, where
only sent_activity table needs to store activity data. This should
reduce storage use significantly.
Also reduces activity storage duration to three months, we can reduce
this further if necessary.
Additionally the id columns of activity tables are removed because
they are completely unused and risk overflowing (fixes #3560 ).
* address review
* move insert_received_activity() methods to verify handlers
* remove unnecessary conflict line
* clippy
* use on conflict, add tests
2023-07-14 11:17:06 -04:00
phiresky
2938b50908
work around race condition on community fetch ( #3414 )
2023-07-14 14:57:36 +02:00
Dessalines
164f4b93d9
Make lemmy_api_common
wasm-compatible ( #3587 )
...
* Fixing lemmy_api_common optionals
* Adding taplo for .toml files.
* Versioning taplo in woodpecker.
* Addressing PR comments.
2023-07-14 10:45:18 +02:00
39f28c1a40
Add dev profile to strip symbols and disable debug info (ref #3610 ) ( #3611 )
...
* Add dev profile to strip symbols and disable debug info (ref #3610 )
This significantly speeds up builds:
- with strip symbols and debug 0: 43s
- without: 169s
* add comment, no strip symbols
2023-07-13 14:50:17 -04:00
7d8cb93b53
Check for dead federated instances ( fixes #2221 ) ( #3427 )
...
* Check for dead federated instances (fixes #2221 )
* move to apub crate, use timestamp
* make it compile
* clippy
* use moka to cache blocklists, dead instances, restore orig scheduled tasks
* remove leftover last_alive var
* error handling
* wip
* fix alive check for instances without nodeinfo, add coalesce
* clippy
* move federation blocklist cache to #3486
* unused deps
2023-07-13 16:12:01 +02:00
Manuel Bleichner
c0b7865896
Fix wrong SMTP port when TLS is being used ( fixes #3574 ) ( #3607 )
...
Co-authored-by: Manuel Bleichner <manuel.bleichner@bvu.de>
2023-07-13 13:10:14 +02:00
Nina Blanson
40ff77eee2
Add workaround for #3102 until cross-compile work complete ( #3472 )
...
* Add workaround for #3102 until cross-compile work complete
* Minor cleanup
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-13 13:02:08 +02:00
Jason Grim
8992965c0c
Updated Lemmy Matrix Support link ( #3599 )
2023-07-13 12:31:35 +02:00
nixoye
6310f55984
Update RELEASES.md ( #3593 )
...
replaced the confusing api_key line that's commented out with the line that is now used in the new config.hjson in /lemmy-ansible/examples
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-12 10:48:49 -04:00
Simon Bordeyne
9b5e765364
Add infinite scroll user option ( #3572 )
2023-07-12 09:12:01 -04:00
c060546ffa
Use specific Rust nightly version for CI cargo fmt ( fixes #3467 ) ( #3577 )
...
* Use specific Rust nightly version for CI cargo fmt (fixes #3467 )
* fix
* fix
2023-07-12 11:15:28 +02:00
dullbananas
1d38aad9d3
Make functions work with both connection and pool ( #3420 )
...
* a lot
* merge
* Fix stuff broken by merge
* Get rid of repetitive `&mut *context.conn().await?`
* Add blank lines under each line with `conn =`
* Fix style mistakes (partial)
* Revert "Fix style mistakes (partial)"
This reverts commit 48a033b87f4fdc1ce14ff86cc019e1c703cd2741.
* Revert "Add blank lines under each line with `conn =`"
This reverts commit 773a6d3beba2cf89eac75913078b40c4f5190dd4.
* Revert "Get rid of repetitive `&mut *context.conn().await?`"
This reverts commit d2c6263ea13710177d49b2791278db5ad115fca5.
* Use DbConn for CaptchaAnswer methods
* DbConn trait
* Remove more `&mut *`
* Fix stuff
* Re-run CI
* try to make ci start
* fix
* fix
* Fix api_common::utils
* Fix apub::activities::block
* Fix apub::api::resolve_object
* Fix some things
* Revert "Fix some things"
This reverts commit 2bf8574bc8333d8d34ca542d61a0a5b50039c24d.
* Revert "Fix apub::api::resolve_object"
This reverts commit 3e4059aabbe485b2ff060bdeced8ef958ff62832.
* Revert "Fix apub::activities::block"
This reverts commit 3b02389abd780a7b1b8a2c89e26febdaa6a12159.
* Revert "Fix api_common::utils"
This reverts commit 7dc73de613a5618fa57eb06450f3699bbcb41254.
* Revert "Revert "Fix api_common::utils""
This reverts commit f740f115e5457e83e53cc223e48196a2c47a9975.
* Revert "Revert "Fix apub::activities::block""
This reverts commit 2ee206af7c885c10092cf209bf4a5b1d60327866.
* Revert "Revert "Fix apub::api::resolve_object""
This reverts commit 96ed8bf2e9dcadae760743929498312334e23d2e.
* Fix fetch_local_site_data
* Fix get_comment_parent_creator
* Remove unused perma deleted text
* Fix routes::feeds
* Fix lib.rs
* Update lib.rs
* rerun ci
* Attempt to create custom GetConn and RunQueryDsl traits
* Start over
* Add GetConn trait
* aaaa
* Revert "aaaa"
This reverts commit acc9ca1aed10c39efdd91cefece066e035a1fe80.
* Revert "Revert "aaaa""
This reverts commit 443a2a00a56d152bb7eb429efd0d29a78e21b163.
* still aaaaaaaaaaaaa
* Return to earlier thing
Revert "Add GetConn trait"
This reverts commit ab4e94aea5bd9d34cbcddf017339131047e75344.
* Try to use DbPool enum
* Revert "Try to use DbPool enum"
This reverts commit e4d1712646a52006b865a1fbe0dcf79976fdb027.
* DbConn and DbPool enums (db_schema only fails to compile for tests)
* fmt
* Make functions take `&mut DbPool<'_>` and make db_schema tests compile
* Add try_join_with_pool macro and run fix-clippy on more crates
* Fix some errors
* I did it
* Remove function variants that take connection
* rerun ci
* rerun ci
* rerun ci
2023-07-11 09:09:59 -04:00
dullbananas
73492af4b0
Shrink capacity in RateLimitStorage::remove_older_than
( #3536 )
...
* Shrink capacity in `RateLimitStorage::remove_older_than`
* Update rate_limiter.rs
* rerun ci
* rerun ci
* rerun ci
* Update rate_limiter.rs
2023-07-10 22:52:37 +02:00
Pawan Hegde
ef9dc5d0b6
Fix #3366 : Wrap plain-text error responses from the API in JSON ( #3559 )
...
* Fix #3366 : API does return plain HTML errors
* Fix Clippy errors
* Improve api response times by doing send_activity asynchronously (#3493 )
* do send_activity after http response
* move to util function
* format
* fix prometheus
* make synchronous federation configurable
* cargo fmt
* empty
* empty
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Updating `login.rs` with generic `incorrect_login` response. (#3549 )
* Adding v0.18.1 and v0.18.0 release notes. (#3530 )
* Update RELEASES.md (#3556 )
added instruction to find the location of your docker directory (especially useful for those who used ansible since they never had to setup docker manually)
* Use async email sender (#3554 )
* Upgrade all dependencies (#3526 )
* Upgrade all dependencies
* as base64
* Adding phiresky to codeowners. (#3576 )
* Error enum fixed (#3487 )
* Create error type enum
* Replace magic string slices with LemmyErrorTypes
* Remove unused enum
* Add rename snake case to error enum
* Rename functions
* clippy
* Fix merge errors
* Serialize in PascalCase instead of snake_case
* Revert src/lib
* Add serialization tests
* Update translations
* Fix compilation error in test
* Fix another compilation error
* Add code for generating typescript types
* Various fixes to avoid breaking api
* impl From<LemmyErrorType> for LemmyError
* with_lemmy_type
* trigger ci
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
* Only update site_aggregates for local site (#3516 )
* Fix #3501 - Fix aggregation counts for elements removed and deleted (#3543 )
Two bugs were found and fixed:
- previously elements removal and deletion were counted as two separate disappearances
- removing comments did not affect post aggregations
* Use LemmyErrorType also make error_type compulsory
* Add missing import for jsonify_plain_text_errors
* Fix formatting
* Trying to make woodpecker run again
---------
Co-authored-by: phiresky <phireskyde+git@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: rosenjcb <rosenjcb@gmail.com>
Co-authored-by: nixoye <12674582+nixoye@users.noreply.github.com>
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Sander Saarend <sander@saarend.com>
Co-authored-by: Piotr Juszczyk <74842304+pijuszczyk@users.noreply.github.com>
2023-07-10 22:44:14 +02:00
Piotr Juszczyk
9c2490d4f2
Fix #3501 - Fix aggregation counts for elements removed and deleted ( #3543 )
...
Two bugs were found and fixed:
- previously elements removal and deletion were counted as two separate disappearances
- removing comments did not affect post aggregations
2023-07-10 11:30:30 -04:00
Sander Saarend
651f2747ee
Only update site_aggregates for local site ( #3516 )
2023-07-10 11:20:39 -04:00
93225e5ddf
Error enum fixed ( #3487 )
...
* Create error type enum
* Replace magic string slices with LemmyErrorTypes
* Remove unused enum
* Add rename snake case to error enum
* Rename functions
* clippy
* Fix merge errors
* Serialize in PascalCase instead of snake_case
* Revert src/lib
* Add serialization tests
* Update translations
* Fix compilation error in test
* Fix another compilation error
* Add code for generating typescript types
* Various fixes to avoid breaking api
* impl From<LemmyErrorType> for LemmyError
* with_lemmy_type
* trigger ci
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-07-10 16:50:07 +02:00
Dessalines
b50634e2cf
Adding phiresky to codeowners. ( #3576 )
2023-07-10 16:20:40 +02:00
ff26bc21af
Upgrade all dependencies ( #3526 )
...
* Upgrade all dependencies
* as base64
2023-07-10 15:00:55 +02:00
dullbananas
934f72511e
Use async email sender ( #3554 )
2023-07-10 14:04:39 +02:00
nixoye
3dd2fd0f7f
Update RELEASES.md ( #3556 )
...
added instruction to find the location of your docker directory (especially useful for those who used ansible since they never had to setup docker manually)
2023-07-10 14:00:00 +02:00
Dessalines
9d52d8bd0b
Adding v0.18.1 and v0.18.0 release notes. ( #3530 )
2023-07-10 13:51:24 +02:00
rosenjcb
e7e60e0514
Updating login.rs
with generic incorrect_login
response. ( #3549 )
2023-07-10 07:27:38 -04:00
phiresky
b35757b429
Improve api response times by doing send_activity asynchronously ( #3493 )
...
* do send_activity after http response
* move to util function
* format
* fix prometheus
* make synchronous federation configurable
* cargo fmt
* empty
* empty
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-10 12:27:49 +02:00
0c82f4e660
Version 0.18.1
2023-07-07 09:24:49 -04:00
Dessalines
c208faf276
Revert "Make sure hot rank sorts for post and community filter by positive hot ranks. ( #3497 )" ( #3521 )
...
This reverts commit 6840fd64f9
.
2023-07-07 11:29:07 +02:00
phiresky
aa70325c11
Make hot rank not crash on future ( #3517 )
...
* make hot rank zero for future
* parallel safe
2023-07-07 11:27:47 +02:00
b3dfc3721f
Upgrade crossbeam-channel ( #3512 )
2023-07-06 14:21:11 -04:00
Dessalines
2a088cf023
Update prettier to 3.0.0 ( #3509 )
...
* Update prettier to 3.0.0
* Updating prettier dep.
* Explicity 3.0.0 version.
2023-07-06 15:10:38 +02:00
22cdcc6b60
Version 0.18.1-rc.10
2023-07-06 14:46:46 +02:00
phiresky
922ee6a230
improve admin and mod check to not do seq scans and return unnecessary data ( #3483 )
...
* improve admin and mod check
* fix clippy
* move admin index to existing code
* Revert "move admin index to existing code"
This reverts commit d0c58d5f4021e1775d0c1d30d8df6c7df87557c4.
* third attempt at the migration
* fix formatting
* rebuild
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-06 14:44:26 +02:00
00f9f79a44
Only allow http(s) scheme for urls (ref #3505 ) ( #3508 )
...
With this change only http(s) schemes are allowed for post.url
field. This is checked for incoming api and federation requests.
Existing posts in database which are sent to clients are not
checked. Neither does it check urls in markdown.
2023-07-06 08:29:51 -04:00
c12fedaf1b
Change security contact mail ( #3506 )
...
Old one isnt working apparently
2023-07-06 07:27:47 -04:00
Diamond
084f603745
Allow cross-origin requests ( #3421 )
...
Co-authored-by: pfg <pfg@pfg.pw>
2023-07-06 07:25:19 -04:00
Dessalines
6840fd64f9
Make sure hot rank sorts for post and community filter by positive hot ranks. ( #3497 )
...
* Make sure hot rank sorts for post and community filter by positive hot ranks.
- Context #2994
* Adding a comment.
2023-07-06 13:22:48 +02:00
Dessalines
ef11a6ca37
Fixes wrong community moderator ordering. ( #3495 )
2023-07-06 12:27:25 +02:00
ce1ffebeb0
Use fixed prettier version for CI ( #3507 )
...
3.0.0 was pushed to docker hub 2 hours ago, thats probably why
builds are breaking now.
2023-07-06 12:23:51 +02:00
phiresky
2158621bda
upgrade markdown-it to fix panic ( #3490 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-05 13:08:53 -04:00
phiresky
45b1a0d4fb
improve performance of community followers inbox query ( #3482 )
...
* improve performance of community followers inbox query
* nightly format
* force woodpecker to retry
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-05 11:50:26 -04:00
ebaf69bd70
Cache federation blocklist ( #3486 )
...
* Cache federation blocklist
* revert submodule change
2023-07-05 11:08:02 -04:00
Andrew Fields
1e99e8b9dc
Add Prometheus endpoint ( #3456 )
...
Add a server for serving Prometheus metrics. Include a configuration
block in the config file. Provide HTTP metrics on the API, along with
process-level metrics and DB pool metrics.
2023-07-05 13:25:19 +02:00
Dessalines
657c2e37c0
Adding a person.admin index, and featured_local/community indexes. ( #3479 )
2023-07-05 13:00:41 +02:00
Lemmus.org
ff47d97bd3
Add feature for enabling json logging ( #3462 )
2023-07-04 07:11:47 -04:00
Louis GERARD
85dab149a9
fix(posts/comments/search): return error on invalid community name ( #3418 )
2023-07-04 13:04:38 +02:00
Josephos
cdc5b47886
Improved validation of display names ( Fixes #3436 ) ( #3437 )
...
* Fixed validation of display names
Fixed validation of display names: reject names beginning with invisible unicode characters.
* Formatting
Formatting fix.
* Expanded list of forbidden Unicode characters. Validation now checks for disallowed characters anywhere in the name.
* Formatting
* Added a comment detailing source of the list of invisible chars.
2023-07-04 12:41:58 +02:00
Dessalines
8bcf2ea7c9
Fixing clippy. ( #3471 )
2023-07-04 12:15:27 +02:00
Piotr Juszczyk
bf62fbe644
Remove not needed anymore http-signature-normalization-actix dependency ( #3458 )
2023-07-04 12:14:37 +02:00
Dessalines
f0e487f18a
300 comment limit. ( #3306 )
...
* 300 comment limit.
* Another fix.
2023-07-03 18:02:57 -04:00
7a04971ecd
Version 0.18.1-rc.9
2023-07-03 17:16:48 -04:00
JP Moresmau
bbca6ef6dc
Do not decrement comment score twice when removing then deleting. ( #3196 )
...
Fixes #3004
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 14:13:53 -04:00
perillamint
696cca4ce4
Remove excessive content_type header configuration ( #3470 )
2023-07-03 13:43:45 -04:00
Dessalines
935b0bf048
Adding rest of community sorts. Fixes #3374 ( #3376 )
...
* Adding rest of community sorts. Fixes #3374
* Addressing PR comments.
2023-07-03 13:09:15 -04:00
e1494d4683
Dont compare db string errors ( fixes #1393 ) ( #3424 )
...
* Dont compare db string errors (fixes #1393 )
* cargo fmt
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 11:59:49 -04:00
Simon Bordeyne
b8ee9315bc
Add Open links in new tab setting ( #3318 )
...
* Add Open links in new tab setting
* reorder because it fixes tests ?
2023-07-03 11:10:25 -04:00
David BELEY
efe98158c0
Fix awesome-lemmy owner ( #3469 )
2023-07-03 16:44:55 +02:00
David BELEY
050216eed9
Add awesome-lemmy to LemmyNet? ( #3413 )
...
* Add LemmyNet/awesome-lemmy
* Delete other apps/projects from README.md
2023-07-03 15:15:45 +02:00
cb91eedd24
Use serde(skip) instead of skip_serializing, add placeholder values ( #3362 )
...
* Use serde(skip) instead of skip_serializing
The latter breaks lemmy_crawler as the field is not included in
the Lemmy API, but is required when attempting to parse API responses.
Should only use serde(skip) to avoid this problem
* use option
* add placeholders
* no unwrap
2023-07-03 15:14:01 +02:00
6405761891
Mark follow as pending when subscribing to remote community ( fixes #3384 ) ( #3406 )
2023-07-03 12:03:20 +02:00
fc60b82f82
Fix formatting for latest nightly (#ref 3467)
2023-07-03 11:45:53 +02:00
3578dab67f
Remove PerformApub trait ( #3423 )
...
* Remove PerformApub trait
This is completely useless now that websocket is gone. In the future
I also plan to remove Perform and PerformCrud traits, but it will be
difficult to do that while still compiling crates in parallel.
* params need to use query
2023-07-03 11:01:41 +02:00
drumlinish
682ca55e0c
Fix quoting of max-file in docker-compose.yml ( #3442 )
2023-07-03 10:59:07 +02:00
phiresky
cb28af508d
don't strip, log trace if requested ( #3425 )
2023-06-30 09:32:43 -04:00
Lemmus.org
810762762f
Update federated posts to not cache sensitive images if not allow by local site ( #3253 )
...
* Update federated posts to not cache sensitive images if not allow by local site
* Refactor thumbnail match to simplify logic
2023-06-30 12:42:42 +02:00
Dominic Mazzoni
fcc010b5dc
Fix concatenation of audio captcha wav files ( #3350 )
...
* Fix concatenation of audio captcha wav files
* Log errors rather than crashing
* Return Result from captcha_as_wav_base64
* Change to return LemmyError
* Check for wav write error, format
* Remove unused import
* Rewrite to avoid clippy warnings
2023-06-30 12:36:38 +02:00
dullbananas
7d3894d5dd
Automatically manage database when running scripts/test.sh ( #3389 )
...
* Update .gitignore
* Create start-dev-db.sh
* Rename start-dev-db.sh to start_dev_db.sh
* Update .gitignore
* Update start_dev_db.sh
* Update start_dev_db.sh
* Update start_dev_db.sh
* Update start_dev_db.sh
* h
* Update test.sh
* Update start_dev_db.sh
* made it work
* Make test.sh work when run from scripts dir
2023-06-30 09:50:30 +02:00
3159eedd99
Version 0.18.1-rc.4
2023-06-29 10:45:59 -04:00
Dessalines
6c64cb5233
Fixing release script. ( #3398 )
...
* Fixing release script.
* Version 0.18.1-rc.2
* Removing cargo update from release script.
* Fixing topdir location.
2023-06-29 16:17:59 +02:00
Nick Shockey
0464c46d26
Added gitattributes to normalize all files to lf ( #3386 )
...
This makes it less annoying to build on windows/mac
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-29 10:16:11 +02:00
c216153dfb
Update activitypub-federation crate to 0.4.5 ( #3379 )
...
https://github.com/LemmyNet/activitypub-federation-rust/releases/tag/0.4.5
2023-06-28 12:58:23 -04:00
Sander Saarend
ec18fd9869
Fix cargo warnings ( #3397 )
2023-06-28 12:57:49 -04:00
c-andy-candies
ffc049078e
Fix missing sorting types ( #3370 )
...
* Fix missing sorting types
* Reordered sort_type_enum
2023-06-28 12:44:16 -04:00
Jan Klass
0f91759e4d
docs(api): Add api-common info on generating TypeScript bindings ( #3330 )
2023-06-28 11:25:46 +02:00
dullbananas
bef76630c5
Remove redundant calls to Iterator::collect
( #3365 )
...
* Remove redundant calls to `Iterator::collect`
* Update mentions.rs
* Add clippy lints and run fmt
* CI ran on the wrong commit again
2023-06-28 11:19:26 +02:00
e4b739320c
Run cargo update as part of release script ( #3369 )
...
To get newest dependency patches and get rid of yanked deps
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-27 08:59:58 -04:00
ad6f244b61
Version 0.18.1-rc.1
2023-06-27 08:14:46 -04:00
Nina Blanson
e63aa80c3a
Fixes #2900 - Checks slur regex to see if it is too permissive ( #3146 )
...
* Fixes #2900 - Checks slur regex to see if it is too permissive along with small validation organization
* Clean up variable names, add handler for valid empty string usecase
* Update tests
* Create validation function and add tests
* Test clean up
* Use payload value vs local site value to prevent stunlocking
* Remove println added while testing
* Fall back to local site regex if not provided from request
* Attempt clean up of flaky comment_view tests
* Pull in latest submodule
* Move application, post check into functions, add more tests and improve test readability
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-06-27 07:03:30 -04:00
Domenic Horner
d1d90af0eb
add new flag to api ( #3363 )
2023-06-27 06:45:26 -04:00
TKilFree
2aef6a5a33
feat: re-added captcha checks ( #3289 )
2023-06-27 06:38:53 -04:00
Sander Saarend
76a4513774
Limit password resets ( #3344 )
2023-06-27 11:20:53 +02:00
Dessalines
98482b1564
Fixing the release script. ( #3295 )
...
* Fixing the release script.
* Updating the submodules.
2023-06-27 10:28:56 +02:00
Sander Saarend
211e76dc27
Batch hot rank updates ( #3175 )
2023-06-27 10:13:51 +02:00
c-andy-candies
f5209fffc1
Feature add three six and nine months options backend ( #3226 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-26 15:03:35 -04:00
50efb1d519
Fetch community outbox and moderators in parallel ( #3360 )
...
This will speedup first time fetching of a remote community
2023-06-26 12:14:50 -04:00
8fbc630ce1
Remove networks from docker-compose.yml ( #3356 )
2023-06-26 12:10:38 -04:00
Simon Lundström
c9e9ff46fa
Item URL should point to post URL ( #3345 )
...
If the post is an URL post the item link should point to the URL of the
link that is being posted.
2023-06-26 15:11:16 +02:00
Otto Rottier
62c8ac1db5
Site Metadata: resolve relative URLs for embedded images/videos ( #3338 )
...
* Site Metadata: resolve relative URLs for embedded images/videos
* api_common: relax version requirement of `webpage` dependency
With this change we opt into next (non breaking) versions of webpage-rs
* cargo +nightly fmt
* Add tests for resolving absolute urls in SiteMetadata
2023-06-26 15:07:57 +02:00
dullbananas
b2a9d4a335
Use compression middleware ( #3343 )
2023-06-26 12:54:41 +02:00
73d2faa9f5
Remove another unused dev dependency
2023-06-26 12:46:44 +02:00
cetra3
9406c3ad2b
Adjust the config check to be a separate faster to compile binary ( #3313 )
2023-06-26 06:23:21 -04:00
a39e948b52
Remove unused actix_rt dependency
2023-06-26 12:14:47 +02:00
wiki-me
83ff9adee5
Add Liftoff to README.md ( #3357 )
2023-06-26 12:12:38 +02:00
perillamint
3d7d6b2530
Respond with Content-Type: application/activity+json
( #3353 )
...
As per ActivityPub specification, the return type should be
`application/activity+json`, not `application/json`.
2023-06-26 12:10:04 +02:00
anonion
01dc1efe77
Fix lemmy UI environment variable ( #3299 )
2023-06-26 06:07:22 -04:00
Peter Dave Hello
2f3d60a63b
Leave no apk cache in Docker image ( #3327 )
2023-06-26 11:59:02 +02:00
ddfa112e0b
Allow wildcard imports in schema.rs ( #3293 )
...
Dont mess with auto-generated code, this avoids problems with
clippy after running diesel commands
2023-06-26 11:18:29 +02:00
Scott
c5886404ef
Update DB local_user.theme type to text ( #3266 )
...
* Update local_user.theme type to text
* fix default value
* Undo auto generate changes
2023-06-26 10:53:04 +02:00
TKilFree
21d5349785
feat: allow all admins to purge content ( #3271 )
2023-06-26 10:47:39 +02:00
Neshura
203e35899e
Add separate Post check for is_valid_body_field ( #3263 )
...
* Add separate Post check for is_valid_body_field
* Modify is_valid_body_check for posts only
* Fix check var reinit in validation.rs
* Extra empty line to rerun woodpecker with changes
* Change Option to bool, add false to non-post calls
* Woodpecker trick.. again
* Probable rust_fmt fail fixed
* cargo_clippy changes
* Missing space between = and if
* Remove ; after body length checks
2023-06-26 10:47:01 +02:00
206789af67
Merge branch 'vijaykramesh_clear_deleted_posts_comments'
2023-06-26 10:45:49 +02:00
ce0cf0e41b
Remove DELETED_REPLACEMENT_URL
2023-06-26 10:45:37 +02:00
Sander Saarend
6b28f8c616
Add support for sslmode=require for diesel-async DB connections ( #3189 )
2023-06-26 10:45:22 +02:00
cetra3
d6b580a530
Remove actix_rt
& use standard tokio spawn ( #3158 )
...
* Remove `actix_rt` & use standard tokio spawn
* Adjust rust log back down
* Format correctly
* Update cargo lock
* Add DB settings
* Change name and update to latest rev
* Clean up formatting changes
* Move `worker_count` and `worker_retry_count` to settings
* Update defaults
* Use `0.4.4` instead of git branch
2023-06-26 10:45:22 +02:00
e4d78b0974
Version 0.18.0
2023-06-26 10:45:22 +02:00
3f6e9a7f23
Version 0.18.0-rc.8
2023-06-26 10:45:22 +02:00
Dessalines
37a47de3a8
Revert "feat: re-added captcha checks ( #3249 )" ( #3288 )
...
This reverts commit 8a086c8240
.
2023-06-26 10:45:22 +02:00
Dessalines
b6cd1bde8e
Fixing removed posts showing. Fixes #2875 ( #3279 )
...
* Fixing removed posts showing. Fixes #2875
* Fixing clippy.
2023-06-26 10:45:22 +02:00
Kresten Laust
aea5f6a38b
Reversed requirement question logic ( #3283 )
...
* Reversed requirement question logic
* Changed required state to 'true'
2023-06-26 10:45:22 +02:00
TKilFree
9537878519
feat: re-added captcha checks ( #3249 )
2023-06-26 10:45:22 +02:00
Sander Saarend
6d67f88603
Add support for sslmode=require for diesel-async DB connections ( #3189 )
2023-06-26 10:25:38 +02:00
cetra3
d7da911a48
Remove actix_rt
& use standard tokio spawn ( #3158 )
...
* Remove `actix_rt` & use standard tokio spawn
* Adjust rust log back down
* Format correctly
* Update cargo lock
* Add DB settings
* Change name and update to latest rev
* Clean up formatting changes
* Move `worker_count` and `worker_retry_count` to settings
* Update defaults
* Use `0.4.4` instead of git branch
2023-06-26 10:24:11 +02:00
63d3759c48
Version 0.18.0
2023-06-23 08:41:20 -04:00
cb3b9b1a66
Version 0.18.0-rc.8
2023-06-23 07:07:51 -04:00
Dessalines
1f1c0ad17a
Revert "feat: re-added captcha checks ( #3249 )" ( #3288 )
...
This reverts commit 8a086c8240
.
2023-06-23 07:02:05 -04:00
Dessalines
dce79b83bf
Fixing removed posts showing. Fixes #2875 ( #3279 )
...
* Fixing removed posts showing. Fixes #2875
* Fixing clippy.
2023-06-23 12:53:46 +02:00
Kresten Laust
39572e1c3e
Reversed requirement question logic ( #3283 )
...
* Reversed requirement question logic
* Changed required state to 'true'
2023-06-23 11:50:35 +02:00
TKilFree
8a086c8240
feat: re-added captcha checks ( #3249 )
2023-06-23 11:47:12 +02:00
Vijay Ramesh
418bca78e1
Merge branch 'main' into clear_deleted_posts_comments
2023-06-22 09:59:43 -07:00
60baebcb14
Version 0.18.0-rc.6
2023-06-22 08:55:08 -04:00
ffce66abb8
Update apub library to 0.4.4 ( #3258 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-22 08:35:12 -04:00
kartikynwa
4f2fb68d6b
Add migration to mark local communities as such ( #3257 )
2023-06-22 07:52:31 -04:00
08e25d0e63
Remove translation part from docs links ( #3260 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-22 07:46:37 -04:00
434beadb58
Use Rust 1.70 for Docker and CI ( #3265 )
2023-06-22 07:46:07 -04:00
ShittyKopper
862ceefc56
docker-compose: Add init to UI ( #3248 )
...
* docker-compose: Add init to UI
Prevents waiting 10 seconds to shutdown
* docker-compose: Update to version 3.7
2023-06-22 10:22:15 +02:00
Óliver García Albertos
985359918f
logger: Use forwarded instead of peer IP address ( #3223 )
2023-06-22 09:34:51 +02:00
Vijay Ramesh
0d576a8f23
Merge branch 'main' into clear_deleted_posts_comments
2023-06-21 13:35:37 -07:00
kartikynwa
ef3544bac4
Put /admin/purge routes before /admin routes ( #3244 )
2023-06-21 22:32:06 +02:00
Bnyro
c9d1fec117
docs: Add Lemoa to lemmy projects section ( #3247 )
2023-06-21 22:15:10 +02:00
Scott
da3e3b6d8a
Ensure site can only either be a private instance or federated when creating or editing site ( #3237 )
...
* Add site visibility validation
* Fix formatting
* linter changes
* Update error message to match existing check
* Remove existing check
---------
Co-authored-by: Scott Merchant <97430840+scottmerchant@users.noreply.github.com>
2023-06-21 22:14:12 +02:00
289052f261
Version 0.18.0-rc.5
2023-06-21 16:02:42 -04:00
Vijay Ramesh
4db65c191c
after 30 days post deletion, replace comment.content and post.body with 'Permanently Deleted'
2023-06-21 12:46:56 -07:00
Dessalines
d4f52b78b3
Trying to fix version again. ( #3246 )
2023-06-21 21:46:32 +02:00
Michał
4cdb9583e9
feat: allow overriding smtp_password with the LEMMY_SMTP_PASSWORD env var ( #3154 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 13:36:42 -04:00
3775418952
Version 0.18.0-rc.4
2023-06-21 08:05:15 -04:00
8fb4760e02
Dont publish to crates.io ( #3239 )
2023-06-21 07:57:01 -04:00
e3eda68147
Correct error messages if user registers with taken user/email ( #3093 )
...
* Correct error messages if user registers with taken user/email (fixes #2955 )
* exists
2023-06-21 05:26:07 -04:00
Dessalines
1ef095dd96
Fixing cross_post duplicates. Fixes #3233 ( #3234 )
2023-06-21 10:56:44 +02:00
JP Moresmau
a1beccf353
Add test to check reading and listing posts return my_vote ( #3215 )
2023-06-21 10:48:39 +02:00
dullbananas
45818fb4c5
Reduce memory usage of rate limiting ( #3111 )
...
* Reduce Vec allocations
* Optimize stuff
* Move embedded migrations to separate crate
* Revert "Move embedded migrations to separate crate"
This reverts commit 44b104997016ee2a1f2c0bb735b75e654666860d.
* clippy, fmt
* Shrink rate limit allowance to f32
* Initialize rate limit allowance directly
* Add removal of old rate limit buckets
* Improve readability
* Remove usage of is_okay_and for Rust 1.67 compatibility
* Add dhat-heap feature
* Fix api_benchmark.sh and add run_and_benchmark.sh
* Revert "Fix api_benchmark.sh and add run_and_benchmark.sh"
This reverts commit b4528e5b85dd3f13cea43d72ada9382200c8fc77.
* Revert "Add dhat-heap feature"
This reverts commit 08e835d487b983c44ce2570d8c396d570d426916.
* Manually revert remaining stuff
* Use Ipv6Addr in RateLimitStorage
* Shrink last_checked in RateLimitBucket to 32 bits
* Fix rate_limit::get_ip
* Stuff (#1 )
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Fix rate_limiter.rs
* Dullbananas patch 1 (#2 )
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Fix rate_limiter.rs
* Rate limit IPv6 addresses in groups
* Fmt lib.rs
* woodpicker trigger
* Refactor and comment `check_rate_limit_full`
* Add `test_split_ipv6`
* Replace -2.0 with UNINITIALIZED_TOKEN_AMOUNT
* Add `test_rate_limiter`
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 10:28:20 +02:00
Dessalines
b214d3dc00
Adding current domain from settings to CORs. ( #3231 )
2023-06-20 20:29:48 -04:00
Joel Beckmeyer
8179b0daf2
remove debugging println ( #3227 )
2023-06-20 14:20:20 -04:00
Dessalines
5ff221a2e4
Fixing comment_view unit tests. ( #3224 )
2023-06-20 14:14:08 -04:00
Sander Saarend
8ed3f3530e
Fix parameter ordering for new_report_subject string ( #3210 )
2023-06-20 11:24:04 -04:00
b37c30ffae
Move cors default to source code ( #3219 )
2023-06-20 11:19:03 -04:00
Dessalines
154a85cc36
Fixing tag deploys. ( #3216 )
...
* Fixing tag deploys.
* Fixing tag deploys 2.
* Try to comment build_args.
* Fixing tag deploys 3.
* Fixing build args again.
* Last fix.
2023-06-20 16:29:24 +02:00
Ivo Barros
4d160461ce
Feature add hours as sorting options backend ( #3161 )
...
* add hours as sorting options
* ran cargo +nightly fmt
* woodpicker trigger
2023-06-20 16:05:43 +02:00
kartikynwa
dc36d9ed89
Don't check verified email when an admin logs in ( #3209 )
...
Workaround for instance admins getting locked out when they turn on
the email verification requirement without having verified their
own email.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:52:21 -04:00
Andrew DeLisa
bfc0c0e7d3
fix: add CORS origin environment variable ( #3191 )
...
* fix: add CORS origin environment variable
* chore: formatting
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:29:38 -04:00
Joel Beckmeyer
06a3f9c5aa
make embedded pict-rs port configurable ( #3201 )
2023-06-20 13:07:18 +02:00
Dessalines
981c111567
Move connection creation into scheduler. ( #3120 )
...
* Move connection creation into scheduler.
- #3076
* Fix clippy.
2023-06-20 11:33:03 +02:00
56de68c77a
Update translations
2023-06-20 10:59:27 +02:00
Sander Saarend
e23621c2cd
Calculate initial hot_rank and hot_rank_active for posts and comments from other instances ( #3131 )
...
* Calculate initial hot_rank when receiving posts and comments from other instances
* Move hot rank update logic into db_schema
2023-06-20 10:52:51 +02:00
ludrol
d97ff65fe1
Changed github issue template to align logically with the question asked ( #3135 )
2023-06-16 11:56:21 -04:00
Chethan
bb27339e68
Update README.md ( #3137 )
...
The Ace of Spades video linked in the README was private, have replaced it with a public video.
2023-06-16 11:54:12 -04:00
Sander Saarend
007c7d5812
Remove e-mail verification success e-mails ( #3124 )
2023-06-16 11:53:33 -04:00
Alex Maras
becf75d1f9
Fix Hidden communities showing in community list ( #3094 )
...
* Only show hidden communities when explicitly searching for them rather then in "all"
* dont set hidden to false when creating and updating - let DB set default
* lint
---------
Co-authored-by: Alex Maras <alexmaras@gmail.com>
2023-06-15 13:39:58 +02:00
b5dba17426
Update all dependencies ( #3091 )
2023-06-15 11:37:05 +02:00
Wyatt Smith
744153eee6
Prevent making an instance private if federation is enabled. ( #3074 )
...
* Prevent making an instance private if federation is enabled.
* Added case where federation is enabled, check if the alternative setting is changed
* Merged the error messages for private instance/federation.
---------
Co-authored-by: Wyatt Smith <wys@dropbox.com>
2023-06-15 11:35:09 +02:00
Sander Saarend
68d814b9b1
Handle scheduled task errors ( #3090 )
...
* Add --disable-scheduled-tasks CLI flag
* Add error handling for scheduled tasks
2023-06-15 11:29:12 +02:00
Dessalines
5af831c6fa
Fix unapproved users being able to log in after registration mode set to closed. ( #3096 )
...
- Fixes #3095
2023-06-14 19:02:17 -04:00
ebd8c86f0e
Link tafkars in readme ( #3087 )
2023-06-14 23:41:20 +02:00
Divided by Zer0
14b990e006
doc: Added pythorhead library in readme ( #3114 )
2023-06-14 23:40:49 +02:00
adisbladis
e0af3a292e
Only create ltree postgres extension in migration if doesn't already exist ( #3092 )
2023-06-14 17:03:10 -04:00
Raymond Berger
53fe93db47
add issue template yml from lemmy-ui ( #3086 )
...
* add issue template yml from lemmy-ui
* prettier
* Empty-Commit for CI
* improve Qs
* add instance question
* delete hexbear
* backend version
2023-06-14 22:21:03 +02:00
Neshura
558035b128
Fix Issue #3075 by using None for local fields instead of Some(false) ( #3088 )
...
* Set insert and update form "local" to None
* Extra space to retrigger woodpecker
* Resolve code review request
https://github.com/LemmyNet/lemmy/pull/3088#discussion_r1229336958
* Remove extra space after None,
2023-06-14 08:34:45 -04:00
Charles Hall
f43bb454c3
stop requiring superuser to run migrations ( #3002 )
...
Fixes <https://github.com/LemmyNet/lemmy/issues/2863 >.
2023-06-14 07:54:12 -04:00
Nina Blanson
1c7bfd6be8
Fixes #1884 - Support Spoiler Tags ( #3018 )
...
* Fixes #1884 - Switches markdown libraries and creates a custom rule to manage spoiler blocks
* Add tests to cover invalid spoiler input
* Consolidate tests, add comments
* Make immutable, static instance of markdown parser
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-06-14 13:15:59 +02:00
f3f95e5d2f
Fix compilation
2023-06-14 11:34:29 +02:00
Patrick Roe
87aa0acaf1
Align default DB password with documentation ( #3068 )
2023-06-13 22:23:07 +02:00
JetpackJackson
91271a7ce4
Update RSS url ( #3053 )
...
* Update RSS url
* Fixed next line
* making sure this thing uploads
* Update feeds.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-13 16:17:02 -04:00
Edgar Alvarado
c32585b034
Docker yaml anchors and docker logs ( #3027 )
...
* Use anchor for duplicated compose properties
* Include docker log max
* Run prettier
2023-06-13 08:37:06 -04:00
Edgar Alvarado
932e65c16d
Fix ports used by docker ( #3012 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-12 18:38:27 -04:00
Jared Schneiderman
5f92125e44
Add limit and pagination to feeds ( #2980 )
...
* adds limit and pagination to all rss feeds
* consistent ordering
* refactor page and limit and add after
* revert back to using page
* remove offset change
* refactor to impl adding helper methods
* clippy
2023-06-12 17:48:02 -04:00
25275b79ee
Upgrade activitypub-federation to 0.4.1 ( #3039 )
...
This improves logging so that its not necessary to enable debug
logs to find out that activity worker count needs to be increased.
2023-06-12 14:12:15 -04:00
Charlie Fish
87634ca206
Adding Lemmy-Swift-Client to README.md ( #3026 )
2023-06-12 15:31:27 +02:00
Andy Brandt
b47ce4c2e6
use usize::MAX for line wrap length, since lettre does it for us ( #3034 )
...
fixes #2921
2023-06-12 15:29:15 +02:00
Charles Hall
f50325e78a
update doku ( #3003 )
...
Fixes malformed documentation generated by previous version.
2023-06-12 05:55:47 -04:00
Nathan Schulzke
3a6f8877c9
Fix contributing link ( #3015 )
2023-06-12 11:04:47 +02:00
Dessalines
ecc9469a02
Better issue templates. ( #2991 )
...
* Better issue templates.
* Fixing bug report.
2023-06-09 23:08:27 +02:00
Charles Hall
14c18dbdae
allow specifying db uri in config file ( #2956 )
...
* allow specifying db uri in config file
* succumb to a bug in doku
See <https://github.com/anixe/doku/issues/33 >.
2023-06-09 08:18:22 -04:00
Dessalines
8cb5939f50
Adding hot_rank columns in place of function sorting. ( #2952 )
...
* Adding hot_rank columns in place of function sorting.
- Creates hot_rank columns for post, comment, and community.
- Fixes #2932
* Updating all hot ranks on startup.
* Fixing post.url migration.
* Removing update_instance_software from startup.
* Adding post_rank query
2023-06-08 16:15:15 -04:00
Charles Hall
4e5798852f
make shebangs posix compliant ( #2974 )
...
Previously, these scripts wouldn't work on exotic systems such as NixOS.
```
fd '\.sh$' -t f --exec sed -i 's@#!/bin/bash@#!/usr/bin/env bash@'
```
2023-06-08 15:38:26 -04:00
Andy Brandt
f98476c5c0
Fix private message e-mail notification subject and body ( #2963 )
...
It used to say:
Subject: Private message from [your username]
Body: [your username] - [private message]
It now display the correct username that it's from.
2023-06-08 13:42:32 -04:00
Anon
15c84e2f7b
Add comment depth check ( #2940 )
...
* Add comment depth check
* Move comment depth code
* linter fix
2023-06-08 10:31:26 -04:00
Jason Watkins
491e197529
Add lemmyexternalproxy
to lemmy
so that it can talk to the internet ( #2960 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-08 08:30:16 -04:00
980df7545d
Fix translation build error ( fixes #2967 ) ( #2968 )
2023-06-08 07:12:40 -04:00
2423b89ced
Activitypub breaking changes for Lemmy 0.18 ( #2705 )
...
* Remove deprecated field `group.moderators`
* Drop column local_site.federation_debug
* Remove backwards compatibility code for feature/lock post
https://github.com/LemmyNet/lemmy/pull/2716
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-07 15:18:17 -04:00
1c9f0c2bed
Add db index for post.url column ( #2929 )
...
* Add db index for post.url column
As mentioned in https://github.com/LemmyNet/lemmy/issues/2877#issuecomment-1576439829
Not sure if its preferable to do this, or make a combined index
which includes post.nsfw, post.removed, post.deleted
* remove unique
2023-06-07 11:31:24 -04:00
derivator
9419dd7c05
Fall back to String for Comment::path when not using the full feature ( #2941 )
2023-06-07 09:38:46 -04:00
Carlrs
24323e17b2
update diesel to 2.1.0 and diesel-async to 0.3.0 (issue #2882 ) ( #2895 )
...
* update diesel to 2.1.0 and diesel-async to 0.3.0 (issue #2882 )
* get rid of deprecated RawValue type alias usage, explicitly import diesel types instead of using wildcard import
* Update diesel-derive-enum and diesel-derive-newtype libraries
* Revert manual changes to schema.rs
* Update to newer diesel-cli image in CI, run fix-clippy before schema comparison, update schema to one generated with diesel-cli 2.1.0 and clippyfixed
* Remove wildcard import lint, fix diesel schema pipeline
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-07 12:54:40 +02:00
Dessalines
af03dcfeac
Fix dev setups. ( #2944 )
2023-06-06 22:22:21 -04:00
e97c30b930
Set version name for crates.io release ( #2928 )
...
* Set version name for crates.io release
ref https://github.com/LemmyNet/lemmy-ui/issues/1052
* fix yml
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-06 20:24:06 -04:00
vpzomtrrfrt
09099e7b90
Fix handling of follows addressed to single value ( #2920 )
...
* Fix handling of follows addressed to single value
* Switch to deserialize_skip_error for Follow to
* Also use deserialize_skip_error for AcceptFollow and UndoFollow
* actually import deserialize_skip_error
2023-06-06 18:33:38 -04:00
3565ad984a
Remove chatserver ( #2919 )
...
* Remove chatserver
* fix clippy
* Remove captchas (fixes #2922 )
* fix prettier
* fix api_common build
* cargo fmt
2023-06-06 12:27:22 -04:00
Dessalines
ef1aa18fd2
Adding taglines to SiteResponse. Fixes #2925 ( #2926 )
...
* Adding taglines to SiteResponse. Fixes #2925
* Fixing CI line.
2023-06-06 08:59:34 -04:00
Dessalines
bb625c3671
Fix *All* reports not showing. Fixes #2902 ( #2903 )
...
* Fix *All* reports not showing. Fixes #2902
* Fix *All* reports not showing. Fixes #2902
* Fixing tests.
2023-06-06 11:01:48 +02:00
Matt Pusch
ae88f618fd
README updates ( #2913 )
...
* Updated readme to remove unsecure sunchid lemming article - replaced with wikipedia article.
Commented out sponsor list as page DNE.
Commented out Contributing section as all sites DNE. Added simple instructions for git contribution. Cleaned up formatting for Contributing section.
TODO: update join-lemmy.org/docs, uncomment removed lines
* Implemented suggested changes
2023-06-05 11:34:15 -04:00
7248c4a6f4
Filter empty username strings from Mastodon ( fixes #2886 ) ( #2887 )
...
* Filter empty username strings from Mastodon (fixes #2886 )
* add issue link
2023-06-05 13:56:53 +02:00
Udo
dc9ca5768b
Update humane tech badge to point to new repo ( #2898 )
2023-06-05 12:49:32 +02:00
Justin Gauthier
d439bdf8b4
Update to fix nginx proxy config for Docker Installs ( #2908 )
...
* Update to fix nginx proxy config
* Update docker-compose.yml - fix type
---------
Co-authored-by: Jax Gauthier <jax@gauthier.id>
2023-06-05 12:43:31 +02:00
1b4f995706
Remove jaeger, opentelemetry from docker-compose ( #2894 )
2023-06-04 22:16:49 +02:00
Dessalines
e363c25521
Replace remmel with Mlem. ( #2890 )
2023-06-01 22:40:47 +02:00
Dessalines
af3eb6e27b
Add CORS support for debug mode. ( #2884 )
2023-05-29 17:14:00 -04:00
phankydn
d30839bea1
Don't filter comments of posts from blocked community when viewing post detail ( #2880 )
2023-05-29 11:41:47 -04:00
4240af86ca
Remove websocket code ( #2878 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-29 10:44:20 -04:00
a5707328cf
Dont return error in case optional auth is invalid ( #2879 )
...
* Dont return error in case optional auth is invalid
* fixes
2023-05-25 10:50:07 -04:00
phankydn
4a70502007
Remove unnecessary clone ( #2874 )
...
Co-authored-by: KyP <phanky.vn@proton.me>
2023-05-23 19:00:19 -04:00
82d93da26b
Remove GetCommunityResponse.default_post_language ( #2867 )
...
This field is unnecessary because we already set a default language
with the same logic if none is passed in CreatePost. So if the user
doesnt set a post language, it should simply be passed as None. This
also has the advantage that it works with clients that dont support
language tags.
Technically not a breaking change because its optional, but better
be safe.
2023-05-21 11:55:32 -04:00
a9d708f494
Merge pull request #2866 from LemmyNet/remove-reqwest-retry
...
Optimize fetching of post url metadata
2023-05-18 17:19:54 +02:00
436a293f38
Dont refetch post url metadata when post is received again
2023-05-18 16:34:52 +02:00
df57795595
Dont retry outgoing HTTP requests (ref #2865 )
2023-05-18 16:34:52 +02:00
8410a9696e
Force enable undetermined language ( #2851 )
...
* Force enable undetermined language
* update
* fix tests
2023-05-18 16:34:21 +02:00
SleeplessOne1917
e856eda74d
Fix typo that caused error ( #2861 )
2023-05-14 14:02:05 -04:00
Dessalines
69f179bd33
Prettier check ( #2855 )
...
* Adding prettier check to CI.
* Running prettier on codebase.
2023-05-13 16:50:58 -04:00
ce5161d997
Downgrade postgres for CI to 15.2 ( fixes #2857 ) ( #2859 )
2023-05-12 19:08:32 -04:00
SleeplessOne1917
0379c9e4c1
Make volumes used in docker compose work when running on machines with SELinux enabled ( #2853 )
...
* Make volumes used in docker compose work when running on machines with SELinux enabled
* Switch lemmy-ui comments
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-11 20:15:12 -04:00
af5175a282
Set attribute deny_unknown_fields
for Lemmy config ( #2852 )
...
With this attribute, Lemmy will throw an error and exit if any
invalid entry is found in the config file. I think can be useful
to notice typos or keys that were removed or renamed in an upgrade.
Currently you wouldnt notice these at all unless you manually
compare the config file with settings that are listed in documentation.
This should be considered a breaking change.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-05-11 20:12:12 -04:00
Dessalines
32a5567cbf
Fixing empty req issue. ( #2849 )
...
* Fixing empty req issue.
* Forgot skip serializing none.
2023-05-11 21:20:45 +02:00
Dessalines
d63b1ba935
Upgrade api_test deps ( #2850 )
...
* Upgrade api_test deps
* Fix cargo fmt.
* Try to trigger a new format
2023-05-10 16:31:37 -04:00
Dessalines
014c0ad87f
Adding comments to all API related types. Fixes #2846 ( #2848 )
2023-05-10 21:20:39 +02:00
Dessalines
88a0d2feec
Adding typescript generation for API. Fixes #2824 ( #2827 )
...
* Adding typescript generation for API. Fixes #2824
* Try to fix Ltree issue 1.
* Forgot a few types.
* Fixing api tests.
* Removing url_serde line.
* Manually deriving TS for some types.
2023-04-26 00:26:10 -04:00
Dessalines
1b5437cbe3
Addressing slow profile queries. #2777 ( #2830 )
...
* Addressing slow profile queries. #2777
* Addressing PR comments.
2023-04-25 19:28:06 -04:00
Dessalines
17527d0e7e
Reverting to older non-multi-arch dockerfile. Fixes #2832 ( #2833 )
2023-04-25 22:40:58 +02:00
a25faf3e97
Add to
field in follow activities for better compatibility ( #2829 )
...
* Add `to` field in follow activities for better compatibility (fixes #2744 )
* fix tests
2023-04-24 17:19:08 -04:00
Dessalines
a2fb4b8cd0
Use older git clone for woodpecker. ( #2831 )
2023-04-24 21:40:36 +02:00
Dessalines
eb40aeb89b
Remove last Option<Vec.. from API. Fixes #2820 ( #2822 )
...
* Remove last Option<Vec.. from API. Fixes #2820
* Add empty allowed_instances check.
* Adding comment for allowed_instances.
2023-04-21 23:41:03 +02:00
Dessalines
1e26709cb4
Adding cross_post fetching to GetPost. Fixes #2127 ( #2821 )
2023-04-19 22:16:19 +02:00
6543
85ef507ac7
Use Dockerfile.multiarch as Dockerfile ( #2818 )
...
* use Dockerfile.multiarch and delete old Dockerfile
* Dockerfile.multiarch -> Dockerfile
* nit
2023-04-18 22:21:31 +02:00
Dessalines
d8722b6e91
Adding diesel enums for SortType and ListingType ( #2808 )
...
* Adding diesel enums for SortType and ListingType
- Uses diesel-derive-enum.
- Adds diesel.toml , so we can again use the auto-generated schema.rs
- Fixes a lot of DB null issues and column ordering issues.
- Fixes #1136
- Also replaces RegistrationMode boilerplate.
* Fixing unit tests 1.
* Remove comment line.
* Before patch.
* Before again.
* Using patch file to fix diesel_ltree issue with diesel.toml
* Adding some yalc ignores
* Fixing RegistrationMode enums
* Adding woodpecker diesel schema check.
* Try adding openssl 1.
* Try using diesel-cli image 1
* Try using diesel-cli image 2
* Try using diesel-cli image 3
* Try using diesel-cli image 4
* Try using diesel-cli image 5
* Try using diesel-cli image 6
* Try using diesel-cli image 7
* Try using diesel-cli image 8
* Try using diesel-cli image 9
* Try using diesel-cli image 10
* Try using diesel-cli image 11
* Try using diesel-cli image 12
* Try using diesel-cli image 13
2023-04-17 15:19:51 -04:00
SleeplessOne1917
f5511cfd25
Make path to local lemmy-ui use correct relative path ( #2817 )
2023-04-17 13:38:59 -04:00
SleeplessOne1917
922b50fc7c
Add lemmy-bot to README libraries list ( #2816 )
2023-04-17 13:21:37 -04:00
Dessalines
33ba1fc623
Separate federated_instances into its own endpoint. Fixes #1931 ( #2813 )
2023-04-16 17:00:31 -04:00
6543
90c6dc2732
Use official rust image and clean up Dockerfiles ( #2804 )
...
* Add docker/Dockerfile.multiarch
* Update normal Dockerfile to be similar to multiarch one
* docker build run on x86 and arm64 now
manifest not needed, its handled by buildx plugin
* Rename Dockerfile.arm To Dockerfile.debian
* Emulate builder on arm target too
* fix misspell
* Improve Dockerfiles
* naming
* undo multiarchbuild settings as its blocked by a dependeny, see #2806
* Delete Dockerfile.debian
2023-04-16 12:56:12 -04:00
Dessalines
3fa713f414
Temporary fix for hiding deleted posts. #2624 ( #2811 )
2023-04-15 20:23:36 -04:00
Dessalines
148f33def5
Leave modded communities on account deletion. Fixes #2560 ( #2810 )
2023-04-15 19:41:05 -04:00
Dessalines
38d4429ae7
Adding check to description and body length fields. ( #2805 )
...
* Adding check to description and body length fields.
- Also making the checks return `LemmyError`
- Fixes #1747
* Address PR comments.
* PR comments 2
2023-04-15 10:45:11 -04:00
6543
e7a2080f3f
Fix & Optimize CI config ( #2802 )
...
* let the clone plugin handle submodules too
* start using yml aliase
* fix publish_to_crates_io
* CI.restart()
2023-04-13 22:33:00 +02:00
Dessalines
63f54a3103
Making the chat server an actor. ( #2793 )
...
* Making the chat server an actor.
- Fixes #2778
- #2787
* Forgot to add handlers folder.
* Some cleanup.
* Forgot to remove a comment.
* Address PR comments.
* Using ToString for enum operations.
2023-04-13 06:53:55 -04:00
844cde9db3
Use pretty print for federation json responses ( #2801 )
2023-04-12 20:17:23 -04:00
9d26ac2c6f
Fix listing type default value ( #2796 )
...
* Fix listing type default value
The listing type parameter is only meant for the frontpage, but is
also applied inside of communities. The result is that this call
returns nothing, because it defaults to ListingType::Local:
https://fedibb.ml/api/v3/post/list?community_id=3
It needs to be called like this to get any posts:
https://fedibb.ml/api/v3/post/list?community_id=3&type_=All
This is clearly not expected behaviour, when a community is
specified, the listing type should default to All.
* fix clippy
2023-04-12 10:40:59 -04:00
Dessalines
d18bc95b7b
Add woodpecker ci ( #2789 )
...
* Adding woodpecker. Try 1
* Adding woodpecker. Try 2
* Adding woodpecker. Try 3
* Adding woodpecker. Try 4
* Adding woodpecker. Try 5
* Adding woodpecker. Try 6
* Adding woodpecker. Try 7
* Adding woodpecker. Try 8
* Adding woodpecker. Try 9
* Adding woodpecker. Try 10
* Adding woodpecker. Try 11
* Adding woodpecker. Try 12
* Adding woodpecker. Try 13
* Adding woodpecker. Try 14
* Adding woodpecker. Try 15
* Adding woodpecker. Try 16
* Adding platform when conditionals.
* Adding platform when conditionals 2.
* Adding woodpecker docker buildx.
2023-04-05 16:29:35 -04:00
3a526b0b7d
Remove unused dependencies ( #2795 )
2023-04-05 16:29:08 -04:00
165b19e75c
Optimize federated language updates to avoid unnecessary db writes ( #2786 )
...
* Optimize federated language updates to avoid unnecessary db writes (fixes #2772 )
* fix tests
* fix test, rename functions
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-03-30 11:03:13 -04:00
Helge
fdaa2bcf09
Added identifier to context ( #2791 )
2023-03-26 22:19:10 +02:00
6f513793cb
Activitypub crate rewrite ( #2782 )
...
* update activitypub-federation crate to 0.4.0
* fixes
* apub compiles!
* everything compiling!
* almost done, federated follow failing
* some test fixes
* use release
* add code back in
2023-03-21 16:03:05 +01:00
Anon
6bc49bdd70
Add Custom Emojis Support ( #2616 )
...
* Add Custom Emojis
* Modify index
2023-03-20 17:32:31 -04:00
Dessalines
66b0ddbbc5
Adding deadpool timeouts. ( #2775 )
2023-03-03 10:30:03 +01:00
Dessalines
1dba94c9cb
Adding TOTP / 2FA to lemmy ( #2741 )
...
* Combine prod and dev docker setups using build-arg
- Fixes #2603
* Dont use cache for release build.
* Adding 2FA / TOTP support.
- Fixes #2363
* Changed name to totp_2fa for clarity.
* Switch to sha256 for totp.
2023-03-02 21:37:41 +01:00
Dessalines
985fe24669
Get rid of Safe Views, use serde_skip ( #2767 )
...
* Get rid of Safe Views, use serde_skip
- Also change the ViewToVec, to work with non-vector cases. Might be
necessary in preparation for #2763
- Fixes #2712
* Forgot one safe
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-03-01 18:19:46 +01:00
Dessalines
48f187188b
Show deleted and removed posts for profile views. Fixes #2624 ( #2729 )
...
* Show deleted and removed posts for profile views. Fixes #2624
* Only showing non-deleted/removed posts for creator.
* Add a admin or mod check to views, to show deleted and removed posts.
- Also removed the pointless "blanking" functions
* Fix clippy
* Make hidden posts comment clearer.
* Fixing federation tests.
* Fixing fmt.
2023-02-28 22:46:15 -05:00
d9e7f0100a
Dont upsert Instance row every apub fetch ( #2771 )
...
This is not necessary because the domain cant change, so we only
need to insert if no row exists for this domain.
Also fetch instance actor when parsing person, not only community
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-28 21:36:57 -05:00
Dessalines
3844ac76c3
Fixing broken websockets. ( #2770 )
...
* Fixing broken websockets.
* Use cloned() for serde::Value
2023-02-28 21:27:33 -05:00
f0e1627824
Ignore undetermined language when calculating post default language ( #2769 )
...
This will make it much more likely to successfully get a default,
as most users and communities have undetermined selected.
2023-03-01 01:49:31 +01:00
Dessalines
209c8a9185
Switch from bb8 to deadpool. Fixes #2765 ( #2768 )
...
* Switch from bb8 to deadpool. Fixes #2765
* Remove unecessary deadpool dependency.
* Ignoring nodeinfo test.
2023-02-28 22:45:37 +01:00
Dessalines
8c0c1628e0
Adding a vector indexing check to prevent panics. Fixes #2753 ( #2754 )
...
* Adding a vector indexing check to prevent panics. Fixes #2753
* Fixing for new clippy lint.
* Externalizing get_top_mod check. Adding get_first clippy lint
* Removing unit tests get(0)s
* Fixing some firsts manually
2023-02-28 12:34:50 +01:00
Dessalines
4c77c84b60
Cleaning up person_view sorts ( #2760 )
2023-02-24 13:33:54 +09:00
80571567e1
Add default attribute for webfinger properties ( fixes #2756 ) ( #2759 )
2023-02-23 09:51:33 -05:00
155af88582
Adding 0.17.2 Release notes.
2023-02-22 10:08:41 -05:00
675353d4e9
Include type information with webfinger responses ( fixes #2037 ) ( #2746 )
...
So that it is easier to parse for other software
2023-02-22 11:25:26 +09:00
Dessalines
cd5c79527a
Fixing issue with saving site language. Fixes #2748 ( #2749 )
...
* Fixing issue with saving site language. Fixes #2748
* Add a warning to Site::read
2023-02-22 02:22:54 +01:00
a42f7271e6
Proper permission check for federated comment distinguish ( #2697 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-19 03:57:45 +09:00
62663a9f2e
Implement separate mod activities for feature, lock post ( #2716 )
...
* Implement separate mod activities for feature, lock post
Also includes collection for featured posts. Later we also need
to do the same for Comment.distinguished
* some changes
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-18 09:50:28 -05:00
8409e50f8c
Fix case in activitypub context (ref #2734 ) ( #2743 )
...
Should be camelCase.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-18 09:48:50 -05:00
Dessalines
1917e3d495
Separate comment distinguish ( #2740 )
...
* Combine prod and dev docker setups using build-arg
- Fixes #2603
* Dont use cache for release build.
* Separate comment distinguish into its own action.
- Fixes #2708
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-02-18 09:46:34 -05:00
Dessalines
3735c6fabf
Adding instance software and version. Fixes #2222 ( #2733 )
...
* Adding instance software and version. Fixes #2222
* Fix clippy.
* Fix clippy 2
* Fixing some more issues.
2023-02-18 09:36:12 -05:00
Dessalines
47f4aa3550
Fixing slow joins to post_read, post_saved, and comment_saved . ( #2738 )
...
- Fixes #2445
2023-02-18 09:35:35 -05:00
Dessalines
9b0428bc50
Remove lemmur since its deprecated. ( #2742 )
2023-02-18 14:23:28 +01:00
Dessalines
993489a80f
Combine prod and dev docker setups using build-arg ( #2739 )
...
* Combine prod and dev docker setups using build-arg
- Fixes #2603
* Dont use cache for release build.
2023-02-17 15:29:45 +09:00
Dessalines
36aaa50644
Organize utils into separate files. Fixes #2295 ( #2736 )
...
* Organize utils into separate files. Fixes #2295
* Moving tests.
* Fix test.
* Fix test 2
2023-02-16 05:05:14 +01:00
Dessalines
8a27978ee1
Removing checking permissions when editing posts and comments. ( #2727 )
...
* Removing checking permissions when editing posts and comments. Fixes #2714
* Running cargo fmt again.
* Adding back in community ban checks.
2023-02-15 11:04:23 +09:00
Dessalines
956d0aa52f
Fixing updated form fields. Fixes #2724 ( #2725 )
...
* Fixing updated form fields. Fixes #2724
* Fix import.
2023-02-14 16:41:22 -05:00
Dessalines
9d7009c772
Only let top admin purge. Fixes #2731 ( #2732 )
2023-02-14 14:31:04 -05:00
25e98064b6
Fix writing of removeData
in apub context ( fixes #2734 ) ( #2735 )
2023-02-14 13:40:39 -05:00
Dessalines
ddb6268164
Adding a site option to email admins for new reports. ( #2730 )
...
- Fixes #2551
2023-02-15 00:57:08 +09:00
Dessalines
166854b37e
Sort community search by active_monthly by default. ( #2728 )
...
- Fixes #2678
2023-02-14 15:19:37 +01:00
3bb98fcc64
Fix post titles being cut off ( fixes #2718 ) ( #2720 )
...
I didnt notice that this limit would also apply to Lemmy and other
software which has the title field. So gonna change it to be
identical to db limit
2023-02-10 13:35:23 -05:00
3bfa8ab4ff
Improved error message when attempting to fetch non-local object ( fixes #2715 ) ( #2717 )
2023-02-08 14:45:29 -05:00
Kradyz
ab9b60e86d
Convert HTML from titles into markdown ( #2709 )
...
Co-authored-by: Kradyz <k@radiz.nl>
2023-02-07 03:27:17 +01:00
7c1a37d584
In apub post receive, check posting restricted to mods (ref #2702 ) ( #2704 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-05 12:31:09 -05:00
2891856b48
Fix docker federation setup ( #2706 )
2023-02-05 12:30:10 -05:00
eb78af9b02
Fix data fetching from Peertube ( fixes #2689 ) ( #2703 )
...
- Other platforms can support additional language tags. Treat those
as None instead of throwing error
- deserialize_skip_error was implemented incorrectly and failed on
array values (6d9682f4e6
)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-05 00:38:08 -05:00
Dessalines
bc8845391f
Add a ntfy notif on a tag deploy success. ( #2701 )
2023-02-05 02:51:48 +09:00
0c8fd240a6
Adding 0.17.1 Release notes.
2023-02-03 14:30:26 -05:00
4dddc3f717
Disable pictrs feature in CI to make it faster ( #2698 )
2023-02-04 03:32:44 +09:00
5ae409d4e4
Version 0.17.1
2023-02-03 09:36:18 -05:00
Dessalines
ed95c61bca
Fixing admin application email subject. Fixes #2688 ( #2695 )
2023-02-03 09:24:19 -05:00
Dessalines
b1e121b5ba
Fixing person block views. Fixes #2693 ( #2694 )
2023-02-03 14:45:32 +01:00
Dessalines
d0c94a4f49
Fixing GetPosts active sort index. Fixes #2683 ( #2684 )
...
* Fixing GetPosts active sort index. Fixes #2683
* Fixing other sort.
2023-02-02 14:09:32 -05:00
93f2eb4df0
More explicit upgrade instructions.
2023-02-01 09:35:24 -05:00
4dfe4c5579
Fix yerbate.ml -> join-lemmy.org links
2023-02-01 09:34:59 -05:00
41010328c1
Merge branch 'main' of https://github.com/LemmyNet/lemmy
2023-01-31 12:21:34 -05:00
2754bc1d10
Fixing instructions.
2023-01-31 12:21:28 -05:00
36ac1b54c1
Publish without verify ( #2681 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-31 10:41:48 -05:00
43b94e5f16
Fix paths in release script, update crate versions ( #2680 )
2023-02-01 00:26:51 +09:00
d5368cbba9
Adding 0.17.0 Release notes.
2023-01-31 08:38:41 -05:00
53bc0311b1
Version 0.17.0
2023-01-31 08:30:54 -05:00
a9905bf999
Updating translations.
2023-01-31 08:29:31 -05:00
Dessalines
a610211557
Fixing .drone.yml
( #2677 )
...
* Try to fix docker/drone plugin
* Trying to use one rust image.
* Fixing drone 1.
* Fixing drone 2.
* Add drone notify.
* Fixing drone 3.
* Fixing drone 4.
* Fix clippy.
* Remove uninlined format lint.
* Combine all cargo tasks
* Fixing drone 5.
* Fixing drone 6.
* Fixing drone 7.
* Fixing drone 8.
* Fixing drone 9.
* Fixing drone 10.
* Fixing drone 12.
* Fixing drone 13.
* Fixing drone 14.
* Fixing drone 15.
* Fixing drone 16.
* Fixing drone 17.
* Fixing drone 18.
* Fixing drone 19.
* Fixing drone 20.
* Fixing drone 21.
* Fixing drone 22.
* Fixing drone 23.
* Fixing drone 24.
* Fixing drone 25.
* Fixing drone 26.
* Fixing drone 27.
* Fixing drone 28.
* Fixing drone 29.
* Fixing drone 30.
* Fixing drone 31.
* Fixing drone 32.
* Fixing drone 33.
* Fixing drone 34.
* Fixing drone 35.
* Fixing drone 36.
* Fixing drone 37.
* Fixing drone 38.
* Fixing drone 39.
* Fixing drone 40.
* Fixing drone 41.
* Fixing drone 43.
* Fixing drone 44.
* Fixing drone 45.
* Last cleanup.
* Fixing drone 46.
* Separate ci steps (#2679 )
* separate ci steps
* fix 1
* add comments
* dont add rustfmt explicitly
* Revert "dont add rustfmt explicitly"
This reverts commit 358ce3302a134b7ac88d90a854079356995e9725.
* dont use all features for tests
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-01-30 14:17:24 -05:00
Dessalines
a8232fe3d6
Use join_all instead of try_join_all. Fixes #2673 ( #2674 )
...
* Use join_all instead of try_join_all. Fixes #2673
* Add note about closed connections.
2023-01-30 11:11:11 -05:00
Kradyz
c416e4ce14
Update message_id to comply with RFC 2822 ( #2668 )
...
The RFC 2822 format standard requires the message ID to be enclosed within angle brackets. If the standard is not followed, SpamAssassin deducts points from the e-mail.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-30 11:10:51 -05:00
Dessalines
70c549dad8
Speeding up comment-ltree migration, fixing index creation. Fixes #2664 ( #2670 )
...
* Speeding up comment-ltree migration, fixing index creation. Fixes #2664
* Adding some logging lines, fixing for missing posts.
* Adding more postgres config
2023-01-23 09:59:25 -05:00
1eaf2c8a03
Add feature to embed pictrs in lemmy binary ( fixes #2627 ) ( #2633 )
...
* Add feature to embed pictrs in lemmy binary (fixes #2627 )
* Add pictrs config
* add protobuf
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-20 12:46:49 -05:00
Dessalines
6eb5ed343c
Update post_aggregates indexes to account for featured_local and featured_community columns. ( #2661 )
...
- Fixes #2660
2023-01-20 12:44:03 -05:00
7e3d3839b6
Post creation from Mastodon ( fixes #2590 ) ( #2651 )
...
* Post creation from Mastodon (fixes #2590 )
* better logic for page title
* add deserialize helper
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-20 12:43:23 -05:00
Dessalines
ac56504291
Upgrade to postgres 15. ( #2659 )
2023-01-20 18:15:07 +01:00
Dessalines
b5d45fa826
Add reddit -> lemmy importer to readme. ( #2662 )
2023-01-20 03:41:37 +01:00
2ec8bb877c
Some script improvements ( #2654 )
...
- Allow specifying which packages should be tested
- Hardcode `lemmy` as db password because thats used in many different places
2023-01-13 00:23:58 +01:00
ceff2ec686
Use enum for registration mode setting ( #2604 )
...
* Use enum for registration mode setting
* fix tests
2023-01-05 01:42:30 +00:00
Dessalines
0630d214e3
Removing sniptt/monads for lemmy-js-client. ( #2644 )
...
* Removing sniptt/monads for lemmy-js-client.
* Fix tests.
2023-01-04 10:59:26 -05:00
Dessalines
b7d5b37ac9
Fix historical post fetching. Fixes #2640 ( #2643 )
2023-01-04 14:58:11 +00:00
Dessalines
e567151ec3
Adding the go client. ( #2629 )
...
* Adding the go client.
* Adding lemmyBB, and a stub for lemmy-rust-client
* Updating to use api_common readme.
2023-01-03 21:04:22 +00:00
dab532f743
Point to !lemmy_support for support questions ( #2638 )
2023-01-03 03:28:21 -05:00
270f3b781a
Add documentation for using Lemmy API from Rust ( #2639 )
2023-01-03 03:23:41 -05:00
0d4cdb579c
Improve application question check ( #2628 )
...
The check was failing if only require_application was passed
and not application_question, despite application_question
being set in database.
2022-12-23 01:31:39 +00:00
9f52d4ae53
Fix user following ( #2623 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-19 10:55:26 -05:00
c3fbb7702f
Allow embedding Lemmy, fix setup error ( #2618 )
...
* Fix error during site creation due to empty LocalSiteRateLimit update
* Move main function into lib.rs, to allow calling from other crates
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-19 10:54:42 -05:00
Dessalines
76e0ab934f
Fixing missing forms, incorrect user discussion_languages ( #2580 )
...
* Fixing missing forms, incorrect user discussion_languages
* Add discussion_language to CommunityResponse
* Adding discussion_languages to CommunityResponse
* Adding discussion_language logic to community.create
2022-12-19 11:40:22 +00:00
Anon
9dfd819691
Add support for Featured Posts ( #2585 )
...
* Add support for Featured Posts
* Fix rebase
* More fixes
2022-12-12 11:17:10 +00:00
0ecf256ce3
Remove federation backwards compatibility with 0.16.x ( #2183 )
...
* Breaking: remove compatiblity with page.url field (ref #2182 )
* Breaking: change type of Instance to `Application` (ref #2200 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-09 11:21:17 -05:00
2732a5bf07
Rework websocket ( #2598 )
...
* Merge websocket crate into api_common
* Add SendActivity trait so that api crates compile in parallel with lemmy_apub
* Rework websocket code
* fix websocket heartbeat
2022-12-09 10:31:47 -05:00
f02892b23b
Merge pull request #2593 from LemmyNet/refactor-notifications
...
Refactor crates for parallel build
2022-12-02 11:17:10 +00:00
c6c52ab9cc
Add SendActivity trait so that api crates compile in parallel with lemmy_apub
2022-12-02 10:46:49 +01:00
201fa97769
Move code to generate apub urls into lemmy_api_common
2022-12-02 10:46:49 +01:00
904d7bec2f
Builds lemmy_routes in parallel with lemmy_apub
2022-12-02 10:46:49 +01:00
030afbc2e7
Merge websocket crate into api_common
2022-12-02 10:46:49 +01:00
70e3feb174
Check user accepted before sending jwt in password reset ( fixes #2591 ) ( #2597 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-01 16:36:03 -05:00
ccb6435c1d
Relax honeypot check ( fixes #2595 ) ( #2596 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-01 16:33:59 -05:00
bcf5c91f81
Use audience field to federate items in groups ( fixes #2464 ) ( #2584 )
2022-12-01 15:52:49 -05:00
41d4852efc
Federate group moderators using attributedTo field ( #2588 )
...
* Federate group moderators using attributedTo field
* fix tests
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-25 09:01:58 -05:00
96a2bec691
Set cargo home in ci to avoid redownloading deps between steps ( #2587 )
...
* Set cargo home in ci to avoid redownloading deps between steps
* remove protobuf
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-24 23:43:31 -05:00
d39bc14c43
Add some more clippy lints ( #2586 )
...
* Add some more clippy lints
* restore config
* no allow dirty
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-24 16:38:00 +00:00
c3c4508a72
Use release docker image for nightly build ( #2583 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-24 08:33:58 -05:00
d20d2b9218
Implement federated user following ( fixes #752 ) ( #2577 )
...
* Implement federated user following (fixes #752 )
* rewrite send_activity_in_community and add docs, remove default for column pending
* improve migration
* replace null values in db migration
2022-11-23 18:40:47 -05:00
4ddca46228
Revert "Test drone ( #2582 )"
...
This reverts commit 87c7ee5490
.
2022-11-23 21:25:24 +01:00
87c7ee5490
Test drone ( #2582 )
2022-11-23 15:23:23 -05:00
bb1e3bc891
Upgrade activitypub_federation to 0.3.4 ( #2581 )
2022-11-23 09:06:25 -05:00
bc19d94e3c
Upgrade activitypub_federation crate to 0.3.3 (ref #2511 ) ( #2578 )
2022-11-22 07:20:31 -05:00
872c60a013
Remove federation settings, rely on sensible defaults instead ( #2574 )
...
This affects federation_strict_allowlist and federation_http_fetch_retry_limit
2022-11-21 11:44:34 -05:00
Dessalines
65041a20bb
Fix clippy lints. ( #2572 )
...
* Fix clippy lints.
* Fix fmt.
* Dont use cargo-workspaces for fix-clippy script.
2022-11-21 10:21:09 +00:00
Anon
c27d2a5687
Add support for Taglines ( #2548 )
...
* Add support for Taglines
* recreate migration
* Update content column -> Text
* Optimize replace function
* Change taglines to Option
* Move Ok() call
* Move taglines to GetSiteResponse
* Fix logic
Co-authored-by: layla <layla@chapo.dev>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-19 09:48:29 -05:00
6f3bf4634b
Various pedantic clippy fixes ( #2568 )
...
* Various pedantic clippy fixes
* more clippy pedantic fixes
* try to fix ci
* add fix clippy script, use rust 1.65
* fix clippy
2022-11-19 04:33:54 +00:00
a39cf31466
Sort vecs before assert to avoid random test failures ( #2569 )
...
* Sort language read queries to avoid random test failures
* change sort columns
2022-11-18 20:30:59 -05:00
23d0f3ed3c
Display build status badge from drone.join-lemmy.org ( #2564 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-11-17 18:51:17 +00:00
df7809fbbb
Specify dependencies and metadata for entire workspace ( #2565 )
...
* Specify dependencies and metadata for entire workspace (fixes #2474 )
* building api_common shouldnt depend on diesel
* remove drone task
* try with quotes
* fix clippy
* more clippy
2022-11-17 15:23:01 +00:00
63c237d6df
Use enum_delegate crate ( #2554 )
2022-11-16 22:51:05 +00:00
24756af84b
Live reload settings ( fixes #2508 ) ( #2543 )
...
* Live reload rate limit settings (fixes #2508 )
* fix tests
2022-11-16 14:06:22 -05:00
b16df59373
Fix activity list test ( #2562 )
2022-11-15 22:38:26 +00:00
0b86ffbdbd
Remove unwrap
2022-11-14 15:30:44 +01:00
a0fed24cee
When announcing incoming activities, keep extra fields ( #2550 )
2022-11-12 08:52:57 -05:00
e3bb43542c
Mobilizon federation ( #2544 )
...
* Mobilizon federation
* Also accept document attachments from mobilizon
2022-11-12 08:51:08 -05:00
83d2959b4b
Update doku dependency for easier formatting of defaults.hjson ( #2553 )
2022-11-11 16:01:29 -05:00
ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫
42674b7abd
Translated README.md to Chinese ( #2549 )
...
* Add Mandarin locales
`README.zh.hans.md` for Simplified Chinese, `README.zh.hant.md` for Traditional Chinese
* Fix relative links to README
2022-11-11 10:10:13 +00:00
Dessalines
5d837780f5
Add diesel_async, get rid of blocking function ( #2510 )
...
* Moving settings to Database.
- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.
* Fix weird clippy issue.
* Removing extra lines.
* Some fixes from suggestions.
* Fixing apub tests.
* Using instance creation helper function.
* Move forms to their own line.
* Trying to fix local_site_data, still broken.
* Testing out async
* Testing out async 2
* Fixing federation tests.
* Trying to fix check features 1.
* Starting on adding diesel async. 1/4th done.
* Added async to views and schema.
* Adding some more async
* Compiling now.
* Added diesel async. Fixes #2465
* Running clippy --fix
* Trying to fix cargo test on drone.
* Trying new muslrust.
* Trying a custom dns
* Trying a custom dns 2
* Trying a custom dns 3
* Trying a custom dns 4
* Trying a custom dns 5
* Trying a custom dns 6
* Trying a custom dns 7
* Addressing PR comments.
* Adding check_apub to all verify functions.
* Reverting back drone.
* Fixing merge
* Fix docker images.
* Adding missing discussion_languages.
* Trying to fix federation tests.
* Fix site setup user creation.
* Fix clippy
* Fix clippy 2
* Test api faster
* Try to fix 1
* Try to fix 2
* What are these lines about
* Trying to fix 3
* Moving federation test back to top.
* Remove logging cat.
2022-11-09 10:05:00 +00:00
ceae0f5993
Use urlencoding for db url params ( fixes #2532 ) ( #2537 )
2022-11-07 21:29:32 -05:00
a0a84d91ce
Dont serve apub json for removed objects (ref #2522 ) ( #2538 )
2022-11-04 20:57:28 -04:00
50a2233b52
Fix password length check ( #2536 )
2022-11-04 20:56:38 -04:00
2207fed0f5
Remove explicit panic from db connection code ( fixes #2533 ) ( #2535 )
2022-11-04 20:53:46 -04:00
9393195827
Send error message when rate limit is reached ( #2527 )
...
* Send error message when rate limit is reached
* l18n key
2022-11-03 18:13:40 +00:00
5e871ca7ba
Mark own private messages as read in api ( fixes #2484 ) ( #2531 )
2022-11-03 13:41:44 -04:00
b5cd732372
Mark objects as not deleted when received via apub ( fixes #2507 ) ( #2528 )
2022-11-03 09:39:30 -04:00
Dessalines
cb753b045f
Group imports dess ( #2526 )
...
* Group imports with rustfmt
* Running cargo fmt again.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2022-11-02 15:18:22 -04:00
28eade6168
Fix invalid config in docker/prod ( fixes #2520 ) ( #2524 )
2022-11-02 18:50:09 +00:00
Dessalines
ed9e91345a
Fix local site images. ( #2519 )
...
* Fix local site images.
* It should be set up.
2022-11-02 12:10:40 +00:00
sam365724
7aa6d6b3e1
Fix 2455: Check auth for pictrs when instance is private. ( #2477 )
...
* Fix 2455: Check auth for pictrs when instance is private.
* Update, no utils function, use of existing get_local_user_view_from_jwt
* rustup toolchain install nightly (ftw)
2022-10-28 10:43:33 -04:00
6aa9bdebae
Fix limit_languages to operate on correct instance ( fixes #2496 ) ( #2518 )
...
* Fix limit_languages to operate on correct instance (fixes #2496 )
* cargo fmt
2022-10-28 10:42:05 -04:00
3b0be52e67
Image improvements ( #2513 )
...
* Image improvements
* remove rate limits
2022-10-28 14:34:40 +00:00
b0c3185663
Make verify apub url function async ( #2514 )
...
* Make verify apub url function async
* cleanup
* use dep from crates.io
* dont use unwrap
2022-10-28 09:38:22 -04:00
Dessalines
235cc8b228
Moving settings to Database. ( #2492 )
...
* Moving settings to Database.
- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.
* Fix weird clippy issue.
* Removing extra lines.
* Some fixes from suggestions.
* Fixing apub tests.
* Using instance creation helper function.
* Move forms to their own line.
* Trying to fix local_site_data, still broken.
* Fixing federation tests.
* Trying to fix check features 1.
* Addressing PR comments.
* Adding check_apub to all verify functions.
2022-10-27 09:24:07 +00:00
276a8c2bd3
Enable lto, strip symbols via cargo.toml ( #2512 )
2022-10-25 15:10:07 +00:00
Dessalines
9ac13a0891
Fix docker dev build ( #2509 )
...
* Fixing docker dev build.
* Remove volume mount files.
* Fixing pictrs.
* Addressing PR comments.
2022-10-21 15:13:24 +00:00
aaaea2006c
Federate votes as private ( #2501 )
2022-10-18 03:13:18 +00:00
74bc1198ce
Dont try to send activities if federation is disabled ( fixes #2499 ) ( #2500 )
2022-10-17 14:29:18 -04:00
0a60bcb8ee
Return empty vec when reading all languages ( fixes #2495 ) ( #2497 )
2022-10-17 09:37:22 +00:00
04f0f3af0b
Update clippy to use Rust 1.64 ( #2498 )
2022-10-14 16:09:37 +00:00
6c3e984ad1
Only allow authenticated users to fetch remote objects ( #2493 )
...
* Only allow authenticated users to fetch remote objects
* try to fix api tests
2022-10-13 16:30:31 +00:00
sam365724
cb559178bd
More real-world prod config, separate lemmy config ( #2487 )
2022-10-10 16:06:52 +00:00
ec5e63b5a9
Fix check for federated mod actions ( #2489 )
2022-10-10 11:20:36 -04:00
sam365724
d2608bb279
Make docker-compose more clear and explicit ( #2469 )
...
* Make docker-compose more clear, starting with dev
Explicit networks, not opining ports when not necessary: Confusing for users. All requests go through nginx, so there is no need to open ports directly on pictrs and other services for example. I wasn't sure about jaeger and otel, maybe that can be changed somewhat too.
Also adding comments and things that are relevant for a prod setup too.
* Update with comments
* Providing dedicated nginx and lemmy conf
* Fix config key for pictrs.
* Fix config key for pictrs.
* updates on naming
* Adding docker compose build info
* Revert to more complete lemmy config
* Test and fix build paths
* Fix otel config
* Delete dev file
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-10-06 19:01:19 +00:00
2ef0f8f5f8
implement language tags for site/community in db and api ( #2434 )
...
* implement language tags for site/community in db and api
* add api checks for valid languages
* during db migration, update existing users, sites, communities to have all languages enabled
* init new users/communities with site languages (not all languages)
* federate site/community languages
* fix tests
* when updating site languages, limit community languages to this subset
also, when making a new post and subset of user lang, community lang
contains only one item, use that as post lang
* add tests for actor_language db functions
* include language list in siteview/communityview
* Fix some of the review comments
* Some more review changes
* Add todo about boxed query
* Add default_post_language to GetCommunityResponse
2022-10-06 14:27:58 -04:00
7bb941e546
Change description in readme ( #2481 )
...
* Change description in readme
* Replace Mastodon contact link with Lemmy support forum
* update text
* remove part about unstable api
2022-10-05 12:25:17 -04:00
290acf6acc
Use compat mode when signing outgoing activities ( fixes #1984 ) ( #2473 )
2022-10-03 13:46:42 -04:00
Dessalines
3f8c28b26f
Check to make sure comment isnt deleted / removed for unread count. ( #2472 )
...
- Fixes #2471
2022-09-29 20:52:14 +00:00
Dessalines
ee41654394
Dont show deleted users or communities on profile page. ( #2450 )
...
* Dont show deleted users or communities on profile page.
- Fixes #2448
* Fix missing communities
* Add include_deleted to resolve_actor_identifier.
2022-09-28 20:54:32 +00:00
Dessalines
ae95f5928e
Adding email admins for new applications. Fixes #2271 ( #2390 )
...
* Adding email admins for new applications. Fixes #2271
* Fix error.
Co-authored-by: Nutomic <me@nutomic.com>
2022-09-27 12:48:44 -04:00
Dessalines
0aeb78b8f3
Showing # of unread comments for posts. Fixes #2134 ( #2393 )
...
* Showing # of unread comments for posts. Fixes #2134
* Fix lint.
* Forgot to remove comment list update.
* Fix clippy
2022-09-27 16:45:46 +00:00
f2537ba7db
Convert emails to lowercase ( fixes #2462 ) ( #2463 )
2022-09-27 12:02:04 -04:00
Dessalines
3c5368d8b1
Remove unnecessary show_deleted_and_removed comments for a profile. ( #2458 )
2022-09-26 20:02:06 +00:00
Dessalines
2dca80d678
Remove pointless language joins. ( #2451 )
...
* Remove pointless language joins.
* Fix test
2022-09-26 15:25:18 +00:00
Dessalines
3adb293541
Fix rate limit error messages. Fixes #2428 ( #2449 )
...
* Fix rate limit error messages. Fixes #2428
* Simplify
2022-09-26 10:40:42 -04:00
Dessalines
9ce15ed071
Fix missing local user from post queries. ( #2447 )
2022-09-26 10:39:22 -04:00
Dessalines
c9f1407429
Diesel 2.0.0 upgrade ( #2452 )
...
* Initial commit to bump diesel to 2.0.0-rc.0 and see what happens
* Add chrono feature from diesel
* db_schema crate is close to building?
* Upgrade diesel-derive-newtype
* Mostly modifying references to connections to be mutable ones; also used
new way to do migrations as suggested by the migration guide; a lot more
compiles now, though I can't figure out this tricky ToSql issue at the
moment
* Running clippy --fix
* Trying to fix drone clippy 1
* Fix clippy
* Upgrade clux-musl
* Trying to fix drone clippy 2
* Trying to fix drone clippy 3
* Trying to fix drone clippy 5
* Adding diesel table aliases, removing sql view hack. Fixes #2101
Co-authored-by: Steven Chu <stevenc1@gmail.com>
Co-authored-by: Nutomic <me@nutomic.com>
2022-09-26 14:09:32 +00:00
kartikynwa
4e6409f325
Allow filtering out of deleted and removed comments when getting person details ( #2446 )
...
undefined
2022-09-20 21:33:33 -04:00
004efd5d94
Implement reports for private messages ( #2433 )
...
* Implement reports for private messages
* finish private message report view + test
* implement api for pm reports
* merge list report api calls into one, move report count to site
* fix compile error
* Revert "merge list report api calls into one, move report count to site"
This reverts commit 3bf3b06a705c6bcf2bf20d07e2819b81298790f3.
* add websocket messages for pm report created/resolved
* remove private_message_report_view
* add joinable private_message_report -> person_alias_1
* Address review comments
2022-09-19 22:58:42 +00:00
Dessalines
09246a20fb
Check for slurs in account creation. ( #2443 )
2022-09-19 19:42:42 +00:00
71aed94a00
Merge branch 'main' of https://github.com/LemmyNet/lemmy
2022-09-14 11:30:44 -04:00
553654b8e8
Add 0.16.7 release notes.
2022-09-14 11:30:40 -04:00
Dessalines
a93095ed3f
The language id is crucial for front ends. ( #2437 )
2022-09-13 21:02:37 +00:00
Dessalines
2f0560ca3f
Update docker version to 0.16.6. Fixes #2435 ( #2438 )
2022-09-12 09:33:49 +00:00
Dessalines
eacd4e44cd
Adding job to drop phantom ccnew indexes. Fixes #2431 ( #2432 )
2022-09-07 12:12:51 +00:00
Dessalines
3f2a689edf
Don't search for community descriptions, search for user display_name. ( #2430 )
...
- https://github.com/LemmyNet/lemmy-ui/issues/756
2022-09-07 08:58:41 +00:00
Dessalines
265dc54627
Increase default search rate limit. ( #2424 )
2022-09-03 11:37:27 +02:00
0a14b17747
fix clippy
2022-09-02 10:49:54 -04:00
3295784ebb
dont set default user languages in api code (already done in db)
2022-09-02 10:49:54 -04:00
095591ef69
dont test with all features
2022-09-02 10:49:54 -04:00
5e8a37ac86
clippy fixes
2022-09-02 10:49:54 -04:00
d058e2217a
api changes for comment language tagging
2022-09-02 10:49:54 -04:00
bc7450ae3e
add test for comment view languages
2022-09-02 10:49:54 -04:00
f5b1ee6c34
fix tests
2022-09-02 10:49:54 -04:00
3d0d8796ad
Add language tags for comments
2022-09-02 10:49:54 -04:00
a6dc6804aa
Pass LocalUser to PostQuery etc, instead of separate params ( #2413 )
2022-08-19 10:27:39 -04:00
e4a49b6eab
Tag posts and comments with language ( fixes #440 ) ( #2269 )
...
* Tag posts and comments with language (fixes #440 )
* Untangle PostView tests
* Implement test for PostView language query
* Store languages directly in database
* finish moving languages into db, it compiles
* update post_view
* serde skip Language.id field
* add local_user_language table, other changes suggested in review
* add code for local_user_discussion_language_view
* Remove unnecessary clones in db view converteres
* Fixing up some table and join issues.
* Clearing the current languages.
* Fix formatting.
* update user languages in single transaction
* proper test for user language queries
* Some fixes for all / missing user languages. (#2404 )
* Some fixes for all / missing user languages.
* Adding back in transaction.
* fix test
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-08-18 15:11:19 -04:00
c89006c94a
Rejected federated pm from blocked users ( fixes #2398 ) ( #2408 )
2022-08-17 16:53:19 -04:00
Dessalines
870abf8442
Adding distinguish comment. Fixes #2002 ( #2391 )
...
* Adding distinguish comment. Fixes #2002
* Adding lemmy:distinguished
2022-08-17 11:38:52 +00:00
583ceb2506
Fix pictrs routing ( #2407 )
...
* SUGGESTED FIX TO PICTRS ROUTING 404 ERROR #2359
Removed slashes at "/image" routes.
* cargo fmt
Co-authored-by: Majid ✨ <72635080+umamawme@users.noreply.github.com>
2022-08-16 11:20:41 -04:00
Dessalines
f878151648
Add postgres auto-explain for dev testing. ( #2399 )
...
* Add postgres auto-explain for dev testing.
* add newline
* fix indent
Co-authored-by: Nutomic <me@nutomic.com>
2022-08-16 12:22:29 +00:00
Anon
21455d6b73
Add Modlog Filters ( #2313 )
...
* Fix crash running locally on windows.
* Add support for filtering mod logs
* Refactor cleanup
* Clippy fix
* Condense match statements
* Clippy fix 2
2022-08-16 11:52:04 +00:00
vpzomtrrfrt
08a797c986
Accept Image objects in attachments ( #2394 )
2022-08-16 10:12:43 +00:00
Dessalines
2f9d8776ac
Tweaking postgres upgrade script ( #2389 )
...
* Tweaking postgres upgrade script
* Removing pointless comments.
2022-08-04 22:03:14 +02:00
8a4d9cc1ba
Use typed-builder crate for queries ( #2379 )
...
* Use typed-builder crate for PrivateMessageQuery
* derive builder for all queries
* remove unnecessary clones
* fix tests
2022-08-04 15:30:17 -04:00
7094a0c0a4
Use doku release version (ref #2343 ) ( #2386 )
2022-08-02 15:38:19 +02:00
Dessalines
9c3efe32e7
First pass at adding comment trees. ( #2362 )
...
* First pass at adding comment trees.
- Extracted comment replies into its own table.
- Added ltree column to comment
- Added parent_id param to GetComments to fetch a tree branch
- No paging / limiting yet
* Adding child_count to comment_aggregates.
* Adding parent comment update counts
* Fix unit tests.
* Comment tree paging mostly done.
* Fix clippy
* Fix drone tests wrong postgres version.
* Fix unit tests.
* Add back in delete in unit test.
* Add postgres upgrade script.
* Fixing some PR comments.
* Move update ltree into Comment::create
* Updating based on comments.
* Fix send soft fail.
2022-07-30 05:55:59 +02:00
becb8b4f66
Update apub examples to remove to
field (ref #2380 ) ( #2382 )
2022-07-29 13:30:38 -04:00
a85334c675
Handle Like, Undo/Like activities from Mastodon, add tests ( fixes #2378 ) ( #2380 )
2022-07-29 15:32:12 +02:00
Dessalines
8bfeb4b627
Fix a few form options for diesel. Fixes #2287 ( #2376 )
...
* Fix a few form options for diesel. Fixes #2287
* Adding TODO comment.
2022-07-29 15:04:21 +02:00
42eac1560f
Remove docker/pleroma/ folder ( #2381 )
2022-07-29 08:37:23 -04:00
Dessalines
3b86e15399
Remove listing type community. Fixes #2361 ( #2377 )
...
* Remove listing type community. Fixes #2361
* Have ListingType::All be the default
2022-07-29 10:57:39 +00:00
b78826c2c8
Dont allow login if account is banned or deleted ( fixes #2372 ) ( #2374 )
2022-07-28 23:14:07 +02:00
Dessalines
c62671116c
Send websocket message on accepted follow. Fixes #2369 ( #2375 )
2022-07-28 15:49:26 +00:00
b9f1fc0518
Fix panics in search_by_apub_id() ( fixes #2371 ) ( #2373 )
2022-07-27 17:03:44 -04:00
eee8f467b5
Fix follow being stuck as pending after accept ( #2366 )
...
* Fix follow being stuck as pending after accept
* fix api test
2022-07-20 14:10:29 +00:00
767f1aa0de
Adding 0.16.6 release
2022-07-19 15:01:15 -04:00
16fe149a6d
Change config pictrs key name ( #2360 )
2022-07-14 14:25:10 -04:00
d0a3d99636
Config changes, remove unused image purge function ( #2343 )
...
* Throw error if old pictrs config item is used, make api key optional
* use doku url feature
* fix doku version
* fix clippy
* remove unused image purge function, remove config migration
2022-07-11 16:38:37 -04:00
63fff96275
Fix problem where actors can have empty public key ( fixes #2347 ) ( #2348 )
2022-07-11 18:25:33 +00:00
Luna
e33736ae47
remove parking_lot ( #2350 )
2022-07-11 17:12:12 +00:00
Dessalines
67a34adf4b
Revert "Use correct url for activitystreams protocol context ( #2326 )" ( #2351 )
...
This reverts commit dc35ab9c2b
.
2022-07-08 10:47:40 +00:00
Dessalines
ff026dc3ff
Adding check for requests with no id or name, adding max limit. ( #2265 )
...
* Adding check for requests with no id or name, adding max limit.
* Consolidating a few functions.
* Fix page min
* Adding more websocket rate limits.
* Add check to GetCommunity
* Use a default message rate limit check.
* Adding a page and limit checker
* Fix clippy
* Fix clippy again
* Adding check for requests with no id or name, adding max limit.
* Consolidating a few functions.
* Fix page min
* Adding more websocket rate limits.
* Add check to GetCommunity
* Use a default message rate limit check.
* Adding a page and limit checker
* Fix clippy
* Fix clippy again
* Fix limit request.
* Move checks to inside limit_and_offset
* Fixing API tests.
* Change NotFound diesel errors to QueryBuilderError
2022-07-08 10:21:33 +00:00
3ef812660c
Dont allow blocking admin ( #2340 )
2022-07-05 23:02:54 +00:00
ddc9763050
Fix wrong clippy warning in ci ( #2339 )
2022-07-05 17:41:22 -04:00
b7a2677b4d
Be more explicit about returning deleted actors or not ( #2335 )
...
* Be more explicit about returning deleted actors or not
* simplify db queries
2022-07-05 17:40:44 -04:00
587a0de8f7
Specify minimum Rust version 1.57 ( fixes #2333 ) ( #2334 )
...
* Specify minimum Rust version 1.57 (fixes #2333 )
* use latest rust for clippy
* use rust 1.60 for clippy
* no add component
* use official rust docker
* comments
2022-06-28 17:44:55 -04:00
Dessalines
a745fa6f43
Remove update and read site config. Fixes #2306 ( #2329 )
...
* Remove update and read site config. Fixes #2306
* Removing lazy_static, removing Settings::get()
2022-06-22 20:24:54 +00:00
Dessalines
8af913f583
Don't create or initially follow a default community. Fixes #2317 ( #2328 )
...
* Don't create or initially follow a default community. Fixes #2317
* Fix unit tests.
2022-06-22 19:38:27 +00:00
Dessalines
40609549d8
Increase RSS fetch limit to 20. Fixes #2319 ( #2327 )
2022-06-22 12:30:09 +00:00
Dessalines
92d17639cd
Expose pending 2 ( #2282 )
...
* Exposing SubscribedType. Fixes #2281
* Fixing other subscribed fields.
* Fix federation tests
* Add comment about follower row.
2022-06-22 12:05:41 +00:00
dc35ab9c2b
Use correct url for activitystreams protocol context ( #2326 )
2022-06-21 15:27:10 -04:00
cd4d235171
Move setting http_fetch_retry_limit into federation block ( #2314 )
2022-06-14 01:20:30 -04:00
c78de25652
Fix length of post_report.original_post_name db field ( fixes #2311 ) ( #2315 )
2022-06-14 01:20:01 -04:00
Dessalines
4e12e25c59
Adding admin purging of DB items and pictures. #904 #1331 ( #1809 )
...
* First pass at adding admin purge. #904 #1331
* Breaking out purge into 4 tables for the 4 purgeable types.
* Using CommunitySafe instead in view
* Fix db_schema features flags.
* Attempting to pass API key.
* Adding pictrs image purging
- Added pictrs_config block, for API_KEY
- Clear out image columns after purging
* Remove the remove_images field from a few of the purge API calls.
* Fix some suggestions by @nutomic .
* Add separate pictrs reqwest client.
* Update defaults.hjson
Co-authored-by: Nutomic <me@nutomic.com>
2022-06-13 19:15:04 +00:00
trwnh
5b7376512f
Fix: Use correctly parseable JSON-LD context ( #2299 )
...
* Fix: Use correctly parseable JSON-LD context
* Changed: Better ordering for context document
alphabetized properties
* Changed: Use xsd types instead of schema.org types
* Changed: use simple namespacing
2022-06-13 13:26:56 +00:00
a29cf04092
Fix lemmy version in prod docker-compose.yml ( #2304 )
2022-06-08 11:48:36 -04:00
fcaf7a084c
Upgrade activitypub_federation to 0.2.0, add setting federation.debug ( #2300 )
2022-06-08 11:45:39 -04:00
7bc2f9fd6d
Remove unused setup config vars ( #2302 )
2022-06-08 11:44:53 -04:00
c050945b1f
Add pub use for db crates in api_common ( #2305 )
2022-06-08 11:30:20 -04:00
23819d44f3
Add link to Matrix chat in readme ( #2303 )
2022-06-08 11:19:12 -04:00
7804a9d893
Accept private like ( #1968 ) ( #2301 )
2022-06-08 11:14:38 -04:00
Dessalines
916c53ccec
Move different features drone check to below defaults.hjson check. ( #2296 )
2022-06-06 12:09:43 +00:00
Paolo Barbolini
0a3b69a259
Bump lettre to 0.10.0-rc.7 ( #2297 )
2022-06-04 22:07:38 -04:00
780832256c
Remove unused cargo.toml files ( #2293 )
2022-06-03 15:56:33 +00:00
5387c262c1
Forbid outgoing requests in activitypub tests ( fixes #2289 ) ( #2294 )
2022-06-03 11:31:22 -04:00
339eab01fd
Embed Peertube videos ( #2261 )
...
* Use og:video attribute for embeds, change Post.embed_html to embed_url
* fix clippy
2022-06-02 21:44:47 +00:00
9a458d2e4b
Run cargo check for each crate with different features (ref #2284 ) ( #2292 )
2022-06-02 18:19:53 +00:00
13ca1111c4
Remove 0.15 federation compat code ( #2131 )
2022-06-02 13:48:53 -04:00
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
1bd57ee5ca
Version 0.16.5
2022-05-30 18:32:31 -04:00
9b9b7b16c8
Merge branch 'main' of https://github.com/LemmyNet/lemmy
2022-05-27 09:49:40 -04:00
09454f3e49
Update releases.md
2022-05-27 09:48:11 -04:00
205b4a22a8
Merge pull request #2284 from LemmyNet/fix_publish
...
Fix publish
2022-05-27 11:21:49 +00:00
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
3af4a27a88
Merge pull request #2248 from LemmyNet/expose_pending
...
Add pending, and change use specific API response for FollowCommunity…
2022-05-20 16:31:56 +00:00
3c111b3062
Dropping default on pending column.
2022-05-20 16:15:14 +00:00
d4ee171b08
Making community_follower.pending column not null.
2022-05-20 16:15:14 +00:00
763dc9668c
Fix formatting.
2022-05-20 16:15:14 +00:00
e6fe9d0325
Fixing unfollow
2022-05-20 16:15:14 +00:00
ed9b66541e
Fixing API tests.
2022-05-20 16:15:14 +00:00
48f5a2ee5e
Add pending, and change use specific API response for FollowCommunity. Fixes #2246
2022-05-20 16:15:14 +00:00
7566f325cd
Downgrade Rust Docker images to 1.59 to fix CI failures (ref #2263 ) ( #2274 )
2022-05-20 13:29:04 +00:00
9ef0efa420
Add legal information ( fixes #721 ) ( #2273 )
2022-05-19 20:32:40 +00:00
60e9586530
Add drone task for nightly build ( #2264 )
2022-05-19 20:30:16 +00:00
Dessalines
be246425f0
Merge pull request #2267 from LemmyNet/update-image
...
Update image crate
2022-05-17 14:03:07 -04:00
426e1b1e51
Update image crate
2022-05-17 13:48:47 -04:00
Dessalines
144336b8b1
Merge pull request #2263 from LemmyNet/fix-ci-unsafe-repo
...
Fix CI failures
2022-05-17 13:44:09 -04:00
562b88da9e
Remove youtube metadata test
2022-05-17 16:26:36 +02:00
26d5b38115
Fix CI failures
2022-05-16 13:50:41 +02:00
91d1d5f7ff
Merge pull request #2260 from LemmyNet/fix_email_param_order
...
Fixing malformed rosetta translations. Fixes #2231
2022-05-16 10:58:58 +00:00
5eb0dfdc73
Fixing malformed rosetta translations. Fixes #2231
2022-05-13 12:24:29 -04:00
bd9df834f5
Merge pull request #2253 from LemmyNet/optional-opentelemetry
...
Make opentelemetry dependency optional
2022-05-11 12:54:21 +00:00
80684de7da
Make opentelemetry dependency optional
2022-05-11 14:29:01 +02:00
f0ec3015cd
Remove check that avatars/banners are locally hosted ( fixes #2254 ) ( #2255 )
2022-05-10 17:08:13 +00:00
99f3141841
Update to Rust 1.60 ( #2247 )
2022-05-10 17:04:40 +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
7b86441bab
Federate with Peertube ( #2244 )
2022-05-06 23:53:33 +00:00
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
3aa3d75a1e
Add cargo feature for building lemmy_api_common with mininum deps ( #2243 )
2022-05-03 17:44:13 +00:00
dd5835fb6e
Add restricted community field to CreateCommunity, UpdateCommunity (ref #2235 ) ( #2242 )
2022-04-29 14:01:10 +00:00
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
Rens Groothuijsen
9c1b9ff3cf
Update community statistics after post or comment is deleted by user ( #2193 )
...
* Update community statistics after post or comment is deleted by user
* Update triggers for site and person aggregates
* Restore comment counts when post is restored
* Simplify insertion/deletion trigger checks before updating statistics
2022-04-27 16:12:41 +00:00
c718882479
Accept comments with hashtags from Friendica ( #2236 )
2022-04-27 16:12:13 +00:00
2e01e8e42c
Remove unused dependencies ( #2239 )
2022-04-27 17:56:05 +02:00
56b7030901
Fix link metadata unit test ( #2237 )
2022-04-27 15:42:10 +00:00
3488b9aeb5
Dont return "admin" for GET user when no id/name is provided ( fixes #1546 ) ( #2233 )
2022-04-25 21:16:29 +00:00
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
7e13406979
Require registration application by default ( #2229 )
2022-04-19 19:13:20 +00:00
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
3951a16447
Split apart api files ( #2216 )
2022-04-13 18:12:25 +00:00
ce4682caa0
Merge pull request #2213 from LemmyNet/change_default_listing_type
...
Changing default listing type to Local from Subscribed.
2022-04-13 17:48:47 +00:00
0372029e8d
Changing default listing type to Local from Subscribed.
2022-04-13 17:35:21 +00:00
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
Dessalines
0d9b756b75
Adding lemmy_ui_debug for future debug testing. ( #2211 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2022-04-13 11:53:21 +00:00
Dessalines
2985e88a49
Fixing generate unique changeme ( #2205 )
...
* Fixing generate unique changeme
* Fixing generate unique changeme 2
* Changing link to .invalid domain.
Co-authored-by: Nutomic <me@nutomic.com>
2022-04-13 11:13:29 +00:00
bbd739af9b
Change Person, Instance types ( #2200 )
2022-04-12 17:10:35 +00:00
2180bd0369
Merge pull request #2207 from LemmyNet/clippy_fix_2
...
Clippy fixes.
2022-04-12 10:16:10 +00:00
b47a474863
Merge branch 'main' into clippy_fix_2
2022-04-12 10:03:40 +00:00
fed73a72c1
Write mod log for federated sticky/lock post actions ( #2203 )
2022-04-11 23:03:31 +00:00
0bcdfa8be4
Clippy fixes.
2022-04-11 18:51:11 -04:00
a7540bd59f
Adding 0.16.3 release.
2022-04-08 13:09:17 -04:00
c232564fda
Version 0.16.3
2022-04-08 10:20:31 -04:00
4878848955
Version 0.16.3-rc.1
2022-04-08 09:17:00 -04:00
4052900d30
Updating translations
2022-04-08 09:13:46 -04:00
8337eaefdd
Federate user account deletion ( fixes #1284 ) ( #2199 )
2022-04-07 20:52:17 +00:00
9ac1f46a2b
Dont federate initial upvote ( #2196 )
2022-04-07 20:46:10 +00:00
f9d563d80a
Add missing mod log entries for federated actions ( fixes #1489 ) ( #2198 )
2022-04-07 20:44:28 +00:00
b41f7f3eca
Merge pull request #2192 from LemmyNet/mandatory_questionnaire
...
Make sure application questionaire is required. Fixes #2189
2022-04-05 10:47:59 +00:00
1e2d2ecbae
Merge branch 'main' into mandatory_questionnaire
2022-04-05 10:36:13 +00:00
b5d0a9322a
Merge pull request #2194 from LemmyNet/upgrade_pictrs_8
...
Upgrading pictrs.
2022-04-05 10:26:00 +00:00
ef08870ce5
Upgrading pictrs.
2022-04-04 21:31:17 -04:00
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
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
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
bfae246734
Migrate towards using page.attachment field for url (ref #2144 ) ( #2182 )
2022-04-01 18:25:19 +00:00
56b275acd4
Exclude removed/deleted posts from community outbox ( #2184 )
2022-04-01 18:18:25 +00:00
589d952a95
Fetch community outbox in parallel ( fixes #2180 ) ( #2181 )
2022-04-01 18:06:23 +00:00
4597ea2017
Merge pull request #2178 from LemmyNet/fix_ban_expires
...
Adding a ban expires update job. Fixes #2177
2022-03-31 12:05:17 +00:00
4cf0da7b60
Clippy fixes.
2022-03-30 10:58:03 -04:00
3ad172e8ed
Adding a ban expires update job. Fixes #2177
2022-03-30 09:56:23 -04:00
ad7e6d99ed
Add email translations ( #2175 )
2022-03-29 18:23:03 +00:00
Dessalines
2e65b31aa6
Fix arm submodule ( #2174 )
2022-03-29 18:05:18 +00:00
d5a213760d
Version 0.16.2
2022-03-29 12:56:21 -04:00
Dessalines
11b7525c41
Add update translations script. ( #2173 )
2022-03-29 16:54:16 +00:00
f7fa1f10f9
Updating translations.
2022-03-29 12:07:39 -04:00
7bb8069224
Version 0.16.2-rc.3
2022-03-29 11:54:13 -04:00
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
f6b543ae0f
Add tag to lemmy-ansible. ( #2172 )
2022-03-29 15:36:59 +00:00
Dessalines
052e509954
Fixing release script. ( #2170 )
2022-03-29 15:23:39 +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
f21f2fd7b0
Delete unused diesel.toml file ( #2166 )
2022-03-28 18:29:11 +00:00
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
Dessalines
483e7ab168
Doing tests in sequential order. Fixes #2158 ( #2163 )
...
* Doing tests in sequential order. Fixes #2158
* Doing tests in sequential order. Fixes #2158
* Fixing order 1
2022-03-25 19:00:33 +00:00
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
c681bb79b1
Version 0.16.2-rc.1
2022-03-24 18:25:21 -04:00
e208f0cb4d
Merge pull request #2160 from LemmyNet/rate_limit_websocket_fail
...
Fix rate limit check for register. Fixes #2159
2022-03-24 21:43:02 +01:00
2da0684e95
Removing check_only
2022-03-24 16:29:08 -04:00
ed9f70276d
Fix rate limit check for register. Fixes #2159
2022-03-24 16:13:58 -04:00
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
83e996111e
Check that config is valid before saving ( #2152 )
2022-03-24 16:23:12 +00:00
b406342a14
Dont log error if duplicate activity is received ( fixes #2146 ) ( #2148 )
2022-03-24 16:05:27 +00:00
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
ecd157d4a7
Update pictrs to 0.3.0-rc.7 ( #2149 )
2022-03-24 01:57:40 +00:00
01cdac012f
Merge pull request #2139 from LemmyNet/add_jerboa_link
...
Add jerboa link to readme. Fixes #2137
2022-03-23 21:48:25 +00:00
6616e89bcf
Merge branch 'main' into add_jerboa_link
2022-03-23 21:33:07 +00:00
8112816e99
If viewed actor isnt in db, fetch it from other instance ( #2145 )
2022-03-23 21:27:51 +00:00
0c63dbafb6
Merge pull request #2138 from LemmyNet/rate_limit_algorithm_desc
...
Show rate limit algorithm. Fixes #2136
2022-03-23 14:48:09 +00:00
0d0772a48a
Merge branch 'main' into rate_limit_algorithm_desc
2022-03-23 14:33:03 +00:00
cda93e08d8
Merge branch 'main' into add_jerboa_link
2022-03-23 14:30:06 +00:00
7be5fa4a47
Merge pull request #2147 from LemmyNet/fixing_api_tests_1
...
Fixing api tests 1
2022-03-23 14:29:46 +00:00
500ca15893
Trying to fix api tests 2
2022-03-22 18:06:59 -04:00
5698dd7771
Trying to fix api tests 1
2022-03-22 15:50:47 -04:00
4e6d901649
Show rate limit algorithm. Fixes #2136
2022-03-22 18:45:14 +00:00
a10bf7d410
Adjust retry interval for sending activities ( #2141 )
2022-03-22 18:40:40 +00:00
5a245659c8
Add jerboa link to readme. Fixes #2137
2022-03-22 18:32:50 +00:00
5265f6100e
Restore prod docker-compose.yml
2022-03-19 12:21:07 -04:00
bcf7ec6109
Forbid remote URLs for avatars/banners ( fixes #1618 ) ( #2132 )
2022-03-18 15:46:58 +00:00
611d336f94
Remove docker/prod unused files ( fixes #2086 ) ( #2133 )
2022-03-17 16:28:35 +00:00
166ec196b0
Rework error handling ( fixes #1714 ) ( #2135 )
2022-03-16 20:11:49 +00:00
d3d4e76a19
Adding release notes.
2022-03-15 17:29:05 -04:00
514e2301b5
Version 0.16.1
2022-03-15 17:23:16 -04:00
9fd6a48e3c
Version 0.16.1-rc.1
2022-03-15 16:52:37 -04:00
7d61616dff
Revert "Add logging to debug federation issues (ref #2096 ) ( #2099 )" ( #2130 )
...
This reverts commit e094989a4c
.
2022-03-14 20:18:19 +00:00
550a93aed9
Dont allow admin to add mod to remote community ( #2129 )
2022-03-14 18:35:57 +00:00
f8fb3b41f0
Reject federated downvotes if downvotes are disabled ( fixes #2124 ) ( #2128 )
2022-03-14 18:20:18 +00:00
71237f1b53
Add Release notes.
2022-03-08 13:54:25 -05:00
05f20da51f
Version 0.16.0
2022-03-08 13:45:01 -05:00
82dec1911f
Version 0.16.0-rc.4
2022-03-08 08:57:57 -05:00
660efd1549
Correctly read local SiteView ( #2122 )
2022-03-08 12:52:33 +00:00
15ff832c4a
Version 0.16.0-rc.3
2022-03-07 18:59:29 -05:00
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
fbadb2d7bd
Try to fix federation test on ci ( #2121 )
2022-03-07 21:25:34 +00:00
aef2abb962
Version 0.16.0-rc.2
2022-03-03 14:40:09 -05:00
df757f28b4
Make delete activities backwards compatible with 0.15 ( #2114 )
2022-03-03 19:37:12 +00:00
ef1e164cc5
Make activity queue worker count configurable, log stats ( #2113 )
2022-03-03 18:54:33 +00:00
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
46e937d6e6
Merge pull request #2115 from LemmyNet/fix_tests_1
...
Fixing unit tests.
2022-03-03 18:13:09 +00:00
a5433ebf77
Fixing unit tests.
2022-03-03 12:51:55 -05:00
0d957a2a27
Merge pull request #2111 from robjtede/aw4
...
Update `actix-*` dependencies to stable v4.
2022-03-02 20:59:51 +00: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
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
63565712ad
Fix resending activities ( fixes #1282 ) ( #2109 )
2022-03-01 13:40:05 -05:00
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
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
762b85b27e
Reorganize federation tests ( #2092 )
...
* Reorganize apub protocol tests
* Reorder apub protocol struct members to clarify mandatory/optional fields
2022-02-17 22:04:01 +00:00
e094989a4c
Add logging to debug federation issues (ref #2096 ) ( #2099 )
2022-02-17 18:48:45 +00:00
Dessalines
81aa39ba68
Adding a reqwest timeout. Fixes #2089 ( #2097 )
2022-02-15 12:53:57 +00:00
5a8c894359
Upgrade to Rust 2021 edition ( #2093 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-02-14 15:34:54 +00:00
788924d7ff
Merge different delete activities for better compatibility ( fixes #2066 ) ( #2073 )
2022-02-14 10:14:24 -05:00
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
2022-02-07 19:23:12 +00:00
f1aef63149
Use doku(skip) for opentelemetry_url config value (ref #2085 ) ( #2091 )
2022-02-07 10:39:37 -05:00
51fd3e7f77
Merge pull request #2085 from LemmyNet/asonix/document-opentelemetry-url
...
Add comment about opentelemetry_url
2022-02-04 21:46:38 -06:00
6b500f6cf2
Merge branch 'main' into asonix/document-opentelemetry-url
2022-02-04 21:22:27 -06:00
0f8caac689
Merge pull request #2087 from LemmyNet/asonix/console-feature
...
Add console feature flag, not default
2022-02-04 21:22:07 -06:00
14b27b8377
Merge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/console-feature
2022-02-04 20:37:57 -06:00
1546e5fd0d
Merge remote-tracking branch 'lemmynet/fix_sitemetadata_test' into asonix/document-opentelemetry-url
2022-02-04 20:37:38 -06:00
609d2b99f7
Fix site metadata test.
2022-02-04 18:22:43 -05:00
2e5746b74f
Add console feature flag, not default
...
The most recent tracing-core changed the number of variants on metadata::Kind,
which broke console-api 0.1.1, and no fix has been applied yet. To avoid build
failures, disable console-subscriber for now
2022-02-04 11:31:38 -06:00
6058b11f6e
Add comment about opentelemetry_url
2022-02-03 17:24:19 -06:00
Dessalines
6b1894faf0
Alpha-ordering community follows. Fixes #2062 ( #2079 )
2022-02-01 20:00:54 +00:00
Dessalines
2ac6e1a463
Adding a test comment. ( #2081 )
2022-02-01 18:19:07 +00:00
Dessalines
d71e1c06e2
Adding codeowners. ( #2080 )
2022-02-01 16:37:30 +00:00
2fa47aaef9
Remove commit hook ( #2078 )
2022-01-31 19:20:31 -05:00
7560e0ec8e
Dont update default config in commit hook ( #2075 )
2022-01-29 18:50:56 -05:00
545fe8d0dd
Add federation tests for Friendica, improve parsing of source field ( fixes #2057 ) ( #2070 )
2022-01-28 16:47:34 -05:00
Dessalines
a8d17c7847
Update issue templates ( #2069 )
2022-01-27 16:32:12 -05:00
18f63f0f01
Updating releases.md
2022-01-27 14:11:38 -05:00
4a23ee4d8b
Dont make webfinger request when viewing community/user profile ( fixes #1896 ) ( #2049 )
2022-01-27 16:39:22 +00:00
Dessalines
d83a53e905
Fixing private instance check. Fixes #2064 ( #2065 )
2022-01-27 16:25:22 +00:00
Kradyz
1c5c02e1bf
Case-insensitive username at login ( #2010 )
...
* Case-insensitive username at login
* formatting
Co-authored-by: Kradyz <k@radiz.nl>
2022-01-26 18:05:07 +00:00
Dessalines
e36ad9d984
Removing the site creator, adding leave_admin. Fixes #1808 ( #2052 )
...
* Removing the site creator, adding leave_admin. Fixes #1808
* Making sure there's at least one admin. Fixing unit tests
2022-01-26 17:57:16 +00:00
Dessalines
1372827b41
Adding starttls support. Fixes #1997 ( #2051 )
...
* Adding starttls support. Fixes #1997
* Change name to tls_type, make a string
2022-01-26 16:42:43 +00:00
2544341e47
Put community last in webfinger response ( fixes #2037 ) ( #2047 )
2022-01-21 21:00:17 +00:00
16f98261f8
Dont check for ban in MarkCommentAsRead ( fixes #2045 ) ( #2054 )
2022-01-21 14:46:43 -05:00
Dessalines
16271b0a4c
Empty post bodies ( #2050 )
...
* Cleaning optional post bodies. Fixes #2039
* Only trim once.
* Using .map() instead.
* Revert "Using .map() instead."
This reverts commit a2f49072095e0c0622c4a7d041dcea81e11fe1dc.
2022-01-21 13:38:01 +00:00
f23fed70bc
Add tombstone tests, better test errors ( #2046 )
2022-01-20 14:13:29 +00:00
vpzomtrrfrt
272dc3e7a6
Accept single object as to for arrays too ( #2048 )
2022-01-20 14:12:45 +00:00
Dessalines
19ccaf767c
Cleaning optional post bodies. Fixes #2039 ( #2043 )
...
* Cleaning optional post bodies. Fixes #2039
* Only trim once.
* Using .map() instead.
2022-01-20 14:04:54 +00:00
Dessalines
a212f6b780
Fixing liking comment on blocked person. Fixes #2033 ( #2042 )
2022-01-19 14:17:18 +00:00
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)
2022-01-17 09:40:47 -05:00
bc8ed1e6da
Remove unneeded dependency on activitystreams ( #2034 )
2022-01-13 00:17:00 +00:00
55bb68f6f9
Updating readme.
2022-01-12 09:52:21 -05:00
f53902ecff
Version 0.15.1
2022-01-12 09:45:29 -05:00
46e6affd54
Adding v0.15.0 release notes.
2022-01-12 09:22:38 -05:00
bccb4f068d
Version 0.15.0
2022-01-12 08:46:35 -05:00
Marty
a860e22b85
uses compatable images - fixes GLIBC_2.29 not found issue on (at least) arm machines ( #2028 )
2022-01-10 10:48:55 -05:00
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
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
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
e864685759
Merge pull request #1927 from LemmyNet/add_banned_persons_endpoint
...
Adding a banned endpoint for admins. Removing it from GetSite. Fixes …
2022-01-05 14:04:26 +00:00
bd31475dba
Adding a banned endpoint for admins. Removing it from GetSite. Fixes #1806
2022-01-04 09:50:30 -05:00
b733df2903
Merge pull request #2016 from robjtede/aw-b18
...
Updated actix-web dependency to `4.0.0-beta.18`
2022-01-04 14:40:54 +00: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
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
1880d64235
Upgrading pictrs. ( #1996 )
2021-12-14 13:24:33 +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
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
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
Dessalines
7d07bc16ae
Merge pull request #1978 from LemmyNet/asonix/reqwest-middleware
...
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-08 10:51:46 -05:00
5b3d707d8f
Use from_message for static error string
2021-12-07 17:17:19 -06:00
2cf3278724
Update deps
2021-12-06 18:12:04 -06:00
97ebf2f6f3
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-06 16:54:34 -06:00
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
Marcin Wojnarowski
4a541a25ab
Change lemmur repo links ( #1977 )
2021-12-06 08:17:59 -05:00
Marty
8ce0c6d618
added deps - git and ca-certificates (for federation to work) and changed adduser to useradd so that user can be added non-interactively ( #1976 )
2021-12-06 01:35:50 +01: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
8bf0f31b0f
Merge pull request #1962 from vpzomtrrfrt/oneormany2
...
Allow single item for to, cc, and @context
2021-12-03 12:50:52 +00: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
27a687bcd0
Dont send email notifications for edited comments ( fixes #1925 )
2021-11-24 22:29:29 +01:00
97b8b9c255
Version 0.14.3
2021-11-23 14:39:55 -05:00
Dessalines
7363b19f01
Merge pull request #1951 from LemmyNet/fix_ap_id_dupes_query
...
Fix API dupes query. #1878
2021-11-23 14:37:58 -05:00
f6b96370b8
Fix API dupes query. #1878
2021-11-23 14:30:16 -05:00
7f01d8cde6
Version 0.14.2
2021-11-23 11:48:49 -05:00
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
1579ee566f
background-jobs 0.11 ( #1943 )
2021-11-23 12:20:01 +00:00
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
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
76c4378011
Merge pull request #1936 from LemmyNet/required_public_key
...
Making public key required. Fixes #1934
2021-11-22 15:37:05 +00:00
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
afccd5cf69
Replace activitystreams crate with activitystreams-kinds
2021-11-22 14:28:57 +01:00
88e81dce6b
Merge pull request #1921 from LemmyNet/fix_login
...
Fix login ilike bug. Fixes #1920
2021-11-22 13:05:57 +00:00
ae153dc243
Merge pull request #1930 from Minoru/bugfix/nodeinfo-links
...
Change NodeInfo `links` to an array
2021-11-22 12:45:13 +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
e58c2048ed
Fixing fuzzy_search to escape like chars.
2021-11-19 15:07:20 -05:00
Dessalines
ffc898a7b8
Merge pull request #1924 from LemmyNet/fix-1914
...
Fix build error in #1914
2021-11-19 12:42:48 -05:00
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
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
da89ea22fb
Fix Smithereen webfinger, remove duplicate webfinger impl ( fixes #1916 )
2021-11-18 19:28:53 +01:00
aeb34199f5
Dont announce comments, edited posts to Pleroma/Mastodon followers
2021-11-18 18:41:43 +01:00
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
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
8fc252ec55
Merge pull request #1911 from LemmyNet/fix_arm_docker
...
Fixing arm dockerfile.
2021-11-18 11:55:01 +00:00
66ba91de8c
Fixing arm dockerfile.
2021-11-17 16:46:05 -05:00
f4616789a7
Version 0.14.1
2021-11-17 16:25:50 -05:00
8000ee92e1
Merge pull request #1908 from LemmyNet/upgrade_background_jobs
...
Upgrade background jobs
2021-11-17 20:46:19 +00:00
4166f30fb4
Upgrading background-jobs-core and actix. #1820
2021-11-17 14:50:25 -05:00
0845d61d2b
Fixing release
2021-11-17 13:50:03 -05:00
8b45ca0da2
Fixing prod deploy not adding other docker-compose.yml files.
2021-11-17 12:05:02 -05:00
a24683b40c
0.14.0 Release notes.
2021-11-17 12:01:07 -05:00
c29366328e
Version 0.14.0
2021-11-17 11:28:16 -05:00
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
db631005d3
Fix error due to same activity being inserted in database twice
2021-11-16 19:13:05 +01:00
3249060f67
Remove to field from follow activities
2021-11-16 19:13:05 +01:00
20cddf5e81
Support mastodon deletes
2021-11-16 18:07:47 +01:00
7f4a773b88
Create and Note always need to tag parent creator, for mastodon notifications
2021-11-16 18:07:47 +01:00
c1f1b8aa0f
Activities in community should also be sent to actors in cc
2021-11-16 18:07:45 +01:00
dc416bf255
Make http signature compatible with mastodon
2021-11-16 18:06:01 +01:00
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
579ca37ddf
Make webfinger standard compliant
2021-11-16 18:03:09 +01:00
3914c6c875
Merge pull request #1903 from LemmyNet/fix_direct_string_apub_serialize_error
...
Use serde_json::to_value
2021-11-16 17:00:07 +00:00
ec40b4f7fb
Fixing comment report creator. Fixes #1904
2021-11-16 09:59:52 -05:00
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
497564359b
Version 0.14.0-rc.1
2021-11-11 14:57:25 -05:00
Dessalines
3bd827c73a
Temporarily disable arm tests ( #1895 )
...
* Temporarily disable arm tests
* Disable cargo build
2021-11-11 14:49:48 -05:00
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
dbc92d6ee0
Merge pull request #1888 from LemmyNet/test-pleroma-federation
...
Add docker setup for testing Pleroma federation
2021-11-11 08:52:26 -05:00
135fd6864b
Add docker setup for testing Pleroma federation
2021-11-11 14:26:46 +01: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
9a1fe154db
Remove header guard for activitypub routes
2021-11-10 15:08:33 +01:00
2ed58aeda6
Merge pull request #1889 from LemmyNet/update_docker_images
...
Updating rust musl images
2021-11-10 13:45:49 +00:00
f035af3738
Fixing clippy
2021-11-09 17:31:28 -05:00
5b3be5c102
Updating rust musl images
2021-11-09 17:16:59 -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
Dessalines
c03689ed4c
Merge pull request #1887 from LemmyNet/federate-smithereen
...
Add federation test cases for Smithereen and Mastodon
2021-11-09 12:26:41 -05:00
5319046dc7
Add federation test cases for Smithereen and Mastodon
2021-11-09 17:16:58 +01:00
Dessalines
5d321949e6
Merge pull request #1877 from LemmyNet/refactor-apub-2
...
Refactor apub 2
2021-11-08 10:25:25 -05:00
c21c142a9a
Include apub context from file, so that it can be embedded in docs
2021-11-08 16:04:02 +01:00
252d87d332
Fix clippy error
2021-11-08 13:16:14 +01:00
888e683856
For verify_is_public() we also need to check cc field
2021-11-06 18:44:34 +01:00
a5a674a270
Add method ApubObject.verify()
2021-11-06 18:35:14 +01:00
02ce7bdc7d
Remove unused ActorType methods
2021-11-06 15:01:00 +01:00
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
c725514841
Change to_apub and from_apub to take by value and avoid cloning
2021-11-06 14:47:58 +01:00
Dessalines
44b5fe0631
Stop using lemmy-ui:dev images ( #1880 )
...
* Stop using lemmy-ui:dev images
* Dont publish dev docker images with drone.
2021-11-05 21:49:15 +00:00
2edf8ba157
Move ObjectId to library
2021-11-05 21:37:46 +01:00
bd3352423a
Remove ActivityFields trait, deserialize into another struct instead
2021-11-05 21:14:19 +01:00
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
41f7bcc0d2
Correctly use and document check_is_apub_id_valid() param use_strict_allowlist
2021-11-02 21:39:06 +01:00
b396344eae
Merge two functions into one
2021-11-02 21:39:06 +01:00
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
Dessalines
87bc2763ce
Fix husky fmt hook. ( #1868 )
...
* Fix husky fmt hook.
* Change to use default cargo
* Using nightly check
2021-11-02 15:15:19 +00:00
0bde2d595e
Add tests for parsing activities and collections
2021-11-02 12:44:51 +01:00
aaaf039779
Move apub test files into tree structure
2021-10-29 16:54:19 +02:00
03d8ac75ef
Move activity structs to protocol folder
2021-10-29 12:50:32 +02:00
5ff044346f
Move object and collection structs to protocol folder
2021-10-29 12:50:32 +02:00
358ef99ea2
Rewrite community followers and user outbox to use our own structs
2021-10-29 12:50:32 +02:00
d89156810d
Move @context out of object/activity definitions
2021-10-29 12:50:32 +02:00
2d04ff93f5
Change activity.cc to Vec<Url> in public activities
2021-10-29 12:50:32 +02:00
271785b7fb
When receiving activity, dont read community from cc (for pleroma compat and better verification)
2021-10-29 12:50:30 +02:00
74523fb534
Make Note.context optional for pleroma compat (hack)
2021-10-29 12:45:54 +02:00
03b8ae7215
Activity.to should always be a vec (and unspecified size for public activities)
2021-10-29 12:45:54 +02:00
614490d29b
Fix problem that prevented viewing of pleroma user profiles
2021-10-29 12:45:53 +02:00
0af047dd83
Rewrite community moderators collection
2021-10-29 12:45:53 +02:00
6792e376b4
Rewrite community outbox to use new fetcher
2021-10-29 12:45:53 +02:00
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
Dessalines
90a5febd38
Remove ansible from this repo. ( #1829 )
...
* Remove ansible from this repo.
* Adding a git push.
2021-10-27 12:09:00 -04:00
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
f4bac6a17f
Merge remote-tracking branch 'origin/main'
2021-10-22 13:32:17 -04:00
7bfe59a89f
Format config/defaults.hjson before committing ( #1860 )
2021-10-22 13:29:47 -04:00
40264c17a0
Version 0.13.5-rc.7
2021-10-22 13:26:00 -04:00
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
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
21304e6751
Create a custom pre-commit hook, generates config/defaults.hjson ( #1857 )
...
* Create a custom pre-commit hook, generates config/defaults.hjson (fixes #1836 )
* invalid defaults file
* Revert "invalid defaults file"
This reverts commit 76d2c303e293b13d581f9c5aa2944caedb2f530b.
2021-10-21 12:57:09 -04:00
Dessalines
9e0fa99c69
Merge pull request #1850 from LemmyNet/refactor-apub
...
Refactor apub
2021-10-20 11:01:04 -04:00
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
f24999027e
Merge crates db_schema and db_queries
2021-10-20 12:28:08 +02:00
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
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
f052e5f1ab
0.13.3 release notes.
2021-10-13 21:28:04 -04:00
f526bce618
Update ansible version
2021-10-13 21:18:55 -04:00
8067244765
Dont swallow API errors ( fixes #1834 ) ( #1837 )
...
Dont swallow API errors (fixes #1834 )
2021-10-13 15:50:21 -04:00
d26255957b
Fix federation of initial post/comment vote ( fixes #1824 ) ( #1835 )
2021-10-13 10:12:41 -04:00
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
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
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
a03727e28a
Add database host back into config file ( #1805 )
2021-09-30 16:45:20 -04:00
b6b045bf76
Update releases.md
2021-09-30 09:17:29 -04:00
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
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 0a970ae1da984791958b01b01d35e64d6f6eb98a.
2021-09-28 11:34:18 -04:00
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
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
329a282aac
Merge branch 'remove_settings_and_secret_singletons_squashed'
2021-09-27 12:34:41 +02:00
8708ad1b44
Moving settings and secrets to context.
2021-09-27 11:25:26 +02:00
cf214ff583
Move jwt secret from config to database ( fixes #1728 )
2021-09-27 11:25:09 +02:00
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
21346eb786
Merge pull request #1785 from LemmyNet/add_cardano_donation_link
...
Add cardano donation link
2021-09-20 15:47:43 +00:00
1e7f3a4b23
Merge pull request #1782 from LemmyNet/password_min_length
...
Set a 10 char minimum password length.
2021-09-20 10:02:30 +00:00
0fbc342fe3
Fix tests
2021-09-19 17:20:47 -04:00
05e91ab9a2
Add cardano donation link
2021-09-19 16:52:16 -04:00
721962589c
Clean up.
2021-09-18 19:53:30 -04:00
1033995801
Set a 10 char minimum password length.
2021-09-18 19:43:08 -04:00
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
007a43c012
Merge pull request #1775 from LemmyNet/add_pictrs_to_ansible
...
Add pictrs to ansible.
2021-09-13 10:02:27 +00:00
f3af561404
Add pictrs to ansible.
2021-09-07 20:11:36 -04:00
2cb0b6756c
Adding 0.12.2 release notes
2021-09-06 11:33:32 -04:00
81c21a5328
Upping ansible version
2021-09-06 11:29:04 -04:00
9a2dc53097
Merge pull request #1770 from LemmyNet/fix/arm_build
...
Fix/arm build
2021-09-06 11:30:40 +00:00
e9891977ee
Version 0.12.2-rc.1
2021-09-05 13:59:28 -04:00
a9a65a0f4f
Try fixing arm build
2021-09-05 13:56:41 -04:00
52e6dcc51c
Upping ansible version
2021-09-04 09:50:14 -04:00
9376c67ade
Adding v0.12.1 release notes.
2021-09-04 09:33:26 -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
8b2491ea23
Fix upgrade note.
2021-09-03 10:56:47 -04:00
0b236a2fc2
Adding v0.12.0 release notes.
2021-09-03 09:29:11 -04:00
df997dff49
Version 0.12.0
2021-09-03 09:23:50 -04:00
83a035082a
Upgrading to lemmy-js-client 0.12.0
2021-09-03 09:21:24 -04:00
e19349343a
Version 0.12.0-rc.2
2021-09-03 08:28:26 -04:00
Dessalines
ed2744201b
Create SECURITY.md ( #1758 )
...
Adding a security.md file.
2021-09-02 12:09:48 +00:00
Dessalines
c654aa3416
Use more generic docker deps. Fixes #1759 ( #1762 )
...
* Use more generic docker deps. Fixes #1759
* Don't use slim
2021-09-02 11:50:20 +00:00
Dessalines
c28c1b4bb3
Trying to fix arm builds. ( #1761 )
...
* Trying to fix arm builds.
* Adding comment
2021-09-02 11:00:45 +00:00
Dessalines
46b223e3c5
Fixing docker-compose prod ( #1741 )
2021-08-31 14:01:36 +00:00
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
0a91a28b27
Reindex tables non-concurrently on startup. Fixes #1726 . #1723 ( #1736 )
2021-08-26 11:49:16 +00:00
da5fdae006
Version 0.12.0-rc.1
2021-08-25 17:28:42 -04:00
a685e33f20
Merge branch 'main' of https://github.com/lemmynet/lemmy
2021-08-25 17:26:28 -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
815b271084
Updating lemmy-js-client.
2021-08-25 13:00:39 -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
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
3b37ea6c8b
Dont append ? to url when cleaning it ( #1716 )
2021-08-21 09:36:33 -04:00
251e0d3b82
Move resolving of activitypub objects to separate api endpoint ( fixes #1584 )
2021-08-20 12:35:50 +02:00
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
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
d8fafc1b03
Merge pull request #1709 from LemmyNet/upgrade_deps_6
...
Upgrading deps
2021-08-18 11:46:11 +00:00
b241bb9cb7
Adding script to upgrade deps, and check for unused ones.
2021-08-17 19:16:20 -04:00
6910e18a83
Adding ModTransferCommunity to modlog in API. Fixes #1437
2021-08-17 17:52:28 -04:00
1f64db6a33
Upgrading deps
2021-08-17 16:31:16 -04:00
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
6fbf6a684c
Make sure bots aren't included in aggregate counts ( #1705 )
...
- Fixes #1648
2021-08-16 20:52:24 +00:00
Dessalines
2966203653
Don't allow deleted users to do actions. Fixes #1656 ( #1704 )
2021-08-16 20:51:08 +00:00
Dessalines
32874163a8
Merge pull request #1703 from shilangyu/patch-1
...
Update lemmy_api_client status in README
2021-08-15 18:19:23 -04:00
Marcin Wojnarowski
fb66b77d67
Update lemmy_api_client status
2021-08-15 22:37:37 +02:00
Dessalines
8a1af056e2
When banning a user, remove communities they've created ( #1700 )
...
- Fixes #1659
2021-08-13 17:39:56 +00:00
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
Dessalines
44716c2f24
Merge pull request #1674 from LemmyNet/crates-io
...
Distribute Lemmy via crates.io
2021-08-11 15:16:42 -04:00
a44b5c9c36
publish to crates.io with normal release script
2021-08-09 18:44:18 +02:00
af6aa3c0bf
Distribute Lemmy via crates.io
2021-08-09 17:29:32 +02:00
Dessalines
9d936a3d85
Merge pull request #1690 from LemmyNet/comment-reply-migration
...
Migrate comment inReplyTo field to single value (ref #1454 )
2021-08-05 11:19:33 -04:00
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
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
6c9e04583d
Merge pull request #1683 from LemmyNet/fix/comment_count_trigger_issues
...
Some comment count fixes.
2021-08-02 12:08:15 +00:00
abd26aeab2
Remove brotli, zstd dependencies
2021-08-02 14:05:39 +02:00
896ba8451c
Some comment count fixes.
...
- Make sure an update to deleted decreases the count. Fixes #1676
- Don't allow the post creator to comment necro-bump their own post.
Fixes #1675
2021-08-01 21:07:45 -04:00
Dessalines
224592c547
Merge pull request #1682 from LemmyNet/rewrite-comment
...
Rewrite comment
2021-08-01 20:02:13 -04:00
6b57d716e1
Rewrite private message apub and merge create/update
2021-07-31 22:58:11 +02:00
dc363c8f35
Merge logic for post create and update
2021-07-31 19:26:17 +02:00
3eb46868ff
Merge logic for comment create and update
2021-07-31 17:47:08 +02:00
43ad99bbe8
Rewrite apub comment (de)serialization using structs (ref #1657 )
2021-07-31 16:57:37 +02:00
bb7750d8ee
Merge pull request #1678 from LemmyNet/rewrite-post
...
Rewrite apub post (de)serialization using structs (ref #1657 )
2021-07-31 07:10:56 +00:00
520436cd9a
Fix changelog links
2021-07-30 18:59:22 -04:00
433ab1e78b
Add docs for MediaType, PublicUrl values
2021-07-30 23:16:33 +02:00
57b6ecaf40
Simplify lemmy_context() function (dont return errors)
2021-07-30 23:16:33 +02:00
ff265c7ebc
Rewrite apub post (de)serialization using structs (ref #1657 )
2021-07-30 23:16:32 +02:00
15a11c13a2
Updating ansible version.
2021-07-30 16:55:04 -04:00
8d2dc76be3
Adding release notes.
2021-07-30 16:50:39 -04: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
Dessalines
f18139d06c
Merge pull request #1660 from LemmyNet/merge-apub-crates
...
Merge apub, apub_receive crates
2021-07-17 13:00:06 -04:00
c1db86925f
Merge apub, apub_receive crates ( fixes #1621 )
2021-07-17 18:20:44 +02:00
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
f4c7c2bf28
Merge pull request #1651 from LemmyNet/upgrade_deps_5
...
Upgrade api_test deps
2021-07-06 12:13:22 -04:00
904709e3f1
Upgrade api_test deps
2021-07-06 10:57:54 -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
Dessalines
8c957ca939
Merge pull request #1649 from weex/case-insensitive-captcha
...
make captcha case-insensitive
2021-07-05 09:49:35 -04:00
David Sterry
1b1ebd2f70
make captcha case-insensitive
2021-07-04 17:51:08 -07:00
Dessalines
469a2b5c90
Merge pull request #1637 from LemmyNet/remove-url-tracking-params
...
Remove tracking params from post url (fixes #768 )
2021-06-24 14:54:02 -04:00
f289374e70
Remove tracking params from post url ( fixes #768 )
2021-06-18 20:38:34 +02:00
Aaron DeVore
79ee271a5e
LemmyNet/lemmy#1635: Fix IPv6 port setup for Nginx ( #1636 )
2021-06-17 17:36:00 +00:00
3022c00a0b
Version 0.11.2
2021-06-14 18:14:29 -04:00
Dessalines
1cdc5d662c
Fix --cert-name for certbot. ( #1631 )
2021-06-13 18:28:32 +00:00
Dessalines
12d50e42b4
Change join.lemmy.ml to join-lemmy.org ( #1628 )
2021-06-07 21:10:47 +00:00
Dessalines
7fb4508fa1
Upgrade pictrs. Fixes #1599 ( #1600 )
2021-05-28 15:51:09 +00:00
Dessalines
ab2b8df1cb
Invalidate current logins on account deletion. Fixes #1602 ( #1603 )
2021-05-28 15:50:52 +00:00
Dessalines
f196f05f20
Upgrading api test deps ( #1608 )
2021-05-28 15:46:23 +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
100a56e8ef
Version 0.11.1
2021-05-17 19:15:51 -04:00
Dessalines
f67b0e9ff8
Updating to rust 1.51.0 ( #1598 )
2021-05-03 14:46:12 +00:00
6eed6cf362
Fixing release doc.
2021-05-02 21:19:16 -04:00
c1cbcdc253
Version 0.11.0
2021-04-27 10:35:54 -04:00
c48c620048
Adding v0.11.0 release notes
2021-04-27 10:34:45 -04:00
Dessalines
0d9dceff88
Merge pull request #1595 from LemmyNet/Nutomic-patch-1
...
Better slur regex
2021-04-27 09:56:36 -04: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
Dessalines
1eb7e41674
Merge pull request #1592 from LemmyNet/feature/mark_post_as_read
...
Add show_read_posts filter. Fixes #1561
2021-04-26 10:57:40 -04:00
880c51687a
Merge branch 'main' into feature/mark_post_as_read
2021-04-26 10:44:19 -04:00
df0a38e0ba
Merge pull request #1566 from LemmyNet/additional_search_filters
...
Add creator id to search. Fixes #765
2021-04-26 14:17:21 +00:00
6d3778cafe
Changing unwrap_default to unwrap_or(false)
2021-04-26 09:50:34 -04:00
dc1a0dcd5e
Fetch git tags manually in CI ( #1590 )
...
* Fetch git tags manually in CI
* Dont need espeak in CI anymore
2021-04-26 09:30:30 -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
03c18ecfbe
Merge pull request #1571 from guland2000/patch-3
...
Update README.ru.md
2021-04-14 16:10:07 +00:00
c9d461ea93
Merge pull request #1570 from guland2000/patch-2
...
Update README.ru.md
2021-04-14 16:09:59 +00:00
Dessalines
b0cef3c76d
Merge pull request #1572 from LemmyNet/feature/federated-mod-community-updates
...
Remote mods can update/delete/undelete communities
2021-04-14 11:02:36 -04:00
c572dc0cc6
Remote mods can update/delete/undelete communities
2021-04-13 15:19:17 +02:00
Andrei Guliaikin
0d01461de4
Update README.ru.md
...
Missing one letter
2021-04-12 23:16:17 +02:00
Andrei Guliaikin
d1b57501bd
Update README.ru.md
...
Some mistakes... logical ;-)
2021-04-12 23:02:59 +02:00
Dessalines
dee02e6642
Merge pull request #1567 from LemmyNet/include-commit-in-version
...
For untagged commits, include hash in version name (fixes #1563 )
2021-04-12 11:40:43 -04:00
198f3073f9
Readme russian ( #1568 )
...
* README.ru.md
Russian language is done.
* Some fixes for previous commit
Co-authored-by: Andrei Guliaikin <guland2000@users.noreply.github.com>
2021-04-12 13:08:05 +00: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
89dd0f2925
Merge pull request #1564 from LemmyNet/remove_extra_save_user_fields
...
Forgot to remove extra fields for changepassword.
2021-04-09 14:33:28 +00:00
2e16b11db8
Forgot to remove extra fields for changepassword.
2021-04-08 21:14:26 -04:00
b8a6592369
Drone release main (ref #1556 ) ( #1557 )
...
* publish docker images from main
* try with separate step
* redo, lots of boilerplate
* try to fix syntax
* unique step names
* fix docker tags, remove cargo-chef
* only build dev image on main branch
* use `ref` for condition, as `branch` uses the target branch for PRs
* consistent indents
* fix tag
* use lemmy-ui:dev image for `docker/dev` and `docker/federation`
2021-04-08 10:33:58 -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
3a01949f81
Fixing volume mount. ( #1559 )
...
* Fixing volume mount.
* Remove config line.
2021-04-07 18:41:12 +00:00
0c17668844
Updating releases.md
2021-04-07 14:26:22 -04:00
04a3cb1ee8
Merge branch 'release/v0.10'
2021-04-07 14:23:32 -04:00
831ab76152
Version 0.10.3
2021-04-07 14:23:09 -04:00
c30d38829d
Version 0.10.3
2021-04-07 13:17:38 -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
2452bf8f01
Merge pull request #1558 from LemmyNet/feature/1550-optional-config-values
...
Make some of the database config values optional (fixes #1550 )
2021-04-07 13:16:08 -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
8df102ff4b
Merge pull request #1539 from LemmyNet/change_password_api
...
Moving ChangePassword to its own API action. Fixes #1471
2021-04-06 12:21:41 -04: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
df7fe705eb
Updating releases.md
2021-04-05 13:26:24 -04:00
89b96511bf
Version 0.10.2
2021-04-05 13:21:08 -04:00
74a63804dc
Fix test failure due to config loading error ( #1547 )
...
* Crash if config fails to load
* fix previous commit
* Fix test failure due to config loading error
* Adding test fix to drone.
* Logging line.
* Trying to fix drone 2
* Fixing deploy script.
Co-authored-by: Dessalines <tyhou13@gmx.com>
2021-04-05 13:21:56 -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
Dessalines
ebb980eaaf
Fix ansible deploy template. ( #1544 )
...
* Fix ansible deploy template.
* Add ansible comment.
* Changing tls to true
* Fixing comment line.
2021-04-05 14:20:40 +00:00
a617a6a6d6
Update releases.md
2021-04-05 08:55:38 -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
mickie
fac024b90c
Translated README.md to Spanish ( #1525 )
...
* Add menu bar for language selection
* Create README.es.md
* Update README.es.md
* fix minor issues
* Update README.md
* Update and rename README.es.md to readmes/README.es.md
* Update features section.
* Update README.md
* Update README.es.md
2021-03-31 19:02:27 +00:00
2f63fdbde0
Adding a setting to show / hide scores. Fixes #1503
2021-03-31 06:54:46 -04:00
dessalines
1a3a215f59
Merge pull request 'Split lemmy_apub crate into two parts apub and apub_receive' ( #190 ) from split-apub-crate into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/190
2021-03-31 10:36:51 +00: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
Dessalines
6ee76e9280
Merge pull request #1516 from LemmyNet/move_matrix_and_admin_to_person
...
Move matrix and admin to person
2021-03-25 11:41:37 -04:00
Dessalines
0b5438d3fd
Merge pull request #1522 from LemmyNet/move_matrix_and_admin_to_person_nutomic
...
Federate Matrix ID (fixes #1438 )
2021-03-24 15:38:57 -04:00
34bdf4c7c5
Federate Matrix ID ( fixes #1438 )
2021-03-24 17:56:13 +01:00
af2f84805a
Fixing image locations.
2021-03-24 12:42:34 -04: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
8543092b9f
Merge branch 'remove_cargo_cache_v2' into move_matrix_and_admin_to_person
2021-03-23 14:46:00 -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
Dessalines
3949b35360
Merge pull request #1517 from LemmyNet/add_saved_only_1
...
Adding saved_only to GetComments and GetPosts. Fixes #1513
2021-03-22 13:52:04 -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
e726d1e184
Merge branch 'grishka_fix_ld_context'
2021-03-22 13:12:05 +01:00
459b95bc7e
Make previous commit compile
2021-03-22 13:11:32 +01:00
6b5354fb11
Merge branch 'fix_ld_context' of https://yerbamate.ml/grishka/lemmy into grishka_fix_ld_context
2021-03-22 13:08:07 +01:00
8b2b3eef73
Merge pull request #1509 from LemmyNet/fix_deploy_prod_script
...
Fixing docker deploy script. Fixes #1507
2021-03-22 12:02:41 +00: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
53ea383b4e
Forgot to regenerate person_alias views
2021-03-20 16:32:52 -04:00
1745b64ceb
Moving matrix_user_id to person table. #1438
2021-03-20 15:21:51 -04:00
77f8dc9675
Fixing docker deploy script. Fixes #1507
2021-03-20 14:49:07 -04:00
4b92e35edc
Reverting docker versions until deploy.sh fix.
2021-03-20 11:55:11 -04:00
e9eca35816
Version 0.10.0-rc.8
2021-03-19 15:58:24 -04:00
ae635c752a
Try to remove cargo home changing to fix release.
2021-03-19 15:57:56 -04:00
05b07b8cbb
Fix conflicts in docker-compose.yml
2021-03-19 18:09:05 +01: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
14bc9f0946
Merge pull request #1500 from LemmyNet/jwt_revocation_dess
...
Jwt revocation dess
2021-03-19 15:43:47 +00:00
493598c1ba
A few suggestion fixes.
2021-03-19 10:02:58 -04:00
96efe302ce
Merge pull request #1499 from LemmyNet/strictly_type_db_ids
...
Strictly type db ids
2021-03-19 13:41:22 +00:00
e25bcb35d7
Merge pull request #1428 from LemmyNet/split_user_table
...
Split user table
2021-03-19 13:20:23 +00: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
c06d612432
Merge branch 'split_user_table' into strictly_type_db_ids
2021-03-18 19:37:54 -04:00
c88722983e
Merge branch 'main' into split_user_table
2021-03-18 19:36:48 -04:00
33a326854a
Set CARGO_HOME for CI so deps arent redownloaded ( #1497 )
...
* Set CARGO_HOME for CI so deps arent redownloaded
* run find on x86
* fix path
* cleanup
* try again
* use mv
2021-03-18 16:35:04 -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
dessalines
db4fe8031c
Merge pull request 'Insert announced activities into DB for fetching ( fixes #1494 )' ( #187 ) from insert-local-announce into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/187
2021-03-16 13:47:32 +00: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
72b5e0cab5
Merge pull request #1491 from LemmyNet/upgrade_pictrs_3
...
Upgrading pictrs.
2021-03-15 12:14:31 +00: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
434fb53dd1
Trying to fix API tests.
2021-03-12 14:09: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
dessalines
931a132161
Merge pull request 'Add memory limit for pictrs' ( #186 ) from nutomic-patch-1 into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/186
2021-03-12 15:16:49 +00:00
0a7271a185
Upgrading pictrs.
2021-03-12 10:13:20 -05: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
7d04f371a5
fixing tests 3
2021-03-11 12:08:30 -05: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
nutomic
fc74bfeb23
Add memory limit for pictrs
2021-03-10 18:38:00 +00: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
8f6b8895f4
Merge pull request #1485 from PatMulligan/fix-docker-compose-yaml
...
revert Compose file version from 3.3 to 2.2
2021-03-08 15:41:17 +00:00
Patrick Mulligan
a650312858
revert Compose file version from 3.3 to 2.2
2021-03-08 09:23:50 -06:00
ff2c71a74a
Adding more mem limits
2021-03-04 22:41:08 -05:00
Avery Pierce
126c6a23bb
bump memory limit of iframely
2021-03-04 08:58:03 -06:00
e0c61c1334
Merge pull request #1478 from LemmyNet/fix_wrong_urls
...
Fixing wrong user_ and community icon and banner urls.
2021-03-04 12:18:30 +00:00
f7aa97d45e
Merge pull request #1479 from LemmyNet/fix_extra_categories
...
Remove extra category_id s . Fixes #1429
2021-03-04 12:14:25 +00:00
a1c7584875
Remove extra category_id s . Fixes #1429
2021-03-03 23:44:07 -05:00
817b4ff08e
Fixing wrong user_ and community icon and banner urls.
...
- Fixes #1477
2021-03-03 23:40:00 -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
dessalines
7c4969c92b
Merge pull request 'Remove category from activitypub context' ( #183 ) from context-remove-category into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/183
2021-03-02 16:48:24 +00:00
dessalines
45a94203f2
Merge pull request 'Update test script' ( #182 ) from update-test-script into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/182
2021-03-02 16:47:58 +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
985dbcaada
Update test script
2021-03-02 13:57:06 +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
45e05dac30
Merge pull request 'Upgrade Rust version' ( #181 ) from upgrade-rust into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/181
2021-03-01 18:02:39 +00:00
66946117e1
Upgrade Rust version
2021-03-01 18:46:56 +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
dessalines
5ce8adcb13
Merge pull request 'Rename lemmy_structs
to lemmy_api_structs
' ( #180 ) from rename-structs into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/180
2021-03-01 15:50:45 +00:00
3bdd78f341
Rename lemmy_structs
to lemmy_api_structs
2021-03-01 14:08:41 +01:00
Dessalines
b5aa4cf41a
Merge pull request #1465 from arjenpdevries/patch-2
...
Update README.md
2021-02-27 18:08:58 -05:00
Arjen P. de Vries
a5e2463097
Update README.md
...
Federation is probably more complete than suggested here.
In response to:
https://github.com/LemmyNet/lemmy/issues/647#issuecomment-787068478
2021-02-27 20:26:30 +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
dessalines
da5b27ecc6
Merge pull request 'Remove code for apub compatibility with Lemmy v0.8.9 and older' ( #178 ) from remove-apub-compat-code into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/178
2021-02-26 13:23:07 +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
82d97cf6de
Merge pull request #1455 from ajyoon/fix-flaky-db-tests
...
Support plain `cargo test` and disable unused doctests for speed
2021-02-25 22:54:40 +00: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
efc9047f87
Done with user->person migrations, now to code.
2021-02-25 14:04:12 -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
058052b46c
Merge remote-tracking branch 'yerba/main'
2021-02-25 11:36:08 -05:00
dessalines
7c87da012e
Merge pull request 'Remove categories ( fixes #1429 )' ( #176 ) from remove-categories into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/176
2021-02-25 16:35:07 +00:00
bf1e859e72
Remove broken actix_rt test
2021-02-25 17:25:31 +01:00
289cef3101
Remove integration tests ( fixes #1449 )
2021-02-25 16:31:41 +01:00
085c307b8b
Merge pull request #1451 from LemmyNet/update_cargo_chef
...
Use more recent version of cargo chef.
2021-02-25 15:19:29 +00:00
72783edb17
In remove categories down migration, add default for category
2021-02-25 16:16:02 +01:00
3141ad31de
Remove categories ( fixes #1429 )
2021-02-25 13:22:37 +01:00
dessalines
40ceec9737
Merge pull request 'Better type safety for activity parsing' ( #175 ) from apub-type-safety into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/175
2021-02-24 22:20:15 +00:00
723ec65ac6
Use more recent version of cargo chef.
2021-02-24 17:10:28 -05:00
3ae62573b7
Better type safety for activity parsing
2021-02-24 20:37:27 +01:00
dessalines
6499709221
Merge pull request 'Dont include community in comment to
field ( fixes #1446 )' ( #174 ) from no-community-in-comment-to into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/174
2021-02-24 01:03:07 +00:00
813fcabe13
Fix lemmy_dev ansible playbook
2021-02-23 19:35:09 +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
dessalines
7dc3ff4544
Merge pull request 'Fix clippy error upper_case_acronyms' ( #172 ) from fix-clippy into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/172
2021-02-22 20:34: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
8eb81bb153
Updating release version.
2021-02-19 13:11:16 -05:00
c81435c994
Version 0.9.9
2021-02-19 13:10:04 -05:00
7548b44d1b
Merge pull request #1442 from LemmyNet/fix_deploy_version_1
...
Fixing deploy version.
2021-02-19 18:09:27 +00:00
bcc8dae16b
Fixing deploy version.
2021-02-19 13:05:42 -05:00
b014ac44c8
Adding 0.9.8 release notes.
2021-02-19 12:41:51 -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
15d0f54a88
Merge pull request 'Specify order for activities query ( fixes #1436 )' ( #169 ) from outbox-order into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/169
2021-02-18 21:18:26 +00:00
Dessalines
8088055d38
Fix aggregates time columns 2 ( #1427 )
...
* Adding a new comment sort. Fixes #1294
* Fixing a migration comment.
* Adding a comment for newest_comment_time_necro
* Make sure federated items set correct aggregates fields in trigger.
- Fixes #1402
2021-02-18 10:53:04 -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
6f683682c3
Merge pull request #1435 from LemmyNet/fix_lemmy_prod_open_port
...
Closing open lemmy-ui prod port. Fixes #1430
2021-02-17 16:42:32 +00:00
a920bf768e
Closing open lemmy-ui prod port. Fixes #1430
2021-02-17 11:26:03 -05:00
a183815870
Adding a few more tables.
2021-02-15 14:34:10 -05: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
71aa8f3670
Merge pull request #1426 from LemmyNet/rss_link_post
...
Change RSS feeds to use lemmy URL for the rss link. Fixes #1378
2021-02-11 14:06:29 +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
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
08900b5b94
Merge pull request #1422 from LemmyNet/display_name_limit
...
Display name limit
2021-02-10 16:13:26 +00:00
5a33fce8bd
Listing columns.
2021-02-10 11:05:12 -05:00
acadf0289e
Fixing reason lengths to char counts.
2021-02-10 10:36:22 -05:00
2e5ccaf7fe
Fixing display name limit. Fixes #1421
2021-02-10 10:27:48 -05:00
63d9c0ee46
Explicitly mark posts and comments as public (ref #1220 )
2021-02-10 14:01:02 +01:00
dessalines
68edda7bf5
Merge pull request 'Move routes into separate crate to speed up compilation' ( #166 ) from move-routes into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/166
2021-02-09 18:44:45 +00:00
999d9f4d6c
Move routes into separate crate to speed up compilation
2021-02-09 19:34:36 +01:00
ce00677880
Adding v0.9.7 release notes.
2021-02-08 15:24:51 -05:00
5656db3e3d
Version 0.9.7
2021-02-08 15:17:56 -05:00
c213edf7ee
Adding 0.9.6 release notes.
2021-02-06 11:50:31 -05:00
a7540b4947
Fixing build / drone badge.
2021-02-05 23:19:23 -05:00
5f112aad44
Fixing image links. #1355
2021-02-05 23:15:02 -05:00
f198f281cf
Version 0.9.6
2021-02-05 13:01:29 -05:00
bf751dc7ab
Merge pull request #1415 from LemmyNet/fed_inbox_url_fix
...
Fixing inbox url code migration. Fixes #1414
2021-02-05 17:59:56 +00: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
2b6df63aee
Merge remote-tracking branch 'yerba/main'
2021-02-05 12:50:31 -05:00
dessalines
def8af7d8a
Merge pull request 'Make apub extension fields optional (ref #1220 )' ( #163 ) from optional-apub-extensions into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/163
2021-02-05 17:50:42 +00:00
14465b91b1
Fixing inbox url code migration. Fixes #1414
2021-02-05 12:06:32 -05:00
d09df9c02b
Merge pull request #1412 from LemmyNet/fix_search_communities_subscribed
...
Fixing community search not using auth. Fixes #1411
2021-02-05 16:33:06 +00:00
897263e5a3
Include object id when logging apub errors
2021-02-05 17:15:29 +01:00
4864f80656
Fixing community search not using auth. Fixes #1411
2021-02-05 10:36:28 -05:00
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
8a7e50381f
Version 0.9.5
2021-02-04 22:48:21 -05:00
f45f2ec202
Removing old lemmy schema.
2021-02-04 11:35:20 -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
ed8a12f96f
Some updates to 0.9.4 release.
2021-02-02 16:01:08 -05:00
525fdcf73c
Some updates to 0.9.4 release.
2021-02-02 15:57:45 -05:00
840ab7cba4
Adding pre-release notes.
2021-02-02 15:45:02 -05:00
9415bec557
Version 0.9.4
2021-02-02 15:29:38 -05:00
712d497a2d
Merge branch 'main' of https://github.com/lemmynet/lemmy
2021-02-02 11:13:31 -05:00
dbc94af51d
Merge pull request #1406 from LemmyNet/upgrade_deps
...
Trying to upgrade lemmys deps.
2021-02-02 15:17:11 +00:00
86d8c9b18e
Adding awesome-humane-tech to readme. #1394
2021-02-02 09:35:56 -05:00
1857f02af8
Moving back tokio and reqwest.
2021-02-01 21:54:23 -05:00
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
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
6b36bf772e
Merge pull request #1397 from LemmyNet/parent_comment_check
...
Add check for parent comment. Fixes #1390
2021-02-01 12:13:18 +00:00
d2ba2960dd
Post and comment vote views now return 0 instead of null.
...
- Fixes #1389
2021-01-31 10:29:21 -05:00
cd08fdf76f
Make sure banned users cant subscribe, and the ban unsubs them. Fixes #1324
2021-01-30 23:55:14 -05:00
aecb2411d8
Add check for parent comment. Fixes #1390
2021-01-30 23:10:16 -05:00
9609bd99bb
Add readme link to translation instructions for documentation ( #1392 )
...
* Add readme link to translation instructions for documentation
* Fix contributing link in readme
2021-01-30 12:00:33 -05:00
Anton Kuzmin
5102cdddc1
rename lemmer to remmel ( #1391 )
2021-01-30 11:51:38 -05:00
3a05817b41
Version 0.9.3
2021-01-29 14:25:20 -05:00
51465bc0d7
Nodeinfo devs think halfyear is one word.
2021-01-29 14:24:10 -05:00
2322534648
Version 0.9.2
2021-01-29 13:49:43 -05:00
3f23e0e6b9
Adding camelCase to node-info users.
2021-01-29 13:48:59 -05:00
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
5f59d7ba5f
Increase MAX_REQUEST_NUMBER for fetches to 25
2021-01-29 16:45:28 +01:00
62a145d8b3
Merge remote-tracking branch 'yerba/outbox-activities'
2021-01-29 09:17:14 -05: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
363ceea5c7
Fixing some readme links. Fixes #1382
2021-01-26 14:49:15 -05:00
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
ea59cf16e8
Merge pull request #1381 from LemmyNet/fix_mod_bans_and_adds
...
Fixing modlog not showing bans and adds. Fixes #1376
2021-01-26 16:57:49 +00:00
91d210ce79
Fixing modlog not showing bans and adds. Fixes #1376
2021-01-26 11:45:36 -05:00
f0dcc3a104
Updating releases.md
2021-01-25 09:44:33 -05:00
b2d6b554e8
Fixing release docs location.
2021-01-25 00:10:27 -05:00
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
ac969dc737
Adding 0.9.0 Release notes.
2021-01-24 22:40:39 -05:00
c014bef84d
Updating docs locations.
2021-01-23 14:56:41 -05:00
f2f9f5776c
Merge branch 'uuttff8-main'
2021-01-22 13:35:12 -05:00
cb9c354c28
Updating to add lemmer.
2021-01-22 13:34:48 -05:00
Anton Kuzmin
b1fb90ff6d
add lemmer
2021-01-22 21:32:00 +03: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
dessalines
a01af67948
Merge pull request 'Move most code into crates/ subfolder' ( #159 ) from crates-folder into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/159
2021-01-20 15:40:03 +00:00
3b64c58198
Move most code into crates/ subfolder
2021-01-20 16:21:27 +01:00
Dessalines
88284a999e
Merge pull request #1328 from LemmyNet/move_views_to_diesel
...
Move SQL views to diesel
2021-01-20 10:01:53 -05:00
856802ef35
Version 0.9.0-rc.12
2021-01-19 09:37:26 -05:00
Dessalines
24c78de5f0
Merge pull request #1358 from LemmyNet/v2_api_additions_1
...
A few API v2 changes based on nutomic's suggestions.
2021-01-19 09:35:43 -05:00
1de8a4606a
A few API v2 changes based on nutomic's suggestions.
...
- Changed `edit_id` s to their type (comment_id)
- Moved websocket actions to their own file in structs and api.
- Got rid of UserViewDangerous, added UserSafeSettings.
- GetSite now returns UserSafeSettings for `my_user`.
- Got rid of `admin` field in `Register`.
2021-01-18 16:57:31 -05:00
672d4507b2
Removing check documentation build from drone, now that's in lemmy-docs.
2021-01-18 11:08:53 -05:00
Dessalines
25dd1a21e2
Try arm fix ( #1356 )
...
* Trying to fix arm build.
* Version 0.9.0-rc.8
* Trying to fix arm build 2.
* Version 0.9.0-rc.9
* Checking time when removing lto.
* Version 0.9.0-rc.10
* Adding back in arm tests.
* Version 0.9.0-rc.11
2021-01-18 13:04:32 +00:00
6f2954dffd
Version 0.9.0-rc.7
2021-01-15 13:32:10 -05:00
8cfee9ca7d
Trying to fix arm build.
2021-01-15 13:31:10 -05:00
b124a29e05
Version 0.9.0-rc.6
2021-01-15 12:44:34 -05:00
Dessalines
b3163f99f4
Merge pull request #1344 from LemmyNet/remove_travis_and_federation_docker
...
Removing docker/federation and docker/travis folders.
2021-01-15 12:40:34 -05:00
fe4b516bd9
Adding back in federation docker-compose lemmy-ui writing
2021-01-15 12:38:44 -05:00
f0d928a433
Removing tag generation from drone.
2021-01-15 12:28:49 -05:00
edf0fd4381
Merge branch 'move_views_to_diesel' into remove_travis_and_federation_docker
2021-01-15 11:28:21 -06:00
Dessalines
1de737b7a3
Merge pull request #1352 from LemmyNet/ci-on-arm
...
Add drone CI for arm
2021-01-15 12:10:37 -05:00
Dessalines
29ec5d4855
Merge pull request #1353 from LemmyNet/move-coc
...
Code of conduct moved to documentation
2021-01-15 12:09:26 -05:00
Dessalines
381fd82c13
Merge pull request #1351 from LemmyNet/shorten-slur-filter
...
Shorten slur filter to avoid false positives (fixes #535 )
2021-01-15 12:03:53 -05:00
8f61a148f6
Fixing comment count necro-bump issue.
2021-01-15 11:58:56 -05:00
a4f6ca0c9c
Code of conduct moved to documentation
2021-01-15 17:49:23 +01:00
15710a0595
Shorten slur filter to avoid false positives ( fixes #535 )
2021-01-15 17:31:14 +01:00
f06b71d961
Add drone CI for arm
2021-01-15 15:24:48 +01:00
ccd2b9eb75
Fixing a stackoverflow error with url searching.
2021-01-14 23:56:53 -05:00
c8a8670aec
Merge branch 'move_views_to_diesel' of https://github.com/lemmynet/lemmy into move_views_to_diesel
2021-01-14 19:16:02 -06:00
dessalines
110167f085
Ensure that comments are always delivered to the parent creator ( fixes #1325 ) ( #156 )
...
Don't send activities to ourselves
Ensure that comments are always delivered to the parent creator (fixes #1325 )
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/156
Co-Authored-By: dessalines <dessalines@noreply.yerbamate.ml>
Co-Committed-By: dessalines <dessalines@noreply.yerbamate.ml>
2021-01-15 01:18:18 +00:00
Dessalines
66102fb2d4
Merge pull request #1349 from LemmyNet/site_counts_local
...
Report only local counts in site_view.
2021-01-14 16:10:26 -05:00
4fdcb57753
Report only local counts in site_view.
...
- Move open_registrations under top level.
- Fixes #1340
2021-01-14 15:22:07 -05:00
dessalines
8b4a16a3f3
Merge pull request 'Add compilation benchmark, move scripts into subfolder' ( #158 ) from compilation-benchmark into move_views_to_diesel
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/158
2021-01-14 18:14:09 +00:00
5c198ea85d
Add compilation benchmark, move scripts into subfolder
2021-01-14 18:04:01 +01:00
15c5e5c502
Merge branch 'move_views_to_diesel' into remove_travis_and_federation_docker
2021-01-13 14:20:21 -05:00
116d908002
Restoring docker-compose and nginx in federation folder.
2021-01-13 14:18:26 -05:00
0c932e3ace
Merge remote-tracking branch 'yerba/move_views_to_diesel' into move_views_to_diesel
2021-01-13 13:16:25 -05:00
dessalines
6a04aaca55
Merge pull request 'Set debug=0 in cargo.toml to speed up builds' ( #157 ) from debug-false into move_views_to_diesel
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/157
2021-01-13 18:17:04 +00:00
a10974ed6e
Set debug=0 in cargo.toml to speed up builds
2021-01-13 18:10:21 +01:00
cd19a72c41
Version 0.9.0-rc.4
2021-01-13 12:05:56 -05:00
36976acb2f
Another notifs fix.
2021-01-13 12:04:00 -05:00
4677d3d782
Updating docs.
2021-01-13 12:03:26 -05:00
82227846af
Fixing top level replies, and notifs.
2021-01-13 12:01:42 -05:00
eafdf3033f
Version v0.9.0-rc.2
2021-01-12 19:29:48 -05:00
d54be4ed7f
Trying autotag
2021-01-12 19:26:32 -05:00
a1e5d0fd00
Version v0.9.0-rc.1
2021-01-12 18:59:07 -05:00
d4e800175f
Merge branch 'move_views_to_diesel' into remove_travis_and_federation_docker
2021-01-12 11:56:24 -05:00
39001af9a0
Merge remote-tracking branch 'yerba/move_views_to_diesel' into move_views_to_diesel
2021-01-12 11:12:54 -05:00
Dessalines
c6357f3c86
Deletion on fetch ( #1345 )
...
* Delete local object on fetch when receiving HTTP 410, split fetcher (fixes #1256 )
* Removing submodules
* Trying to re-init submodule
* Trying to re-init submodule 2
* Trying to re-init submodule 3
* Logging line.
* Removing submodules
* Adding again.
* Adding again 2.
* Adding again 3.
* Adding again 4.
* Adding again 5.
* Adding again 6.
* Adding again 7.
* Adding again 8.
* Adding again 9.
* Add more clippy lints, remove dbg!() statement
* Adding again 10.
* Adding again 11.
* Adding again 12.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-01-12 11:12:41 -05:00
dessalines
4eedc31893
Merge pull request 'Include fix for mdbook xss vulnerability' ( #155 ) from mdbook-xss into move_views_to_diesel
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/155
2021-01-12 15:57:27 +00:00
3d4cc32525
Adding back start-local-instances.
2021-01-12 10:42:34 -05:00
7db754e94c
Revert "Revert "Removing docker/federation and docker/travis folders.""
...
This reverts commit e483b6b51f
.
2021-01-12 10:40:38 -05:00
e483b6b51f
Revert "Removing docker/federation and docker/travis folders."
...
This reverts commit 689f5c1306
.
2021-01-12 10:39:15 -05:00
689f5c1306
Removing docker/federation and docker/travis folders.
2021-01-11 20:41:10 -05:00
fec77d583f
Include fix for mdbook xss vulnerability
2021-01-09 17:54:31 +01:00
7a97fc370b
Adding stickied to post_aggregates.
...
- Added more indexes to account for sorting by stickied first.
- Changed all order bys in the diesel views to use post_aggregates.
2021-01-07 16:22:17 -05:00
b9b51c2dfc
Fixing some minor websocket things.
2021-01-07 01:17:42 -05:00
ceae7eb47a
Private message query debugging.
2021-01-06 16:02:08 -05:00
1c113f915e
Logging post query.
2021-01-06 13:23:05 -05:00
514f4011ba
Adding docs commit.
2021-01-06 00:49:24 -05:00
a56977f4c5
Trying to get mdbooks to build.
2021-01-06 00:34:26 -05:00
86dfe456fd
Merge branch 'main' into move_views_to_diesel
2021-01-06 00:30:29 -05:00
50e7275c3b
Move docs into submodule ( fixes #1342 ) ( #1343 )
2021-01-06 00:27:58 -05:00
1e0c32f7a3
Merge branch 'main' into move_views_to_diesel
2021-01-05 23:55:02 -05:00
d227000de3
Halfway done with hot rank indexes.
2021-01-05 23:42:48 -05:00
61c6f33103
Trying to fix save user settings.
2021-01-04 14:09:53 -05:00
d300968ee8
Return http status code 410 with apub tombstone (ref #1256 )
2021-01-04 19:53:15 +01:00
7bc9434596
Fix integration tests (except one)
2021-01-04 18:32:33 +01:00
dependabot[bot]
632d8f384a
Bump node-notifier from 8.0.0 to 8.0.1 in /api_tests ( #1332 )
...
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier ) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases )
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md )
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 11:29:04 -05:00
bcb0c381e5
Merge remote-tracking branch 'github/main' into main
2021-01-04 17:23:06 +01:00
D.Loh
dd069de519
add User_ missing field 'deleted' in tests ( #1338 )
...
per rust-analyzer tips
2021-01-04 10:26:43 -05:00
418eb8025c
Changing default_sort and listing back to numbers.
2020-12-25 22:22:25 -05:00
9ab3a9d072
Add clippy check tests to drone.
2020-12-23 19:42:42 -05:00
4c681eb48b
Merge remote-tracking branch 'origin/split-db-workspace2' into move_views_to_diesel_split_2
2020-12-23 19:09:41 -05:00
58281208b9
Adding community_view to PostResponse.
...
- Changing to_vec function name.
2020-12-23 16:56:20 -05:00
5a16d43fef
Run cargo clippy in CI on whole workspace
2020-12-22 13:03:50 +01:00
95e30f0e08
Split up lemmy_db_views, put lemmy_rate_limit into lemmy_utils
2020-12-22 00:34:54 +01:00
d5efebbf47
Split lemmy_db into lemmy_db_queries, lemmy_db_aggregates and lemmy_db_views
2020-12-21 17:39:11 +01:00
e5a65d5807
Upgrading deps.
2020-12-21 09:34:59 -05:00
1a0d1f64f0
Merge remote-tracking branch 'origin/split-db-workspace' into move_views_to_diesel_split
2020-12-21 09:28:20 -05:00
bd06dd53e3
remove timing files added by accident
2020-12-21 14:53:27 +01:00
5231666465
Move remaining structs from lemmy_db::source to lemmy_db_schema
2020-12-21 14:38:34 +01:00
a7e231b35b
Move community to lemmy_db_schema
2020-12-21 13:28:12 +01:00
e25436576a
Fixing some clippy warnings.
2020-12-20 23:00:33 -05:00
8e1f41f1e4
Removing cargo check from drone, clippy already runs check.
2020-12-20 22:50:43 -05:00
04ce64e9b6
Adding to clippy
2020-12-20 22:42:29 -05:00
2aa8de87b2
Trying other drone checks.
2020-12-20 22:37:01 -05:00
929f1d02b5
Fixing integration tests.
2020-12-20 22:27:27 -05:00
d767dd998e
Merge branch 'drone-io-dess' into move_views_to_diesel_drone
2020-12-20 21:48:29 -05:00
5af8257e19
Changing unit tests to api v2.
2020-12-20 16:16:57 -05:00
a27b7f8d1f
Fix site aggs.
2020-12-20 00:09:20 -05:00
2d7d9cf7d8
Some API cleanup, adding site_id to site aggregates.
2020-12-19 20:10:47 -05:00
f842bbff8d
Move user to lemmy_db_schema, create traits for impls
2020-12-18 19:38:32 +01:00
114f3cbfb5
Move comment, post definitions into lemmy_db_schema
2020-12-18 18:27:25 +01:00
3f36730dba
Fixing unit tests.
2020-12-18 12:25:27 -05:00
089d812dc8
Split lemmy_db into separate workspaces
2020-12-18 17:17:44 +01:00
9d0709dfe8
Trying again.
2020-12-17 21:55:15 -05:00
2e5297e337
Trying again.
2020-12-17 21:36:59 -05:00
5c266302c5
Adding unfollows.
2020-12-17 21:10:20 -05:00
6cc148f6a6
Trying again.
2020-12-17 16:02:35 -05:00
1607930d07
Trying again.
2020-12-17 16:00:51 -05:00
1a4e2f4770
Trying again.
2020-12-17 15:59:25 -05:00
caaf6b178b
Trying again.
2020-12-17 15:35:28 -05:00
6d96f105c6
Dropping the unecessary views and table triggers.
2020-12-17 15:29:10 -05:00
583808d5e7
Trying again.
2020-12-17 14:59:53 -05:00
5768a4eda7
Trying again.
2020-12-17 14:36:22 -05:00
4997d4b0b5
Trying again.
2020-12-17 14:23:15 -05:00
179709cc09
Fixing drone tests.
2020-12-17 14:01:33 -05:00
dessalines
44b72ccbd6
Merge pull request 'Create empty inbox collections for actors (ref #1322 )' ( #151 ) from actor-inbox into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/151
2020-12-17 14:51:23 +00:00
dessalines
5b2fb07e44
Merge pull request 'Use correct content-type headers for apub inbox (ref #1220 )' ( #150 ) from inbox-headers into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/150
2020-12-17 14:44:08 +00:00
4c79e26078
Updating deps.
2020-12-17 09:13:12 -05:00
4bf0ec94c8
Create empty inbox collections for actors (ref #1322 )
2020-12-17 14:22:51 +01:00
4f5e51beb5
Removing fast tables and old views.
2020-12-16 22:42:25 -05:00
05c3e471ae
Adding report views.
2020-12-16 22:03:03 -05:00
1cf520254d
Adding private message view.
2020-12-16 17:16:48 -05:00
313f0467c8
Adding moderator views.
2020-12-16 16:28:18 -05:00
bd6a4a54a9
Merge branch 'main' into move_views_to_diesel
2020-12-16 14:01:16 -05:00
57c2f2ef1c
Getting rid of terrible boxedjoin types.
2020-12-16 13:59:43 -05:00
db0a51de2a
Handle long activitystreams header in nginx config (ref #1322 )
2020-12-16 18:24:14 +01:00
711db4c790
Removing old user_mention_view.
2020-12-16 11:09:21 -05:00
cbd02f2a87
Use correct content-type headers for apub inbox (ref #1220 )
2020-12-16 16:30:44 +01:00
eiknat
036161cb38
add on_conflict clauses to common unique constraint failures ( #1264 )
...
* add on_conflict clauses to common unique constraint failures
* user mention: change create conflict to do_update
2020-12-16 09:42:57 -05:00
c947539301
Add docs for creating custom lemmy frontend ( #1319 )
2020-12-16 09:03:21 -05:00
471abf7f29
Removing old comment_view.
2020-12-15 14:39:18 -05:00
e4714627a4
Beginning to add new comment_view.
2020-12-15 10:28:25 -05:00
998e824bd8
Add IP forwarding headers to nginx config ( fixes #1318 )
2020-12-15 15:01:37 +01:00
e492cce206
Allow running docker-less federation tests locally
2020-12-15 14:58:11 +01:00
d5955b60c0
silence lemmy output in federation logs
2020-12-14 18:01:12 +01:00
f33577b317
send activities sync for tests
2020-12-14 17:44:27 +01:00
a455e8c0ab
add pictrs and iframely, read docker hub login from secrets
2020-12-14 17:01:40 +01:00
79a960d8a5
Merge branch 'main' into move_views_to_diesel
2020-12-13 12:07:11 -05:00
f456f5da46
Re-organizing source tables into a different folder.
2020-12-13 12:04:42 -05:00
ccd26bfcd7
Trying to fix post test again.
2020-12-12 10:45:14 -05:00
f6ba6d5590
Trying to fix post test again.
2020-12-12 10:28:28 -05:00
dfe17662df
Trying to fix post test again.
2020-12-12 09:39:41 -05:00
28c217eb66
Trying to fix post test again.
2020-12-11 23:20:18 -05:00
d594005d49
Trying to fix post test again.
2020-12-11 20:20:14 -05:00
4410d2e44d
Trying to fix post test again.
2020-12-11 19:59:45 -05:00
5dff60adc5
Trying to fix post test again.
2020-12-11 16:26:44 -05:00
9e5824df85
Trying to fix post test.
2020-12-11 15:24:28 -05:00
543be801ab
disable debug log
2020-12-11 20:56:14 +01:00
ab6b28ee60
use dash
2020-12-11 20:39:54 +01:00
bdd264cd5e
Adding tests for post aggregates.
2020-12-11 13:07:27 -05:00
5ae3f59092
fix warning
2020-12-11 18:43:34 +01:00
0c89e9c2d6
use hosts file
2020-12-11 18:22:16 +01:00
30a1a69850
setup db
2020-12-11 18:09:47 +01:00
e7a5eff061
try debug build again
2020-12-11 17:58:03 +01:00
446ae301f8
syntax
2020-12-11 17:48:57 +01:00
2dd3eee0dd
fix paths, try debug
2020-12-11 17:46:50 +01:00
9c7f2cb0c3
fix bin path
2020-12-11 17:33:55 +01:00
b61bfcefa7
find the binary
2020-12-11 17:27:18 +01:00
9cb7680211
fix release build?
2020-12-11 17:20:29 +01:00
20115444b6
syntax
2020-12-11 17:02:24 +01:00
7c12b1026c
faster release build
2020-12-11 17:01:05 +01:00
35bf50ab15
Removing old postview.
2020-12-11 10:27:33 -05:00
5b376de5f5
need to use release bin
2020-12-11 16:25:20 +01:00
2259b7ebc2
try release build
2020-12-11 16:15:48 +01:00
d859844fea
use apk add, remove diesel migrate from test.sh
2020-12-11 15:56:20 +01:00
a56db9a47c
cargo fmt
2020-12-11 15:45:29 +01:00
cbe5cf8ca0
try to run migrations on db connection in tests
2020-12-11 15:41:39 +01:00
6075f7d2f1
try again with full path
2020-12-11 15:31:19 +01:00
55e3f370fd
need to use rust image
2020-12-11 15:28:36 +01:00
b11b3f4fad
set rustfmt path
2020-12-11 15:22:12 +01:00
135d654999
another try
2020-12-11 15:20:15 +01:00
6d1053b8e5
put full path
2020-12-11 15:15:36 +01:00
71d3457b82
try rustfmt
2020-12-11 15:14:17 +01:00
6fec2e56f6
use nightly image for fmt
2020-12-11 15:05:46 +01:00
d9f0aa223a
need nightly for fmt
2020-12-11 15:02:50 +01:00
8b0374cc4e
also check formatting, more extensive cargo check
2020-12-11 14:57:43 +01:00
08748bbede
try to init db from lemmy in tests
2020-12-11 14:49:10 +01:00
7e7e27a7eb
build diesel cli in same step
2020-12-11 14:28:14 +01:00
77b7511235
try tests without diesel migration run
2020-12-11 14:16:14 +01:00
df2ec0aa38
try running federation tests in same alpine version
2020-12-11 14:13:30 +01:00
afc79ce0e3
Adding a viewtovec trait.
2020-12-10 20:39:42 -05:00
eef93440d0
Starting to add post_view.
2020-12-10 15:53:49 -05:00
4fd6b5f5e1
fix script location
2020-12-10 21:36:50 +01:00
405e7eff27
try to fix federation test
2020-12-10 21:14:05 +01:00
606bfa89b6
add sudo
2020-12-10 21:03:32 +01:00
964332db12
build diesel as root
2020-12-10 20:57:28 +01:00
f7cdadc9c2
compile diesel_cli as root (fails for some reason)
2020-12-10 20:51:51 +01:00
e64f196c0d
try with chown
2020-12-10 20:45:14 +01:00
ed29e3d934
enable all steps, add comments
2020-12-10 20:30:02 +01:00
a7413723b4
fix
2020-12-10 20:27:38 +01:00
11c9559ef8
check rust version
2020-12-10 20:27:06 +01:00
7af4a60ec4
change dir to read config
2020-12-10 20:19:17 +01:00
7b2c59bd98
use bash, install psql
2020-12-10 20:06:09 +01:00
861e38d157
needs apt-get then
2020-12-10 20:00:27 +01:00
580e397525
dont use alpine for federation test
2020-12-10 19:50:41 +01:00
7717deda0e
more debug
2020-12-10 18:57:09 +01:00
cdcbef088d
more debugging
2020-12-10 18:50:15 +01:00
fadb2b46f5
try to run as root
2020-12-10 18:44:43 +01:00
a30199d879
ls lemmy bin
2020-12-10 18:38:53 +01:00
6ff7debbdf
enable cargo build
2020-12-10 18:32:26 +01:00
f8a196faaf
use apk
2020-12-10 18:31:28 +01:00
94d6ceb4df
install bash and curl
2020-12-10 18:29:13 +01:00
200913f631
try with sh
2020-12-10 18:26:50 +01:00
53c4aab6af
execute with bash
2020-12-10 18:23:04 +01:00
dd6b539119
ls -la
2020-12-10 18:16:44 +01:00
e0bbb58ec5
fix script name
2020-12-10 18:10:29 +01:00
048ada462b
fix command
2020-12-10 18:05:53 +01:00
e849b22d3c
change image for create tags
2020-12-10 18:04:42 +01:00
f76f742ba7
implement federation test in bash
2020-12-10 18:03:11 +01:00
c939954f84
use node docker image
2020-12-10 17:46:36 +01:00
56bea54536
also install nodejs
2020-12-10 17:37:00 +01:00
9793a0e521
install correct yarn package
2020-12-10 17:33:23 +01:00
a8e0eee7df
install yarn
2020-12-10 17:28:09 +01:00
ad75f9de4b
fix syntax again
2020-12-10 17:25:17 +01:00
2c60215156
remove comments
2020-12-10 17:23:14 +01:00
def5276f84
fix syntax
2020-12-10 17:22:36 +01:00
6391ec16ed
try federation tests
2020-12-10 17:20:44 +01:00
a94fd6aaf6
try without auth
2020-12-10 14:05:03 +01:00
f9bd72e1ee
try docker release build
2020-12-10 13:55:38 +01:00
841ad8476c
disable broken tests
2020-12-10 13:47:46 +01:00
4eced2518c
try caching
2020-12-10 13:33:24 +01:00
331985f0a0
start postgres later
2020-12-10 13:24:16 +01:00
37fc1d721f
use volume for diesel cli
2020-12-10 13:21:34 +01:00
82c3778082
change step order for better caching
2020-12-10 13:14:32 +01:00
2d0bf7d40d
full diesel path
2020-12-10 13:11:05 +01:00
fc382e20e1
install diesel_cli
2020-12-10 13:06:10 +01:00
a2cd1ff367
set DATABASE_URL, run diesel migration, separate steps
2020-12-10 13:00:31 +01:00
2d88dfdaef
run a query
2020-12-10 12:34:56 +01:00
b5b670b8b9
try db connection with psql
2020-12-10 12:31:59 +01:00
e02d0f39ec
retry service env
2020-12-10 02:10:17 +01:00
003852f884
try to fix postgres service
2020-12-10 02:03:29 +01:00
69c2fe19e4
remove docker socket mount
2020-12-10 01:44:11 +01:00
b79c10c122
apt-get -y
2020-12-10 01:26:45 +01:00
94ab4f6164
apt update
2020-12-10 01:24:28 +01:00
af2a27935b
add espeak and postgres client
2020-12-10 01:23:47 +01:00
5b34d2be6c
fix test, run clippy
2020-12-10 00:55:14 +01:00
ec13759ca6
use alt docker image
2020-12-10 00:24:14 +01:00
b7563bfbf5
set toolchain
2020-12-10 00:17:55 +01:00
7aa686b650
build as root
2020-12-10 00:16:50 +01:00
d0e730fed4
perm issues 2
2020-12-10 00:13:53 +01:00
58850a0b0c
permission issues
2020-12-10 00:13:21 +01:00
ef22f70e18
syntax again
2020-12-10 00:00:43 +01:00
88cd8b2d74
syntax
2020-12-09 23:59:45 +01:00
84ac188cee
cargo test + service
2020-12-09 23:58:50 +01:00
cdc7df8625
fix
2020-12-09 23:18:52 +01:00
2d011468b4
remove comment
2020-12-09 23:18:10 +01:00
4557f2b03d
make debug build
2020-12-09 23:17:32 +01:00
b83cafc454
separate steps
2020-12-09 22:43:32 +01:00
dabcfca67b
Adding tests for current aggregates.
2020-12-09 11:52:10 -05:00
09212bb6b7
fix docker image
2020-12-09 15:00:31 +01:00
d3a89a2a22
trigger another build
2020-12-09 14:58:58 +01:00
bfd306e9de
add volume back in
2020-12-09 14:56:45 +01:00
cb9a06e249
Minor grammar change in docs
2020-12-09 12:34:50 +01:00
f9f95a2b92
try plugins/docker image
2020-12-08 21:30:05 +01:00
91be01fd63
docker in docker
2020-12-08 21:27:03 +01:00
04fe7c29cb
remove workspace, fix paths
2020-12-08 21:25:24 +01:00
df0f609cce
log dir
2020-12-08 21:23:54 +01:00
e8ffa283f2
fix docker image?
2020-12-08 21:22:36 +01:00
b04944d9a5
try manually without sudo
2020-12-08 21:20:23 +01:00
eb06bbfef7
run test script
2020-12-08 21:17:11 +01:00
0e364a4efe
remove volume
2020-12-08 21:15:04 +01:00
d3b2ce7b35
wip: add drone ci, remove travis ci
2020-12-08 21:13:53 +01:00
742b78523a
Merge branch 'main' into move_views_to_diesel
2020-12-08 13:31:25 -05:00
a432f939b6
Merge remote-tracking branch 'yerba/main' into main
2020-12-08 13:31:09 -05:00
dessalines
6908feb3ba
Merge pull request 'Some more minor docs changes' ( #149 ) from more-docs into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/149
2020-12-08 18:31:45 +00:00
46e38bf714
Merge branch 'main' into move_views_to_diesel
2020-12-08 13:17:55 -05:00
5010f693ba
Some more minor docs changes
2020-12-08 19:09:11 +01:00
08ab85a9d5
Remove logging to find bug (yerbamate.ml/LemmyNet/lemmy/pulls/146)
2020-12-08 12:48:18 -05:00
16deec7443
Merge remote-tracking branch 'yerba/main' into main
2020-12-08 12:38:21 -05:00
9cc1cfc973
Apub local object handling ( #1297 )
...
* Limit visibility of some traits and methods
* WIP: alternative way to handle non-local object parsing
* finish this
* cleanup
* Move check for locked post into Comment::from_apub()
* Mark user as updated after fetching
* Should set last_refreshed_at, not updated
* Add ApubObject trait in DB, with method read_from_apub_id()
* Create shared, generic implementation for `FromApub`, prefer local data
* Check for community ban when parsing post/comment (fixes #1287 )
* Fix tests (changes in get_object_from_apub() prevented `Update` from working)
* Support parsing `like.object` either as URL or object
* Send out like.object as URL, instead of full object (fixes #1283 )
* add todo
2020-12-08 12:38:48 -05:00
dessalines
860f2f3855
Merge pull request 'Rewrite federation docs' ( #145 ) from federation-docs into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/145
2020-12-08 17:36:37 +00:00
55e03c4eb4
Rewrite federation docs
2020-12-08 14:52:54 +01:00
fc1d07fce6
Merge remote-tracking branch 'origin/main' into move_views_to_diesel
2020-12-07 16:22:09 -05:00
e371ec1dc4
Adding user aggregates tests.
2020-12-07 15:58:53 -05:00
5e57f1bcad
Merge pull request #1311 from r0qstr/patch-1
...
Update lemmy_council.md
2020-12-07 12:17:15 +00:00
9884927b8a
Adding site aggregates unit test.
2020-12-06 22:17:52 -05:00
f5bef3980a
Adding hot rank function, possibly fixing views.
2020-12-06 16:44:36 -05:00
36f7b20784
Removing old communityviews
2020-12-06 09:12:51 -05:00
5e510e7a67
Adding other community views.
2020-12-05 23:37:16 -05:00
caedb7fcc4
Community view halfway done.
2020-12-05 22:49:15 -05:00
r0qstr
0a12cb0281
Update lemmy_council.md
...
added myself as a council member
2020-12-05 21:02:19 +01:00
2400a078d7
Merge branch 'main' into move_views_to_diesel
2020-12-05 08:10:25 -06:00
028d1d0efc
Userview safe updated.
2020-12-04 23:18:30 -05:00
efdcbc44c4
Starting to work on community view, 2
2020-12-04 16:35:46 -05:00
Dessalines
cf3a98afcc
Merge pull request #1308 from LemmyNet/update_cargo_deps
...
Updating cargo deps, fixing image if_some deprecation.
2020-12-04 13:07:43 -05:00
88d7b0a83c
Starting to work on community view
2020-12-04 11:29:44 -05:00
b92e7eb781
Updating cargo deps, fixing image if_some deprecation.
2020-12-04 09:00:15 -05:00
2d4099577f
Removing old user_view.
2020-12-03 19:47:58 -05:00
6d8f93d8a1
More user aggregates.
2020-12-03 13:39:56 -05:00
d66f4e8ac0
Finishing up user aggregates.
2020-12-03 10:18:17 -05:00
5d44dedfda
Merge branch 'main' into move_views_to_diesel
2020-12-03 09:34:45 -05:00
eed7eac10b
Version v0.8.10
2020-12-03 08:28:58 -06:00
37e7f1a9a8
Starting to work on user aggs.
2020-12-03 08:27:22 -06:00
4a94d9182e
Merge pull request #1304 from LemmyNet/fix_community_local_filter
...
Fixing community local filter. #1302
2020-12-03 11:55:16 +00:00
7731479607
Adding SiteAggregates.
2020-12-02 22:39:31 -05:00
8a0336c2ff
Fixing community local filter. #1302
2020-12-02 16:04:13 -05:00
ca7224c086
Starting on siteview.
2020-12-02 13:32:47 -06:00
df8a696bb5
Merge pull request #1300 from Tafiti/patch-1
...
Added council member
2020-12-02 12:55:46 +00:00
Tafiti
d06b59c92b
Added a council member.
2020-12-01 18:22:17 -05:00
Tafiti
df913326bd
typo
2020-12-01 18:18:47 -05:00
b587e147b0
Version v0.8.9
2020-12-01 12:54:44 -06:00
e8116f21cd
Merge remote-tracking branch 'yerba/main' into main
2020-12-01 13:29:51 -05:00
nutomic
2b5c69d678
Add check to make sure that inbox doesnt receive local activities (ref #1283 ) ( #147 )
...
Fixed comparison
Add check to make sure that inbox doesnt receive local activities (ref #1283 )
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/147
2020-12-01 18:30:15 +00:00
Dessalines
4079235b0d
Fix post ranking docs in about guide. Fixes #1294 ( #1295 )
...
* Fix post ranking docs in about guide. Fixes #1294
* Shortening lines to refer to not just posts.
* Fixing top line.
2020-12-01 17:54:37 +00:00
Dessalines
45efa94ba4
Making sure image uploads have jwt cookie. Fixes #1291 ( #1299 )
2020-12-01 17:48:39 +00:00
cc8a6bea65
Merge branch 'patch-1' of https://github.com/Whayme/lemmy into Whayme-patch-1
2020-12-01 11:32:27 -06:00
Porrumentzio
4aa3180027
Update lemmy_council.md ( #1290 )
...
Removed line saying that council members are administrators on official instances, as it is unclear that currently only https://lemmy.ml is a official instance.
2020-12-01 16:25:04 +00:00
Scarlett
7f1ab6a5cd
Replaced table
2020-11-30 13:53:08 -06:00
3a90f69efc
Revert "Short intro explanation, reformatted as a table"
...
This reverts commit 961fc9d0ce
.
2020-11-30 14:24:09 -05:00
2e9164584b
Version v0.8.8
2020-11-30 12:56:05 -06:00
dessalines
9435994405
Merge pull request 'Add logging to find bug (ref #1283 )' ( #146 ) from debug-1283 into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/146
2020-11-30 18:49:11 +00:00
8d12c77e26
Remove dbg!
to avoid spamming logs
2020-11-30 18:28:31 +01:00
8fc4e1ecfe
Add logging to find bug (ref #1283 )
...
Also simplify check_object_domain()
2020-11-30 18:24:10 +01:00
Dessalines
7d7fe5962a
Merge pull request #1285 from Whayme/patch-1
...
Short intro explanation, reformatted as a table
2020-11-28 16:16:43 -05:00
Scarlett
961fc9d0ce
Short intro explanation, reformatted as a table
...
More explanation from someone who understands the benefits of the log scale would be helpful.
2020-11-28 00:29:56 -06:00
nutomic
3ceeecc63e
Better account deletion ( fixes #730 ) ( #143 )
...
Also clear bio
Better account deletion (fixes #730 )
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/143
2020-11-27 21:00:18 +00:00
5b66e4860c
Merge remote-tracking branch 'yerba/main' into main
2020-11-27 16:00:15 -05:00
5e10cf69b7
Merge remote-tracking branch 'yerba/main' into main
2020-11-27 15:58:22 -05:00
dessalines
050ca88085
Merge pull request 'Set valid context for our extra fields (ref #1220 )' ( #142 ) from apub-context into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/142
2020-11-27 20:28:52 +00:00
Dessalines
ac330a3f7b
Adding a local RSS feed. Fixes #1279 ( #1280 )
...
* Adding a local RSS feed. Fixes #1279
* Shorten get_local_feed and get_all_feed functions
* Making the enum params the same.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2020-11-26 17:26:31 +00:00
Dessalines
01a14e3b3c
Change references of dev.lemmy.ml to lemmy.ml ( #1281 )
...
* Change references of dev.lemmy.ml to lemmy.ml
* Remove the dev.lemmy.ml refs in RELEASES.md
2020-11-26 11:47:01 -05:00
a30be1ca5d
Merge branch 'eiknat-feature/add-reporting-backend' into main
2020-11-26 13:31:25 +01:00
68173914ca
Minor cleanup on reports PR
2020-11-26 13:28:58 +01:00
f070b1823d
Make changes on content
field backwards compatible
2020-11-26 13:24:14 +01:00
Dessalines
2b5feca806
Trying out cargo chef and a travis docker image cache. ( #1238 )
...
* Trying out cargo chef and a travis docker image cache.
* trying to change internal target.
* Use latest cargo-chef with --target
* Remove caching for now.
* Adding back in chowns
* Adding back in cache.
* Remove travis caching.
* Switching dev dockerfile to match prod, using cargo-chef and alpine.
* Make travis happy
* Trying a chown rust.
* Caching cargo-chef first.
* Moving the chowns
* Removing many copy commands.
* Go back to rust 1.47.0 due to config-rs breaking.
* Adding the old volume mount version.
* Adding some script comments.
Co-authored-by: Luca Palmieri <lpalmieri@truelayer.com>
2020-11-26 13:24:13 +01:00
d75f621152
Populate content
with HTML, and source
with markdown (ref #1220 )
2020-11-26 13:24:13 +01:00
8bdbda1db9
Remove clap dependency
2020-11-26 13:24:13 +01:00
a2d80d8f2e
Generate valid RSS feed ( fixes #1274 )
2020-11-26 13:24:13 +01:00
8b5289d5c7
Add TODO about populating user outbox
2020-11-26 13:24:13 +01:00
8fe578c958
Version v0.8.7
2020-11-26 13:24:13 +01:00
ac75304a09
Version v0.8.6
2020-11-26 13:24:13 +01:00
7fe4558bee
Create empty outbox for user (ref #1220 )
2020-11-26 13:24:12 +01:00
f3eebb1dfc
Version v0.8.5
2020-11-26 13:24:12 +01:00
250dcc26be
For community_name API parameters, only search locally ( fixes #1271 )
2020-11-26 13:24:12 +01:00
11fdef56db
Dont handle activities twice in inbox
2020-11-26 13:24:12 +01:00
d6493f31d9
Reduce visibility of some structs and methods (replaces #1266 )
2020-11-26 13:24:04 +01:00
8b8d47f6f5
Version v0.8.4
2020-11-26 13:22:16 +01:00
aaa3fc08af
Add user_inbox check that activities are really addressed to local users
2020-11-26 13:22:16 +01:00
dessalines
9707de4d4a
Merge pull request 'Populate content
with HTML, and source
with markdown (ref #1220 )' ( #141 ) from apub-media-type2 into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/141
2020-11-25 19:54:52 +00:00
a7b72ed5c4
Set valid context for our extra fields (ref #1220 )
2020-11-25 18:44:49 +01:00
b2288fcb9a
Make changes on content
field backwards compatible
2020-11-25 14:07:04 +01:00
e0e23c2f9d
Merge branch 'main' into apub-media-type2
2020-11-25 13:15:29 +01:00
cd3f20e49b
Populate content
with HTML, and source
with markdown (ref #1220 )
2020-11-24 18:53:43 +01:00
dessalines
1e187ab4f8
Merge pull request 'Remove clap dependency' ( #139 ) from remove-clap2 into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/139
2020-11-23 18:01:39 +00:00
aaeb852f23
Remove clap dependency
2020-11-23 18:48:20 +01:00
Dessalines
d26a7ad337
Trying out cargo chef and a travis docker image cache. ( #1238 )
...
* Trying out cargo chef and a travis docker image cache.
* trying to change internal target.
* Use latest cargo-chef with --target
* Remove caching for now.
* Adding back in chowns
* Adding back in cache.
* Remove travis caching.
* Switching dev dockerfile to match prod, using cargo-chef and alpine.
* Make travis happy
* Trying a chown rust.
* Caching cargo-chef first.
* Moving the chowns
* Removing many copy commands.
* Go back to rust 1.47.0 due to config-rs breaking.
* Adding the old volume mount version.
* Adding some script comments.
Co-authored-by: Luca Palmieri <lpalmieri@truelayer.com>
2020-11-23 10:59:06 -05:00
dessalines
911b26f163
Merge pull request 'Generate valid RSS feed ( fixes #1274 )' ( #136 ) from valid-rss into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/136
2020-11-20 18:55:11 +00:00
8920f439ce
Generate valid RSS feed ( fixes #1274 )
2020-11-20 15:11:47 +01:00
405ea38959
Add TODO about populating user outbox
2020-11-19 13:50:43 +01:00
bffc82f752
Version v0.8.7
2020-11-18 16:18:53 -06:00
e2693a4192
Version v0.8.6
2020-11-18 13:12:24 -06:00
c7740a7ac5
Merge remote-tracking branch 'yerba/main' into main
2020-11-18 13:12:08 -06:00
dessalines
c038acea5b
Merge pull request 'Create empty outbox for user (ref #1220 )' ( #135 ) from user-outbox into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/135
2020-11-18 19:13:32 +00:00
48f506277a
Create empty outbox for user (ref #1220 )
2020-11-18 17:04:35 +01:00
b8dc3c11c1
Version v0.8.5
2020-11-17 15:11:58 -06:00
dessalines
f0e3303aeb
Merge pull request 'For community_name API parameters, only search locally ( fixes #1271 )' ( #134 ) from community-name-local into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/134
2020-11-17 21:07:00 +00:00
1ba1e466f7
For community_name API parameters, only search locally ( fixes #1271 )
2020-11-17 18:05:25 +01:00
dessalines
eb690fc39c
Merge pull request 'Dont handle activities twice in inbox' ( #133 ) from inbox-deduplicate-handling into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/133
2020-11-17 15:43:11 +00:00
14bf45d099
Dont handle activities twice in inbox
2020-11-16 21:43:52 +01:00
dessalines
eee394cf85
Merge pull request 'Reduce visibility of some structs and methods (replaces #1266 )' ( #132 ) from reduce-visibility into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/132
2020-11-16 16:36:30 +00:00
8675fed49c
Reduce visibility of some structs and methods (replaces #1266 )
2020-11-16 16:44:04 +01:00
0dcff2e647
Version v0.8.4
2020-11-12 11:54:31 -06:00
nutomic
1b8ce33aa4
Merge pull request 'Add user_inbox check that activities are really addressed to local users' ( #131 ) from user-inbox-check into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/131
2020-11-12 12:50:00 +00:00
eiknat
a68cff51b1
add doc
2020-11-11 15:41:40 -05:00
eiknat
9e604b4038
update/fix migration, add some doc
...
also run cargo fmt/clippy
2020-11-11 15:11:52 -05:00
eiknat
438414a64b
add more details to the report views
2020-11-11 15:11:52 -05:00
eiknat
30d784c27c
add mod room websocket impl
2020-11-11 15:11:52 -05:00
eiknat
070efe72af
add current context for reports
2020-11-11 15:11:52 -05:00
eiknat
2cd2a4df45
reports: split post/comment out again, add some other fixes
2020-11-11 15:11:52 -05:00
eiknat
e8e0890341
db: fix a few comments i missed
2020-11-11 15:11:52 -05:00
eiknat
d6b1c8df2f
reports: update db tables, combine api impl
2020-11-11 15:11:52 -05:00
eiknat
6d43202efb
reports: initial reports api commit
2020-11-11 15:11:52 -05:00
08b8e9999b
Merge remote-tracking branch 'yerba/main' into main
2020-11-11 13:18:42 -06:00
dessalines
15c77f85c1
Merge pull request 'Add pending status for federated follows' ( #130 ) from pending-follow into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/130
2020-11-11 19:18:27 +00:00
fb16f47f2f
Add user_inbox check that activities are really addressed to local users
2020-11-11 17:40:45 +01:00
964d95de5c
Fix unit tests
2020-11-11 17:28:30 +01:00
64ac4e382a
Version v0.8.3
2020-11-11 07:57:33 -06:00
Dessalines
4a61758bde
Merge pull request #1261 from LemmyNet/more-tests-2
...
Adding some more integration tests for locked posts and bans.
2020-11-10 13:39:01 -05:00
ff8acfb8de
Adding some more integration tests for locked posts and bans.
2020-11-10 10:53:35 -06:00
06e82fe761
Add pending status for federated follows
2020-11-10 16:45:10 +01:00
dessalines
94dd335fac
Merge pull request 'Enforce post lock in federation inbox' ( #129 ) from enforce-post-lock into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/129
2020-11-10 13:16:13 +00:00
dessalines
437809d337
Merge pull request 'Separate logic for user and community inbox' ( #123 ) from rewrite-inbox into main
...
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/123
2020-11-10 13:14:40 +00:00
e1fd614dd1
Fixed bug where comments with mentions were treated as private message
2020-11-09 19:18:23 +01:00
3b4c3ec074
Enforce post lock in federation inbox
2020-11-09 17:06:54 +01:00
8803e7834f
Enforce site and community bans for federated users
2020-11-09 15:29:36 +01:00
b469b6d8d3
Separate logic for user and community inbox
...
more refactoring with tons of changes:
- inbox functions return LemmyError instead of HttpResponse
- announce is done directly in community inbox
- reorganized functions for handling inbox activities
- additional checks for private messages
- moved inbox handler functions for post, comment, vote into separete file
- ensure that posts, comments etc are addressed to public (ref #1220 )
- probably more
2020-11-09 13:42:08 +01:00
7e13970a4f
Version v0.8.2
2020-11-06 07:06:50 -06:00
nutomic
7c51a36012
In activity table, remove user_id
and add sensitive
( #127 )
...
Forgot to add migrations
Add `sensitive` column to activities table, so PMs arent served over HTTP
Remove user_id column from actvity table
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/127
2020-11-06 13:06:47 +00:00
405eb15291
Merge remote-tracking branch 'yerba/main' into main
2020-11-06 07:05:22 -06:00
nutomic
b7d2dac9bf
Fix federation of community removal/deletion, added docs ( #125 )
...
Adding a federation test for community deletes / removes.
Add missing docs for community deletion/removal (fixes #1250 )
Fix federation of community deletion/removal (fixes #1253 )
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/125
2020-11-05 20:19:06 +00:00
76193d37da
Merge remote-tracking branch 'yerba/main' into main
2020-11-05 14:17:35 -06:00
dessalines
60517f8471
Merge pull request 'Dont send email notifications to banned users ( fixes #1251 )' ( #126 ) from dont-email-banned-user into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/126
2020-11-05 19:14:49 +00:00
c6c74ab1e3
Also check for ban when sending private message notification
2020-11-05 16:13:01 +01:00
Dessalines
9aa700fb10
Merge pull request #1252 from LemmyNet/yerbamate-change-tld
...
Change domain of yerbamate.dev to yerbamate.ml
2020-11-05 08:41:12 -05:00
d2bea09a60
Dont send email notifications to banned users ( fixes #1251 )
2020-11-05 13:43:46 +01:00
45dced3fcb
Change domain of yerbamate.dev to yerbamate.ml
2020-11-03 22:50:59 +01:00
Dessalines
5e2a5c0266
Upgrading pictrs to v0.2.5 ( #1249 )
2020-11-02 18:12:21 +00:00
Dessalines
18d9811de7
Merge pull request #1246 from knkski/pictrs-url-variable
...
Fix hardcoded pictrs URL reference
2020-11-01 22:45:03 -05:00
Dessalines
cca0b4c0f9
Merge pull request #1247 from knkski/iframely-url-setting
...
Add iframely_url setting
2020-11-01 22:44:28 -05:00
eab9123b86
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-11-01 21:26:36 -06:00
0ea4095238
Changing docs formattin, running format.
2020-11-01 21:26:00 -06:00
Kenneth Koski
b3035e21ef
Parameterize docs directory ( #1245 )
...
Adds `docs_dir` setting for configurable documentation location
2020-11-01 22:21:15 -05:00
Kenneth Koski
3d872b03e3
Add iframely_url setting
2020-10-31 17:08:03 -05:00
Kenneth Koski
1ae335e058
Fix hardcoded pictrs URL reference
...
Reads the URL from Settings instead
2020-10-31 16:52:54 -05:00
Kenneth Koski
09498d8bb3
Update configuration documentation
2020-10-31 16:28:09 -05:00
Kenneth Koski
bfd8f52497
Parameterize config file location
...
Allows `config.hjson` to be located on a configurable path.
2020-10-31 16:25:52 -05:00
eiknat
fc36ae22c9
GetUserDetails doesnt return users own email ( #1240 )
...
* user: GetUserDetails doesnt return users own email
* user: rename get_user to get_user_dangerous, apply suggested changes
2020-10-30 18:19:47 -04:00
1fd5486def
Fixing missing community doc.
2020-10-30 12:46:11 -05:00
Dessalines
7ef044231f
Update cargo deps, upgrading lettre. #789 ( #1234 )
...
* Update cargo deps, upgrading lettre. #789
* Adding a comment
* Adding some better expect messages.
* Fixing lettre email.
2020-10-30 13:19:00 -04:00
Dessalines
9e5e0eb9b7
Merge pull request #1242 from ShadowJonathan/patch-1
...
Update about_features.md
2020-10-30 11:28:53 -04:00
Jonathan de Jong
d3b07c8131
Update about_features.md
...
...in accordance with the readme.
2020-10-30 09:46:30 +01:00
dessalines
3bf885329d
Merge pull request 'Ignore incoming activities which have been received before, add /activities
endpoint' ( #118 ) from activity-checks into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/118
2020-10-27 16:26:16 +00:00
dessalines
e95ca66c9f
Merge pull request 'In comment create/update, include parent creator in cc (ref #698 )' ( #122 ) from comment-parent-cc into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/122
2020-10-27 16:15:20 +00:00
9e24eda752
In comment create/update, include parent creator in cc (ref #698 )
2020-10-27 16:57:44 +01:00
77b17c6737
Fixing cache dev dockerfile
2020-10-27 10:57:40 -05:00
91d073c2e8
Use docker cache for docker/dev/
2020-10-27 13:58:52 +01:00
4c0c558945
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-10-26 19:18:28 -05:00
5b871d3dd8
Merge branch 'prod_dockerfile_update' into main
2020-10-26 19:16:33 -05:00
2e922d602d
Trying a target fix.
2020-10-26 17:32:50 -05:00
3100e8bf21
Trying a target fix.
2020-10-26 15:50:37 -05:00
b42b461418
Trying a permissions fix.
2020-10-26 13:35:19 -05:00
Dessalines
604d125a55
Simplifying prod build, using musl stable. ( #1235 )
2020-10-26 17:33:43 +00:00
ba0680f5e6
Simplifying prod build, using musl stable.
2020-10-26 12:18:47 -05:00
6eab24270b
Merge remote-tracking branch 'yerba/main' into main
2020-10-26 10:34:40 -05:00
dessalines
53c9094d46
Merge pull request 'Limit amount of HTTP requests to handle activities ( fixes #1221 )' ( #117 ) from request-limit into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/117
2020-10-26 15:35:39 +00:00
dessalines
60bc62932b
Merge pull request 'docker/lemmy.hjson is missing field email.use_tls ( fixes #1231 )' ( #120 ) from lemmy-config-use-tls into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/120
2020-10-26 13:49:05 +00:00
99abc49040
Add /activities endpoint (ref #1220 )
2020-10-26 12:54:27 +01:00
Dessalines
6337762ec7
Adding image endpoints to docs. Fixes #1226 ( #1232 )
2020-10-26 11:07:23 +00:00
c33918c71f
docker/lemmy.hjson is missing field email.use_tls ( fixes #1231 )
2020-10-26 11:28:32 +01:00
4f0059198e
Updating readme to ref join.lemmy.ml
2020-10-25 10:34:22 -05:00
134d66924e
Version v0.8.1
2020-10-24 15:15:48 -05:00
295c209c67
Updating lemmy.hjson config.
2020-10-24 15:14:58 -05:00
5e0562e80e
Fix matrix room link.
2020-10-24 15:10:22 -05:00
Dessalines
ad1ba85eb9
Merge pull request #1229 from IronOxidizer/fix-docker-dev
...
Removed docker root prefix, add pictrs dir
2020-10-23 14:04:30 -04:00
Iron Oxidizer
ac79496036
Removed docker root prefix, add pictrs dir
2020-10-23 13:14:30 -04:00
6d17d5ead2
Ignore incoming activities which have been received before (ref #1220 )
2020-10-23 14:29:56 +02:00
Dessalines
cfa60dcb76
Merge pull request #1225 from LemmyNet/fix_remove_icons
...
Fix invalid url error when removing icons. Fixes #1219
2020-10-22 14:56:55 -04:00
Dessalines
52c679a3cd
Merge pull request #1223 from LemmyNet/remove_cache_headers
...
Remove cache headers. Fixes #1222
2020-10-22 14:56:43 -04:00
dessalines
73ccbb1bc8
Merge pull request 'Organise activity receive files by object type, not by activity type' ( #115 ) from inbox-refactoring-2 into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/115
2020-10-22 18:55:28 +00:00
dessalines
de8d8542b4
Merge pull request 'Dont allow localhost or raw IPs in activitypub IDs (ref #1221 )' ( #116 ) from disallow-localhost-urls into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/116
2020-10-22 18:55:11 +00:00
a897ec48d2
Merge remote-tracking branch 'yerba/main' into main
2020-10-22 13:55:01 -05:00
3d5647b16f
Limit amount of HTTP requests to handle activities ( fixes #1221 )
2020-10-22 20:27:32 +02:00
18111629fa
Fix invalid url error when removing icons. Fixes #1219
2020-10-22 12:23:25 -05:00
e7d3905093
Remove cache headers. Fixes #1222
2020-10-22 11:53:53 -05:00
b08e0a6415
Dont allow localhost or raw IPs in activitypub IDs (ref #1221 )
2020-10-22 18:12:43 +02:00
Dessalines
2527c59e55
Fixing ansible for ubuntu 20.04 ( #1218 )
...
* Fixing ansible for ubuntu 20.04
* Changing federation to false.
2020-10-22 14:32:56 +00:00
1a3b96b054
Organise activity receive files by object type, not by activity type
2020-10-21 19:37:50 +02:00
dessalines
3e22c99c96
Merge pull request 'Also return json for long accept header with profile link (ref #1216 )' ( #114 ) from json-headers into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/114
2020-10-21 16:33:31 +00:00
a62c96f85e
Merge remote-tracking branch 'yerba/main' into main
2020-10-21 11:32:25 -05:00
Dessalines
8a6bfa3816
Merge pull request #1217 from lo48576/fix/outdated-readme-link
...
Fix outdated links in README
2020-10-21 09:55:17 -04:00
e8379cb3f7
Also return json for long accept header with profile link (ref #1216 )
2020-10-21 15:48:43 +02:00
YOSHIOKA Takuma
8bfd678d49
Fix outdated links in README
2020-10-21 22:23:09 +09:00
Dessalines
1b62e65a5d
Fix IP forwarding headers. Fixes #1214 ( #1215 )
2020-10-21 09:47:45 +00:00
Dessalines
dd99e77881
Upgrade pictrs to v0.2.4-r0 ( #1212 )
2020-10-20 10:44:55 +00:00
Dessalines
18b3eab909
Merge pull request #1209 from LemmyNet/fix-actor-name-confusion
...
Swap name and preferredUsername apub fields
2020-10-19 11:52:35 -04:00
Dessalines
7673e60654
Merge pull request #1210 from LemmyNet/apub-code-docs
...
Create rustdoc for activitypub code
2020-10-19 11:47:17 -04:00
695272f980
Create rustdoc for activitypub code
2020-10-19 16:29:35 +02:00
e190ecbefb
Make lemmy-ui restart: always
2020-10-19 12:18:05 +02:00
Dessalines
37f616bad2
Adding some comments to defaults.hjson ( #1207 )
...
* Adding some comments to defaults.hjson
* Link to docs for allow/blocklist.
2020-10-16 20:46:40 +00:00
06a6bab2c1
Swap name and preferredUsername apub fields
2020-10-16 22:44:40 +02:00
cead2a6303
Version v0.8.0
2020-10-16 09:12:54 -05:00
0c4f99b161
Adding to releases.md
2020-10-16 09:10:43 -05:00
815cf60f45
Fixing clippy.
2020-10-16 09:09:37 -05:00
Dessalines
571c71392e
Adding API and APUB URL checks for banners and icons. Fixes #1199 ( #1200 )
...
* Adding API and APUB URL checks for banners and icons. Fixes #1199
* Adding a check optional url.
* Missed a few.
2020-10-15 18:23:56 +00:00
Dessalines
24484ed801
Adding references to lemmy types from docs. ( #1203 )
...
* Adding references to lemmy types from docs.
* Updating TOC.
* Updating docs.
2020-10-15 17:56:16 +00:00
Dessalines
3e35e4052f
Merge pull request #1206 from LemmyNet/verify-activity-domains2
...
Verify activity domains 2
2020-10-15 11:18:57 -04:00
Dessalines
a2df2b12e2
Merge pull request #1201 from LemmyNet/verify-activity-domains
...
Add method verify_activity_domains_valid() (ref #1196 )
2020-10-15 11:15:25 -04:00
fe15ff3c51
Also verify activity domains in shared inbox ( fixes #1196 )
2020-10-15 15:38:49 +02:00
39cbe5f31f
Add method verify_activity_domains_valid() (ref #1196 )
2020-10-15 15:38:03 +02:00
Dessalines
23793fe096
Merge pull request #1202 from LemmyNet/pict-rs-v2-dess
...
Pict rs v2 dess
2020-10-14 15:46:02 -04:00
c87a009b37
Altering lemmy pict-rs-v2 forwarding.
2020-10-14 11:48:10 -05:00
9bbacd38f4
Merge branch 'asonix/pict-rs-v2' of https://github.com/asonix/lemmy into asonix-asonix/pict-rs-v2
2020-10-14 10:14:25 -05:00
c9c3d94bf9
Merge remote-tracking branch 'yerba/main' into main
2020-10-13 13:30:32 -05:00
dessalines
d55e38d4a6
Merge pull request 'Dont include full objects with remove/delete activities' ( #113 ) from delete-with-id into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/113
2020-10-13 18:31:11 +00:00
3f9ede79ed
Add domain checks for private message inbox
2020-10-13 18:06:26 +02:00
ac0cd7bc68
Dont include full objects with remove/delete activities
2020-10-13 17:47:05 +02:00
56d361eeff
Update activitypub outline ( #1183 )
...
* Update activitypub outline
* Various adjustments of apub outline
2020-10-13 09:00:35 -04:00
dessalines
9084a56e36
Merge pull request 'ActivityPub refactoring' ( #112 ) from apub-changes into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/112
2020-10-12 17:28:48 +00:00
7cfcf0acec
Change the way that to
is set in apub
2020-10-12 18:02:28 +02:00
2ad60379e4
Add to
field for follow, undo follow
2020-10-12 16:45:40 +02:00
0dda2577e1
Refactor apub code, split up large files
2020-10-12 16:10:09 +02:00
cc9bb56d2d
Merge pull request #1192 from LemmyNet/fix_fast_triggers_2
...
Fixing hot_rank_active fast triggers. Fixes #1190
2020-10-12 10:33:46 +00:00
f44612970a
Merge pull request #1189 from LemmyNet/fix_search_filter
...
Fixing post community filter. Fixes #1187
2020-10-12 10:31:15 +00:00
70f7dd876f
Merge pull request #1188 from LemmyNet/fix_blocked_creator_outbox
...
Fixed an issue with blocked post creators in outbox.
2020-10-12 10:30:48 +00:00
b19ac26325
Merge pull request #1191 from LemmyNet/update_deps
...
Updating deps.
2020-10-12 10:28:32 +00:00
4010a944a4
Bump pict-rs version
2020-10-11 13:57:35 -05:00
863a662ec6
Stable release
2020-10-10 20:54:15 -05:00
08588c873a
pict-rs v2
2020-10-10 19:31:56 -05:00
a903cae00b
Fixing hot_rank_active fast triggers. Fixes #1190
2020-10-09 23:03:38 -05:00
907f8fff4c
Updating deps.
2020-10-09 22:51:47 -05:00
1c8913090d
Fixing post community filter. Fixes #1187
2020-10-09 13:09:00 -05:00
Dessalines
e61c3f0de3
Merge pull request #1185 from LemmyNet/federation-disable-downvotes
...
Respect disable downvotes setting when federating
2020-10-09 13:58:29 -04:00
cb4a3a03a2
Fixed an issue with blocked post creators in outbox.
...
- Fixes #1186
2020-10-09 12:46:27 -05:00
c90c96fbf6
Respect disable downvotes setting when federating
2020-10-09 15:41:40 +02:00
97fc51b0cd
Version v0.7.64
2020-10-08 18:34:30 -05:00
0b4ecdfc05
Fixing a bug with stickied order.
2020-10-08 18:33:54 -05:00
875b0e6f01
Version v0.7.63
2020-10-08 17:50:51 -05:00
03b1821586
Version v0.7.62
2020-10-08 15:52:10 -05:00
Dessalines
8d0580461b
Merge pull request #1180 from LemmyNet/no_conflict_triggers
...
No send blocked and no conflict triggers
2020-10-08 14:51:04 -04:00
7fbad900d7
Addressing a few comments.
2020-10-08 12:38:44 -05:00
Dessalines
f5184ce749
Fixing local filter, fixes #1181 ( #1182 )
2020-10-08 11:10:10 -04:00
e9ce14069e
Removing some unecessary logging.
2020-10-07 21:55:15 -05:00
c08d891742
Merge branch 'main' into no_conflict_triggers
2020-10-07 20:57:29 -05:00
b4c730e537
Revert "Removing on_conflict as it may not work with table triggers (user_fast, etc)"
...
This reverts commit db7027a367
.
2020-10-07 19:08:06 -05:00
fd257a6d39
Adding no conflict triggers. Fixes #1179
2020-10-07 19:05:46 -05:00
299598f0c4
Remove unused fields on community/user json ( #1178 )
2020-10-07 14:19:12 -04:00
f00cfa005e
Adding submodule update --remote
2020-10-07 11:09:56 -05:00
9dc6294065
Explain how federation works for admins, various doc updates ( #1176 )
2020-10-07 12:08:03 -04:00
9fe3efcb32
Trimming allowed and blocked instances
2020-10-07 09:40:36 -05:00
30431199cf
Merge remote-tracking branch 'origin/no-send-blocked' into no-send-blocked-dess
2020-10-06 12:33:18 -05:00
db7027a367
Removing on_conflict as it may not work with table triggers (user_fast, etc)
2020-10-06 12:31:16 -05:00
26883208cd
Create separate SendActivityTask for each destination
2020-10-06 19:19:53 +02:00
60730e81d9
Avoid duplicate comment send, better activity logging
2020-10-06 18:28:31 +02:00
ca4868cefd
Adding a boolean check to send_activity_internal
2020-10-06 10:19:01 -05:00
9e84fe20e6
Dont send mentions to inbox of local community
...
also, dont start SendActivityTask for empty `to`, and remove
useless comment
2020-10-06 14:58:37 +02:00
c6c107cad1
Merge pull request #1173 from LemmyNet/password_length_check
...
Password length check. Fixes #1087
2020-10-05 20:24:07 +00:00
5e92fb47ed
Changing one more darkly to browser. #1163
2020-10-05 11:53:13 -05:00
984f1ae7fb
Merge remote-tracking branch 'yerba/main' into main
2020-10-05 11:52:04 -05:00
dessalines
38f4c5f310
Merge pull request 'Update lemmy-ui version in docker-compose files on release ( fixes #1164 )' ( #111 ) from update-lemmy-ui into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/111
2020-10-05 16:49:51 +00:00
dc18ec533e
Merge pull request #1174 from LemmyNet/add_community_name_search
...
Adding optional community_name field to search. Fixes #1057
2020-10-05 15:55:33 +00:00
07ddeef568
Merge pull request #1170 from LemmyNet/improve_admin_docs
...
Improving administration page docs. Fixes #1160
2020-10-05 15:49:11 +00:00
14c3d10ba9
Merge pull request #1169 from LemmyNet/new_default_theme
...
Changing default theme to browser from darkly. Fixes #1163
2020-10-05 15:47:26 +00:00
4a925c9e9f
Merge pull request #1172 from LemmyNet/remove_kubernetes
...
Remove kubernetes. #842
2020-10-05 15:38:51 +00:00
5a56c08c91
Update lemmy-ui version in docker-compose files on release ( fixes #1164 )
2020-10-05 17:36:53 +02:00
dessalines
75ace1192a
Merge pull request 'Only search locally for Community::read_from_name and similar (ref #698 )' ( #110 ) from read-only-local into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/110
2020-10-05 15:25:09 +00:00
c348e788e4
Adding optional community_name field to search. Fixes #1057
2020-10-04 19:57:35 -05:00
557d476001
Password length check. Fixes #1087
2020-10-04 19:10:15 -05:00
9b69c446e2
Remove kubernetes. #842
2020-10-04 15:44:26 -05:00
4d0365bca3
Replace gitlab with codeberg. Fixes #1171
2020-10-04 14:01:12 -05:00
990987b174
Improving administration page docs. Fixes #1160
2020-10-04 08:42:30 -05:00
04a4624f14
Changing default theme to browser from darkly. Fixes #1163
2020-10-03 11:44:25 -05:00
7cc5f53cad
Add line showing default ports for nginx. Fixes #1167
2020-10-03 09:53:48 -05:00
389e929c8e
Fixing readme.
2020-10-03 09:51:15 -05:00
048fe287c2
Running cargo fmt.
2020-10-03 09:50:06 -05:00
9fa2092a21
Adding some logging.
2020-10-03 09:47:06 -05:00
2e2b6eacd7
Fixing pretty print again.
2020-10-02 10:15:26 -05:00
eef0a5c7e8
Adding pretty print for activities.
2020-10-02 09:21:14 -05:00
e596ea6e3a
Add documentation for federation overview ( fixes #774 ) ( #1165 )
2020-10-02 09:02:16 -04:00
15adc21e1f
Only search locally for Community::read_from_name and similar (ref #698 )
2020-10-02 14:18:20 +02:00
f5b511ccce
Merge branch 'main' into no-send-blocked-dess
2020-10-01 15:57:47 -05:00
2ad137c280
Merge branch 'remove-hardcoded-https-dess' into main
2020-10-01 12:56:04 -05:00
3a24adc57f
Renaming to sign_and_send
2020-10-01 12:54:20 -05:00
61f013e4cb
Trying to fix travis build.
2020-10-01 09:16:56 -05:00
6c8a5723f8
Trying to add some long delays.
2020-10-01 08:32:01 -05:00
a4cb067130
Dont send to blocked instances, rewrite activity_sender
2020-09-30 20:35:02 +02:00
b074a963fe
Version v0.7.61
2020-09-30 20:28:58 +02:00
Dessalines
0ebd830814
More overwriteable fields ( #1155 )
...
* Adding more overwriteable fields for user. Fixes #1154
* Adding a note for bio.
2020-09-30 20:28:58 +02:00
Dessalines
4772cbd23f
Merge pull request #1162 from asonix/remove-hardcoded-https
...
Use http-signature-normalization-reqwest
2020-09-30 09:28:40 -04:00
1fc21aed1c
Use http-signature-normalization-reqwest
2020-09-29 20:08:50 -05:00
c1db1042ad
Also sign the digest header
2020-09-29 16:46:49 +02:00
0aa0ea19fb
Use reqwest to send activities
2020-09-29 15:10:55 +02:00
ada82582ef
Version v0.7.61
2020-09-25 16:26:19 -05:00
927ab1f040
Remove hardcoded usage of https ( fixes #1126 )
2020-09-25 17:33:00 +02:00
Dessalines
8bea13d651
More overwriteable fields ( #1155 )
...
* Adding more overwriteable fields for user. Fixes #1154
* Adding a note for bio.
2020-09-25 11:16:49 -04:00
Dessalines
10b3d9005f
Merge pull request #1152 from LemmyNet/upgrade_api_test_deps
...
Upgrade api test deps
2020-09-24 22:50:32 -04:00
5dbb2b45cb
Upgrade api test deps.
2020-09-24 13:22:11 -05:00
nutomic
bfed8a8be4
Dont federate embeds, but refetch them for security ( #106 )
...
Dont federate embeds, but refetch them for security (#ref 647)
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/106
2020-09-24 17:43:42 +00:00
4de80dc29d
Merge remote-tracking branch 'yerba/main' into main
2020-09-24 09:14:09 -05:00
nutomic
442369a041
Move websocket code into workspace ( #107 )
...
Adjust dockerfiles, fix cargo.toml and remove unused deps
Merge branch 'main' into move-websocket-to-workspace
Move api code into workspace
Move apub to separate workspace
Move websocket code into separate workspace
Some code cleanup
Remove websocket dependency on API
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/107
2020-09-24 13:53:21 +00:00
nutomic
e8ea0664ef
Fix nginx config for local federation setup ( #104 )
...
Fix depends_on
Add note about different port for backend in federation docs
Fix nginx config for local federation setup
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/104
2020-09-24 13:50:38 +00:00
Dessalines
698fb20c12
Fixing ansible install. ( #1150 )
...
* Fixing ansible install.
* Fixing LEMMY_EXTERNAL_HOST docs.
2020-09-24 09:47:24 -04:00
Dessalines
c6888472dc
Add linked instances. ( #1149 )
...
* Adding linked instances. Fixes #1147
* Removing current instance, checking for federation enabled.
* Cleaning up.
* Switching to iterator.
2020-09-24 09:46:57 -04:00
ab17e0a9f3
Merge branch 'add-view-helper-functions' of https://github.com/eiknat/lemmy into eiknat-add-view-helper-functions
2020-09-23 16:16:18 -05:00
b99b62a211
Version v0.7.59
2020-09-23 08:58:30 -05:00
1dcf14289d
Removing weblate translations from deploy.
2020-09-23 08:56:32 -05:00
5732fde4d9
Updating issue template to show lemmy-ui.
2020-09-22 14:32:18 -05:00
440dba4372
Merge pull request #1146 from LemmyNet/fix_nginx_docs
...
Fix nginx docs, fix test deploy.
2020-09-22 19:02:46 +00:00
2bee3ac33b
Fix nginx docs, fix test deploy.
2020-09-22 11:28:16 -05:00
2189d15e5b
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-09-22 10:12:36 -05:00
66cf9ff70a
Merge remote-tracking branch 'yerba/main' into main
2020-09-22 10:12:26 -05:00
dessalines
8e69801e24
Merge pull request 'Add integration test to ensure that signatures are verified' ( #103 ) from integration-test into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/103
2020-09-22 15:10:28 +00:00
b5860a4283
Merge pull request #1145 from LemmyNet/fix_remote_subscribe
...
Fixing remote subscribe result. Fixes #1144
2020-09-21 19:09:48 +00:00
aece5e67b7
Address review comments
2020-09-21 17:24:42 +02:00
9395312079
Fixing remote subscribe result. Fixes #1144
2020-09-21 09:35:13 -05:00
Dessalines
8a7eb57c24
Add openssl ( #1143 )
...
* Adding openssl.
* Openssl didnt work, switching to rustls.
2020-09-21 10:08:47 -04:00
12af0f462f
Update federation docs
2020-09-21 14:02:40 +02:00
db3dcc6fdc
Add tests for community_inbox and user_inbox
2020-09-18 17:45:50 +02:00
9d4973829b
Add integration test to ensure that signatures are verified
2020-09-18 16:37:46 +02:00
Dessalines
7bdb1abbe6
Published user time ( #1141 )
...
* Adding published time to UserForm.
- Federates user creation time. Fixes #1140
* Check the user published time.
2020-09-18 11:04:12 +00:00
dessalines
fc525c8144
Merge pull request 'Add tests for avatars, banners and more' ( #102 ) from more-tests into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/102
2020-09-17 18:22:07 +00:00
cdb02c992c
Add tests for avatars, banners and more
2020-09-17 17:41:51 +02:00
9f4493a0b2
Updating cargo.lock.
2020-09-16 12:37:09 -05:00
397fc74a56
Merge branch 'update-deps' into main
2020-09-16 12:35:37 -05:00
93f681bf7a
Turn off email notifications.
2020-09-16 09:24:42 -05:00
96535366c3
Running cargo fmt.
2020-09-16 08:31:30 -05:00
3fbc8b130d
Adding site checking.
2020-09-16 08:29:51 -05:00
dd93ac49a3
Merge branch 'fix/add-check-to-create-site-endpoint' of https://github.com/eiknat/lemmy into eiknat-fix/add-check-to-create-site-endpoint
2020-09-16 08:13:19 -05:00
cf4cda2434
Update deps, remove rustls, dont specify patch version
2020-09-16 14:52:20 +02:00
98c086abb9
Move websocket structs into lemmy_structs (ref #1115 )
2020-09-16 13:45:31 +02:00
eiknat
d0fefca6f9
api.site: check for existing site before creating
2020-09-15 21:59:59 -04:00
Dessalines
5c6258390c
Isomorphic docker ( #1124 )
...
* Adding a way to GetComments for a community given its name only.
* Adding getcomments to api docs.
* A first pass at locally working isomorphic integration.
* Testing out cargo-husky.
* Testing a fail hook.
* Revert "Testing a fail hook."
This reverts commit 0941cf17363f91bfb28fdd7b52fb9afd89fdc273.
* Moving server to top level, now that UI is gone.
* Running cargo fmt using old way.
* Adding nginx, fixing up docker-compose files, fixing docs.
* Trying to re-add API tests.
* Fixing prod dockerfile.
* Redoing nightly fmt
* Trying to fix private message api test.
* Adding CommunityJoin, PostJoin instead of joins from GetComments, etc.
- Fixes #1122
* Fixing fmt.
* Fixing up docs.
* Removing translations.
* Adding apps / clients to readme.
* Fixing main image.
* Using new lemmy-isomorphic-ui with better javascript disabled.
* Try to fix image uploads in federation test
* Revert "Try to fix image uploads in federation test"
This reverts commit a2ddf2a90b7ac718c3d9002986129e735f7b8c0a.
* Fix post url federation
* Adding some more tests, some still broken.
* Don't need gitattributes anymore.
* Update local federation test setup
* Fixing tests.
* Fixing travis build.
* Fixing travis build, again.
* Changing lemmy-isomorphic-ui to lemmy-ui
* Error in travis build again.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2020-09-15 15:26:47 -04:00
eiknat
b69524b498
routes.api: fix get_captcha endpoint ( #1135 )
2020-09-14 21:22:53 -04:00
nutomic
1870dc8cd9
Split lemmy_utils into multiple files ( #96 )
...
Update dependencies
Move send_local_notifs into lemmy_api_structs (ref #1115 )
Split lemmy_utils into multiple files
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/96
2020-09-14 15:29:50 +00:00
762c1347ed
Merge remote-tracking branch 'yerba/main' into main
2020-09-14 09:12:13 -05:00
dessalines
3bf86e4ca0
Merge pull request 'Remove brotli dependency' ( #97 ) from remove-brotli into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/97
2020-09-14 14:12:02 +00:00
29355c749e
Remove brotli dependency
2020-09-14 12:23:05 +02:00
eday
26816b9366
db: add utils schema/funcs for view handling qol
...
Creates a new "utils" db schema with a simple table and two functions under "utils". The functions take a 'schema' and 'table'- One will get all dependent views and save the ddl, the other will execute stored ddl skipping errors. Mostly for QOL with testing migrations and making migration files smaller
2020-09-13 22:58:13 -04:00
Marcin Wojnarowski
c239b9af83
Api docs corrections ( #1131 )
...
* corrected endpoint names/methods
* small typo fix
2020-09-13 11:20:24 -04:00
934a26f1ef
Merge remote-tracking branch 'weblate/main' into main
2020-09-12 17:48:24 -05:00
riccardo
fbc0c28f5e
Translated using Weblate (Italian)
...
Currently translated at 98.9% (281 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-09-12 02:58:32 +00:00
Rob Ede
986dc3f52c
update actix-web to v3 stable ( #1125 )
2020-09-11 21:37:25 -04:00
Lee KiWon
8660caae9b
Translated using Weblate (Korean)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
2020-09-04 16:43:00 +00:00
kleeon
1a6dc72898
Translated using Weblate (Russian)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-09-04 16:42:59 +00:00
Filip Bengtsson
87cd4712e0
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
Translated using Weblate (Swedish)
Currently translated at 98.5% (280 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-09-04 00:28:35 +00:00
kleeon
361655dd42
Translated using Weblate (Russian)
...
Currently translated at 98.9% (281 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-09-04 00:28:35 +00:00
Lucy
234411ff9a
Translated using Weblate (Irish)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ga/
2020-09-04 00:28:35 +00:00
Lee KiWon
88122e0e76
Translated using Weblate (Korean)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
Translated using Weblate (Korean)
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
2020-09-04 00:28:35 +00:00
nutomic
bd0e69b2bb
Various things refactored ( #95 )
...
Remove unused derive macros
lemmy_rate_limit doesnt depend on lemmy_api_structs anymore
Dont use "pub extern crate"
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/95
2020-09-03 19:45:12 +00:00
af364e7fe0
Version v0.7.57
2020-09-03 09:40:59 -05:00
b6eecfd39d
Merge remote-tracking branch 'weblate/main' into main
2020-09-03 09:40:57 -05:00
17df0ee6b3
Merge branch 'structs_separate' into main
2020-09-03 09:02:03 -05:00
730cb6ce67
Merge branch 'main' into structs_separate
2020-09-03 09:01:20 -05:00
Dessalines
2aaf4228ac
Local timeline ( #1111 )
...
* Adding a local filter. Fixes #1103
* Not showing local if there are no federated instances.
2020-09-03 09:58:33 -04:00
4a4629763e
Fixing user search leaking emails.
2020-09-03 08:48:26 -05:00
7101ac1b4b
Merge branch 'main' into fix_docker_caching
2020-09-03 08:06:05 -05:00
3a6982e7b2
Adding rate_limiter and api_structs.
2020-09-02 18:17:35 -05:00
88978077b5
Merge branch 'fix_docker_caching' into structs_separate
2020-09-02 16:53:46 -05:00
8015f560d6
Adding in a more reliable docker dev build. (The other wouldn't use buildkit).
2020-09-02 15:41:49 -05:00
e3140235de
Use romacs cargo-build-deps tool.
2020-09-02 10:42:48 -05:00
353e2e027a
Move api structs and rate limit into separate workspaces
2020-09-02 13:27:31 +02:00
Filip Bengtsson
b0b93ba1e6
Translated using Weblate (Swedish)
...
Currently translated at 98.5% (280 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-09-02 03:30:02 +00:00
kleeon
1d156e3854
Translated using Weblate (Russian)
...
Currently translated at 98.9% (281 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-09-02 03:30:02 +00:00
Lucy
b0af949480
Translated using Weblate (Irish)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ga/
2020-09-02 03:30:02 +00:00
Lee KiWon
09535e294a
Translated using Weblate (Korean)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
Translated using Weblate (Korean)
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
2020-09-02 03:30:01 +00:00
dfa9cb57aa
Running cargo +nightly fmt.
2020-09-01 16:44:56 -05:00
5d64dfd4dc
Remove wildcard imports (in particular super::*)
2020-09-01 15:20:22 +02:00
dc1bc741b4
Fixing docker caching.
2020-08-31 16:47:31 -05:00
34e539cdc0
Updating dev docker-compose.
2020-08-31 13:39:01 -05:00
dessalines
ad7dfb0181
Merge pull request 'Simplify docker federation setup' ( #92 ) from update-docker-federation into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/92
2020-08-31 16:50:43 +00:00
dessalines
c4dd28e252
Merge pull request 'Refactor websocket to split it into multiple files' ( #91 ) from refactor-websocket into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/91
2020-08-31 16:43:16 +00:00
147972273a
Simplify docker federation setup
2020-08-31 17:32:21 +02:00
b15c406924
Refactor websocket to split it into multiple files
2020-08-31 17:20:13 +02:00
nutomic
d4dccd17ae
implement ActivitySender actor ( #89 )
...
Merge pull request 'Adding unique ap_ids. Fixes #1100 ' (#90 ) from unique_ap_ids into activity-sender
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/90
Adding back in on_conflict.
Trying to add back in the on_conflict_do_nothing.
Trying to reduce delay time.
Removing createFakes.
Removing some unit tests.
Adding comment jest timeout.
Fixing tests again.
Fixing tests again.
Merge branch 'activity-sender' into unique_ap_ids_2
Replace actix client with reqwest to speed up federation tests
Trying to fix tests again.
Fixing unit tests.
Fixing some broken unit tests, not done yet.
Adding uniques.
Adding unique ap_ids. Fixes #1100
use proper sql functionality for upsert
added logging
in fetcher, replace post/comment::create with upsert
no need to do an actual update in post/comment::upsert
Merge branch 'main' into activity-sender
implement upsert for user/community
reuse http client
got it working
attempt to use background-jobs crate
rewrite with proper error handling and less boilerplate
remove do_send, dont return errors from activity_sender
WIP: implement ActivitySender actor
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/89
2020-08-31 13:48:02 +00:00
18002bc837
Version v0.7.56
2020-08-29 17:21:40 -04:00
8184c8021a
Merge remote-tracking branch 'weblate/main' into main
2020-08-29 17:21:39 -04:00
d0ad8022d9
Merge branch 'kartikynwa-webmanifest' into test
2020-08-29 17:00:56 -04:00
e8600447ed
Merge branch 'webmanifest' of https://github.com/kartikynwa/lemmy into kartikynwa-webmanifest
2020-08-29 17:00:43 -04:00
f587008d61
Merge branch 'add-service-worker' of https://github.com/eiknat/lemmy into eiknat-add-service-worker
2020-08-29 09:36:58 -05:00
b762760e96
Updating korean translation.
2020-08-29 09:29:49 -05:00
Mostafa Ahangarha
36e4ab00da
Translated using Weblate (Persian)
...
Currently translated at 54.9% (156 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fa/
2020-08-29 08:42:08 +00:00
Lee KiWon
1ef3591e17
Translated using Weblate (Korean)
...
Currently translated at 100.0% (284 of 284 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ko/
2020-08-29 08:42:08 +00:00
eiknat
bebdc851c9
Add service worker
2020-08-28 23:47:15 -04:00
Joshua Thomas
0f8372c0fb
Bugfix: Adds case-insensitive SELECT queries to User_::find_by_username() ( #1108 )
2020-08-28 20:49:31 -04:00
4819bd5608
Version v0.7.55
2020-08-27 10:38:29 -04:00
Sergio Varela
5e78479371
Translated using Weblate (Spanish)
...
Currently translated at 98.4% (262 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
Translated using Weblate (Spanish)
Currently translated at 96.2% (256 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-08-27 14:36:45 +00:00
Panos Alevropoulos
d3a00014c9
Translated using Weblate (Greek)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
2020-08-27 14:36:45 +00:00
3f0b3d7361
Adding korean language template.
2020-08-27 10:34:53 -04:00
Dessalines
2d5a50e80f
Fixing broken websocket sends. Removing WebSocketInfo ( #1098 )
2020-08-24 11:58:24 +00:00
Dessalines
2080534744
Switch front end to use lemmy-js-client. Fixes #1090 ( #1097 )
...
* Switch front end to use lemmy-js-client. Fixes #1090
* Adding an HTTP client. Cleaning up Websocket client.
2020-08-20 10:50:26 -04:00
Dessalines
dbf231865d
Adding a few more apub tests. ( #1096 )
...
* Adding a few more apub tests.
* Fixing travis build, adding a get_post function.
2020-08-20 12:44:22 +00:00
e007006daf
Version v0.7.54
2020-08-18 09:43:45 -04:00
nutomic
14f2d190e5
Implement context ( #86 )
...
Implement context
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/86
2020-08-18 13:43:50 +00:00
53d449d5d7
Merge branch 'fix-federation-enabled-option' into main
2020-08-18 09:35:27 -04:00
fd2291c004
Dont send out any activities if federation is disabled ( fixes #1095 )
2020-08-18 15:12:03 +02:00
82faea7f85
Version v0.7.53
2020-08-17 16:53:50 -04:00
ae39ddf031
Fixing some formatting.
2020-08-17 16:52:01 -04:00
3301e0ba50
Merge remote-tracking branch 'yerba/main' into main
2020-08-17 16:50:21 -04:00
nutomic
ed72b096b9
Remove tests for unimplemented Crud::delete functions ( #87 )
...
Remove tests for unimplemented Crud::delete functions
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/87
2020-08-17 20:50:44 +00:00
Dessalines
c323ab5275
Added option to remove banned user data (posts, comments, communities) ( #1093 )
...
- Works for both a site-ban, and a community ban.
- Fixes #557
2020-08-17 18:12:36 +00:00
725e46da4a
Version v0.7.52
2020-08-16 11:31:09 -04:00
abadc79756
Fix community_view clippy
2020-08-16 11:27:50 -04:00
Dessalines
0a27432b65
Encode crosspost url. Fixes #1083 ( #1088 )
2020-08-16 11:05:45 -04:00
Dessalines
adeba99d38
Allow mods that aren't creators to leave the mod team. Fixes #786 ( #1091 )
2020-08-16 11:05:32 -04:00
Dessalines
7f97279c48
Fixing community search. Fixes #1084 ( #1089 )
2020-08-16 11:05:21 -04:00
dd0418af18
Version v0.7.50
2020-08-14 16:00:27 -04:00
995e56677a
Merge remote-tracking branch 'weblate/main' into main
2020-08-14 16:00:26 -04:00
2a3b475b99
Fix crash in federation tests
2020-08-14 16:50:21 +02:00
6b4eb79237
Merge remote-tracking branch 'yerba/main' into main
2020-08-13 16:26:28 -04:00
nutomic
164a9c29fe
Implement instance blocklist ( #85 )
...
Implement instance blocklist
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/85
2020-08-13 20:26:49 +00:00
Txopi
f566af0c45
Translated using Weblate (Basque)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-08-13 16:08:10 +00:00
Dessalines
8c7c1f204c
Add a fix for double posts / comments. #1080 ( #1081 )
...
* Add a fix for double posts / comments. #1080
* Adding a comment.
* Moving upserts to lemmy_db.
2020-08-13 15:48:10 +00:00
Dessalines
1711eb98b4
Removing some unecessary unwrap. Fixes #639 ( #1078 )
...
* Removing some unecessary unwrap. Fixes #639
* Changing some location_infos.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2020-08-13 15:46:31 +00:00
Dessalines
91926b2b1c
New post notifs. Fixes #1073 ( #1079 )
...
* New post notifs. Fixes #1073
* Some refactoring of browser notifs
2020-08-13 10:42:52 -04:00
nutomic
9a343cfe8b
Limit number of items read from community outbox ( #84 )
...
Limit number of items read from community outbox
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/84
2020-08-13 13:20:35 +00:00
4981eb38fb
Merge pull request #1075 from LemmyNet/fix_online_counts
...
Fixing online counts. Fixes #664
2020-08-13 11:41:45 +00:00
c19dfdae64
Fix formatting.
2020-08-12 10:45:04 -04:00
nutomic
a496d8af65
Implement undo<dislike> for activitypub ( #83 )
...
Merge branch 'main' into undo-dislike
Implement undo<dislike> for activitypub
Fix some TODOs in activitypub code
Add post_read back in, do some cleanup
Add some delete functions back in
Merge branch 'main' into remove-dead-code
Replace body of unused db functions with unimplemented!()
Remove dead code
Remove remaining usages of unwrap() from activitypub code
Remove most usage of Option::unwrap() from activitypub code
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/83
2020-08-12 14:43:45 +00:00
bb4da4da02
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-08-12 08:35:02 -04:00
8ee6f852cb
Some formatting of post.rs
2020-08-12 08:31:05 -04:00
nutomic
aace1bd71e
Remove dead code ( #81 )
...
Add post_read back in, do some cleanup
Add some delete functions back in
Merge branch 'main' into remove-dead-code
Replace body of unused db functions with unimplemented!()
Remove dead code
Remove remaining usages of unwrap() from activitypub code
Remove most usage of Option::unwrap() from activitypub code
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/81
2020-08-12 12:30:52 +00:00
Dessalines
8daeba450c
Removing unnecessary oper struct. Fixes #660 ( #1077 )
2020-08-12 11:31:45 +00:00
Dessalines
d28e5245d2
Don't allow preferred usernames to start with @. Fixes #1058 ( #1076 )
...
* Don't allow preferred usernames to start with @. Fixes #1058
* Trim the preferred username.
2020-08-12 11:13:44 +00:00
1c3ed864e7
Fixing online counts. Fixes #664
2020-08-11 17:46:58 -04:00
49892690ff
Version v0.7.49
2020-08-11 10:58:40 -04:00
Dessalines
bc523abd62
Add a simple linked instances page. Fixes #1070 ( #1071 )
...
* Add a simple linked instances page. Fixes #1070
* Changing allowed_instances to federated_instances.
2020-08-11 10:58:32 -04:00
nutomic
3da47352be
Remove usage of Option::unwrap() in activitypub code ( #80 )
...
Remove remaining usages of unwrap() from activitypub code
Remove most usage of Option::unwrap() from activitypub code
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/80
2020-08-11 14:31:05 +00:00
c1f48d6a0e
In federation test setup, run yarn build by default
2020-08-11 14:12:05 +02:00
95cd37827d
Updating sponsor list.
2020-08-10 20:09:30 -04:00
dessalines
780e7f9497
Merge pull request 'Disable rate limiting for pictrs' ( #79 ) from pictrs-disable-rate-limiting into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/79
2020-08-10 15:46:58 +00:00
0acd0bba3a
Version v0.7.48
2020-08-10 11:41:18 -04:00
51b410ce01
Disable rate limiting for pictrs
2020-08-10 14:19:53 +02:00
ernestwisniewski
7bc560b2ec
Community post count fix ( #1062 )
...
* User details ui fix
* User details ui fix
* Lang bio, merge
* Community count posts bug #1060
2020-08-09 14:50:27 -04:00
221db1bd1b
Add email overwrite on user settings save. Fixes #1069
...
- Also add get_user_secure to other locations.
2020-08-08 22:36:29 -04:00
52ac4f70e1
Merge branch 'feature/add-user-secure' of https://github.com/eiknat/lemmy into eiknat-feature/add-user-secure
2020-08-08 21:40:47 -04:00
5e9ffde0b1
Version v0.7.47
2020-08-07 23:22:35 -04:00
410edc1df3
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-08-07 23:21:30 -04:00
71a0dd4cc9
Version v0.7.46
2020-08-07 23:21:05 -04:00
9c6673495f
Merge branch 'front_end_prettying' into main
2020-08-07 23:20:02 -04:00
992b3ca95b
Some UI fixes.
2020-08-07 23:17:37 -04:00
eiknat
492e8ad655
user_view: add fn to return sanitized fields
2020-08-07 22:43:33 -04:00
Dessalines
1d8183fe5f
Remove options for appoint as admin / mod, and transfer site for ( #1065 )
...
non-federated users. #647
2020-08-07 13:50:07 -04:00
ddefc06fbc
Version v0.7.44
2020-08-07 13:23:35 -04:00
84c700eecb
Merge remote-tracking branch 'weblate/main' into main
2020-08-07 13:23:34 -04:00
9c3776d034
Removing community and user favicon setting.
2020-08-07 13:22:03 -04:00
Dessalines
ded7650a60
Merge pull request #1064 from LemmyNet/apub_security_checks
...
Apub security checks
2020-08-07 11:33:58 -04:00
4896e7d096
Adding tests for admin remove for posts and comments on different
...
instances.
2020-08-07 10:51:53 -04:00
cabbbf0afd
Merge branch 'federation-authorisation' into apub_security_checks
2020-08-07 10:30:57 -04:00
0cc49e6ca9
Merge branch 'main' into federation-authorisation
2020-08-07 15:19:08 +02:00
9b7be1afb6
Some apub fixes
2020-08-07 15:18:06 +02:00
Serge Tarkovski
3cd8ded9d7
Translated using Weblate (Russian)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-08-07 01:45:59 +00:00
ce8622b9cd
Version v0.7.43
2020-08-06 21:22:15 -04:00
2aa6879a44
Merge branch 'front_end_prettying' into main
2020-08-06 21:19:39 -04:00
ad77c3d2d5
Fixed mobile expanding.
2020-08-06 21:19:09 -04:00
3e5d5abd53
Version v0.7.42
2020-08-06 17:37:08 -04:00
c5443b6e82
A better mobile view, upgrading darkly theme.
2020-08-06 17:34:45 -04:00
313f315896
Various adjustments after review
2020-08-06 21:44:47 +02:00
7bb546c7c2
Start adding apub security checks.
2020-08-06 14:30:01 -04:00
cc2c7db9fe
Add security checks and slur checks for activitypub inbox
2020-08-06 15:01:42 +02:00
6fa9dc599c
Remove double display name.
2020-08-05 17:24:53 -04:00
e645386842
Version v0.7.41
2020-08-05 13:55:14 -04:00
048271f59b
Remove allowed thumbnail sizes for now.
2020-08-05 13:53:59 -04:00
88bd368660
Version v0.7.40
2020-08-05 12:41:40 -04:00
0e3f03836a
Merge remote-tracking branch 'weblate/main' into main
2020-08-05 12:41:39 -04:00
335ebadbf8
Adding release notes.
2020-08-05 12:39:47 -04:00
Dessalines
464ea862b1
Preferred usernames, banners and icons. ( #1055 )
...
* Re-organizing federation tests. #746 #1040
* Adding federation support for user bios. Fixes #992
* Adding icons, banners, and preferred usernames.
- Added optional community icons, and community banners.
- Added user banners.
- Added Site icon and banner, with custom favicon.
- Set up preferred usernames. Fixes #1017
- Added an additional post sort: Active
- Hot rank now uses the published time.
- Active uses the most recent comment time, and is default.
- DB Migration was required to add all these fields to the views.
- Added transfercommunity helper function.
- Removed title column from communities page.
- Abstracted an image-upload-form.tsx, and a banner-icon-header.tsx
- Fixes #899
* Some navbar fixes.
* Fixing css
* Some fixes.
- Showing correct user icon and banner after save without page reload.
- Abstracting diesel update overwrite.
- Adding some docs.
* Adding @ when a user doesn't have a preferred username.
2020-08-05 12:03:46 -04:00
nutomic
c34fffc2c4
Proxy pictrs requests through Lemmy ( fixes #371 ) ( #77 )
...
fix check_only value for image rate limit
Fix image rate limit
Add rate limit for image uploads
Proxy pictrs requests through Lemmy (fixes #371 )
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/77
2020-08-05 16:00:00 +00:00
81d4922740
Instance shouldnt send Announce activities to itself
2020-08-05 17:41:35 +02:00
riccardo
4fcbc3749c
Translated using Weblate (Italian)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
Translated using Weblate (Italian)
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
Translated using Weblate (Italian)
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-08-05 14:12:53 +00:00
233aa34d54
Verify ID of received apub objects against domain allowlist etc
2020-08-05 14:18:08 +02:00
37b438a77f
Adding pointer unselectable to display names.
2020-08-04 17:35:57 -04:00
alisapa
1de22f0f10
Clarify community creation form ( #1056 )
...
* Clarify community creation form
* Did requested changes
* Removed div, corrected translation file
* Delete en.ts
2020-08-04 17:35:48 -04:00
Dessalines
e9e1497830
Add bio federation. ( #1052 )
...
* Re-organizing federation tests. #746 #1040
* Adding federation support for user bios. Fixes #992
2020-08-04 11:06:27 -04:00
6f05d28c56
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-08-04 10:57:41 -04:00
Dessalines
e336e5bcc0
Re-organizing federation tests. #746 #1040 ( #1047 )
...
* Re-organizing federation tests. #746 #1040
* Add more checks in inbox, plus some refactoring (#76 )
Merge branch 'main' into more-inbox-permissions
Move check_community_ban() into helper function
Move slur check into helper functions
Move Claims::decode and site ban check into helper function
Note: this changes behaviour in that site ban is checked in more
places now. we could easily add a boolean parameter
check_for_site_ban to get the previous behaviour back
Rewrite user_inbox and community_inbox in the same way as shared_inbox
Add check against instance allowlist etc in shared_inbox
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/76
* Adding verbose to test results.
Co-authored-by: nutomic <nutomic@noreply.yerbamate.dev>
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2020-08-04 10:57:37 -04:00
bdb95db5be
Merge remote-tracking branch 'yerba/main' into main
2020-08-04 10:39:48 -04:00
nutomic
76cd6ac6bc
Add more checks in inbox, plus some refactoring ( #76 )
...
Merge branch 'main' into more-inbox-permissions
Move check_community_ban() into helper function
Move slur check into helper functions
Move Claims::decode and site ban check into helper function
Note: this changes behaviour in that site ban is checked in more
places now. we could easily add a boolean parameter
check_for_site_ban to get the previous behaviour back
Rewrite user_inbox and community_inbox in the same way as shared_inbox
Add check against instance allowlist etc in shared_inbox
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/76
2020-08-04 14:39:55 +00:00
Dessalines
97d2584a3b
Update deps ( #1049 )
2020-08-03 10:38:36 +00:00
ce874e183b
Version v0.7.39
2020-08-02 10:52:42 -04:00
089aefc7af
Hide navigation warnings on markdown textarea for site-form and user bios. Fixes #1051
2020-08-02 10:41:17 -04:00
fbd9adb135
Fix user settings sort not working. Fixes #1050
2020-08-02 10:33:14 -04:00
5b23595710
Version v0.7.38
2020-08-01 23:53:32 -04:00
c76e72b747
Fixing an issue with comments clearing out forms. Fixes #1045
2020-08-01 23:52:38 -04:00
dee5c302a8
Version v0.7.37
2020-08-01 20:04:14 -04:00
942e75fa28
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-08-01 20:03:46 -04:00
ad44b7da9c
Fix user bio bug.
2020-08-01 20:03:29 -04:00
alltheseteeth
4acd3c5bd2
added trailing slash fix to every nginx conf I could find ( #1046 )
2020-08-01 19:33:39 -04:00
1a0f70450c
Version v0.7.36
2020-08-01 19:17:53 -04:00
701abfa548
Merge remote-tracking branch 'weblate/main' into main
2020-08-01 19:17:52 -04:00
7938e8f5c8
Some front end fixes.
2020-08-01 19:14:54 -04:00
0fccb22cd7
Merge branch 'main' into front_end_prettying
2020-08-01 18:05:30 -04:00
e4d5614f3f
Merge remote-tracking branch 'github/main' into main
2020-08-01 17:42:33 +02:00
dessalines
f190b272b9
Merge pull request 'Update activitystreams to 0.7.0-alpha.3 (from crates.io)' ( #75 ) from update-activitystreams into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/75
2020-08-01 15:30:04 +00:00
andor0
b6411aba7a
Migrate from failure to anyhow and thiserror ( #1042 )
...
* Migrate from failure to anyhow and thiserror
* Replace 'format_err!' to 'anyhow!'
2020-08-01 14:04:42 +00:00
9a004c4535
Update activitystreams to 0.7.0-alpha.3 (from crates.io)
2020-08-01 15:25:17 +02:00
78603e7e31
Update inferno-i18next.
2020-07-31 11:59:46 -04:00
Azriel Lector
1acb51105a
Add user bios ( #1043 )
...
* Add user bios
* Version v0.7.35
* Add domain name change instructions to docs. (#1044 )
* Add domain name change instructions to docs.
* Changing docker execs to docker-compose execs
* Set maxLength to user bio and render as md
* Fix bio updating after SaveUserSetting
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2020-07-30 21:08:13 -04:00
Monday Tuesday
1e75e6591a
Translated using Weblate (German)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/de/
Translated using Weblate (Polish)
Currently translated at 92.1% (245 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pl/
2020-07-30 21:37:32 +00:00
90ae426e24
Some small fixes.
2020-07-30 14:25:01 -04:00
Dessalines
e31f74c3ad
Add domain name change instructions to docs. ( #1044 )
...
* Add domain name change instructions to docs.
* Changing docker execs to docker-compose execs
2020-07-30 15:51:28 +00:00
dc4ac6345c
Version v0.7.35
2020-07-29 22:36:27 -04:00
f0ce7b0e0f
Merge remote-tracking branch 'yerba/main' into main
2020-07-29 22:35:50 -04:00
c24a619594
Minor syntax fix.
2020-07-29 22:35:08 -04:00
25e61b276a
Version v0.7.34
2020-07-29 22:30:38 -04:00
58b2dff0cd
Merge remote-tracking branch 'weblate/main' into main
2020-07-29 22:30:37 -04:00
d14bc121c0
Fixing language setting issue. Fixes #1041
2020-07-29 22:29:41 -04:00
Monday Tuesday
9ddc6659ec
Translated using Weblate (Polish)
...
Currently translated at 92.1% (245 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pl/
2020-07-29 22:06:21 +00:00
Lucy
d2074cb669
Translated using Weblate (Irish)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ga/
2020-07-29 22:06:20 +00:00
nutomic
6d8e1a7ab5
Merge pull request 'Add community outbox' ( #74 ) from community-outbox into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/74
2020-07-29 20:51:54 +00:00
678e1fa927
Add community outbox (ref #1018 )
2020-07-29 22:49:52 +02:00
705e74f4b9
Federate sticky flag (ref #1018 )
2020-07-29 19:15:30 +02:00
nutomic
f5211aab2a
Merge pull request 'Refactor inbox, simplify and split into multiple files' ( #72 ) from inbox-refactoring into main
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/72
2020-07-29 17:13:13 +00:00
cee72065e9
Merge branch 'main' into inbox-refactoring
2020-07-29 15:41:05 +02:00
04cb1e0161
Version v0.7.33
2020-07-29 09:06:26 -04:00
35e6aa0d94
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-29 09:06:04 -04:00
19db9dea30
Fix an issue with user language setting.
2020-07-29 09:05:46 -04:00
Dessalines
49bd28e2d4
Adding visual captchas for register and login. ( #1027 )
...
* Adding visual captchas for register and login.
* Adding audio wav file for Captcha using espeak.
* Lots of captcha fixes.
- Removed login captchas.
- Added settings to disable captchas, and change difficulty.
- Captchas can only be checked / used once, front end gives a new one on
failure.
- Added front end button for regenerating captcha.
- Added a disabled / pause button audio playing.
* Some more fixes.
2020-07-29 09:02:46 -04:00
8ad4378960
Disable ID domain check in FromApub until we figure it out properly
2020-07-29 13:58:39 +02:00
a85873d294
Take correct community uri in shared_inbox, rename fetch_remote* methods
2020-07-29 13:46:11 +02:00
5dd0efb280
Version v0.7.32
2020-07-29 00:29:56 -04:00
2d00b1d0fb
Using full community title as document.title
2020-07-29 00:29:19 -04:00
ff7e0c72f9
Merge branch 'Axighi-master' into front_end_prettying
2020-07-29 00:24:49 -04:00
ae78b3473f
Some more prettifying, cleaning up community and main.tsx
2020-07-29 00:23:24 -04:00
Azriel Lector
75fe38ab08
Remove /u/
and /c/
schemes from UI
2020-07-29 11:16:27 +08:00
52b221e3c9
Version v0.7.31
2020-07-28 21:20:19 -04:00
abeefc95bb
Merge remote-tracking branch 'weblate/main' into main
2020-07-28 21:20:17 -04:00
b2d2553305
Adding a unit test for a federated comment like.
2020-07-28 19:37:19 -04:00
ced3cbde73
Merge branch 'main' into inbox-refactoring-dessalines
2020-07-28 18:55:50 -04:00
ceb18b528a
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-28 18:18:33 -04:00
28faf170e9
Adding a sponsor.
2020-07-28 18:06:10 -04:00
494fcfdb8f
Add helper function to generate proper activity IDs
2020-07-28 19:23:16 +02:00
Lucy
1982fd630d
Translated using Weblate (Irish)
...
Currently translated at 99.2% (264 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ga/
Translated using Weblate (Irish)
Currently translated at 62.4% (166 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ga/
2020-07-28 17:04:21 +00:00
Ron
cafa164f60
Translated using Weblate (Russian)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-07-28 17:04:21 +00:00
Serge Tarkovski
4915c31b03
Translated using Weblate (Russian)
...
Currently translated at 99.6% (265 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-07-28 17:04:21 +00:00
Dessalines
8d1ec88195
Enforce rustfmt +nightly for consistent rust imports. ( #1035 )
2020-07-28 12:42:14 -04:00
be2d9f0427
Merge pull request #1033 from LemmyNet/post_thumbnail_url_fixes
...
Fix post thumbnail_url to use full urls. Fixes #632
2020-07-28 18:22:24 +02:00
e605d58888
Merge branch 'main' into inbox-refactoring-merge
2020-07-28 12:08:28 -04:00
1ed63e99d9
Fix post thumbnail_url to use full urls. Fixes #632
2020-07-28 11:42:40 -04:00
1ed7c59491
Refactor inbox, simplify and split into multiple files
2020-07-28 14:41:15 +02:00
ernestwisniewski
aaa4361158
User details ui fix ( #1032 )
...
* User details ui fix
* User details ui fix
2020-07-27 20:05:29 -04:00
Dessalines
5ada39f39c
Admin-settings page fix. ( #1031 )
2020-07-27 11:54:59 -04:00
Dessalines
6e4599411b
Adding inferno-helmet to fix page titles. Fixes #1028 ( #1030 )
2020-07-27 11:54:42 -04:00
Dessalines
80943a65e6
Upgrade front deps. ( #1029 )
...
* Adding a sponsor.
* Upgrade some front end deps.
2020-07-27 11:42:31 -04:00
Dessalines
c066915b8e
Federate sticky flag dessalines ( #1021 )
...
* Federate sticky flag (ref #1018 )
* Adding tests for federated sticky and lock.
* Changing test to make sure it returns the correct locked error.
Co-authored-by: Felix Ableitner <me@nutomic.com>
2020-07-27 11:42:15 -04:00
Dessalines
d1342afe93
Remove extra jwt claims (for user settings) ( #1025 )
...
* Remove extra jwt claims (for user settings)
- The JWT token only contains the issuer, and your user id now.
- Now only a page refresh is necessary to pick up your settings on all
clients, including theme, language, etc.
- GetSiteResponse now gives you your user and settings if logged in.
- Fixes #773
* Remove extra comment line, I tested nsfw
* Adding a todo to add a User_::readSafe()
2020-07-27 09:23:08 -04:00
571d0a6500
Adding a sponsor.
2020-07-26 17:46:27 -04:00
617d636432
Version v0.7.30
2020-07-25 10:43:42 -04:00
978a86cdaa
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-25 10:43:11 -04:00
eb6df560d8
Only deploy on tags.
2020-07-25 10:41:55 -04:00
Dessalines
c335069310
Add Apps / Clients section to readme. ( #1019 )
...
* Add Apps / Clients section to readme.
* Separating apps and libraries.
2020-07-25 11:29:24 +00:00
0ff9af5ba5
Version v0.7.29
2020-07-24 22:06:16 -04:00
cd01c7ebd7
Merge remote-tracking branch 'weblate/main' into main
2020-07-24 22:06:14 -04:00
Dessalines
edb2e40383
Automated travis docker testing and deploys. ( #1023 )
...
* Testing out a travis 1.
* Testing out a travis 2.
* Testing out a travis 3.
* Testing out a travis 4.
* Testing out a travis 5.
* Testing out a travis 6. Trying a failing test
* Testing out a travis 7. Trying to cache the docker images.
* Testing out a travis 8. Still not correctly failing.
* Trying full path for docker_images dir.
* Fixing test again, trying a dockerhub deploy.
* Fixing test again, trying a dockerhub deploy 2.
* Remove caching.
* Trying to fix docker deploy.
* Try using the travis tag
* Using dessalines/lemmy:travis
* Try using the prod dockerfile now.
* Update http sigs dependency
* Finally getting this mostly working.
Co-authored-by: asonix <asonix@asonix.dog>
2020-07-24 22:06:00 -04:00
ceaa485f06
Update http sigs dependency ( #1022 )
2020-07-24 19:57:13 -04:00
Filip Bengtsson
70aa9531ef
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-24 22:11:34 +00:00
Txopi
394c8e8037
Translated using Weblate (Basque)
...
Currently translated at 100.0% (266 of 266 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-07-24 22:11:34 +00:00
255068f52d
Merge remote-tracking branch 'weblate/main' into main
2020-07-23 23:38:12 -04:00
Ron
d8005f455c
Translated using Weblate (Russian)
...
Currently translated at 99.2% (253 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-07-24 01:21:50 +00:00
036c76798b
Adding to sponsors list.
2020-07-23 14:40:05 -04:00
edfd10262f
Version v0.7.28
2020-07-23 09:48:39 -04:00
afea72133a
Merge remote-tracking branch 'weblate/main' into main
2020-07-23 09:48:05 -04:00
76fec39670
Adding a lot of front end prettying.
...
- Re-did litely theme.
- Increased spacing.
- Fixed up navbar to not full width.
- Made login/sign up stand out.
- Made thumbnails have a light background.
- Removed btn-sm, made almost all buttons bigger.
- Made all badges lighter.
- Made card backgrounds transparent.
- Fixes #888
2020-07-23 02:10:22 -04:00
Dessalines
01cc8654e2
Fixing config_file env to use defaults instead (since its required). ( #970 )
...
* Fixing config_file env to use defaults instead (since its required). Fixes #764
* Changing the read / write to the custom config file one
* Adding a config note.
2020-07-22 20:17:41 -04:00
Ron
f5f7325ce3
Translated using Weblate (Russian)
...
Currently translated at 98.8% (252 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-07-22 23:15:38 +00:00
Ady Nemo
a49172877d
Translated using Weblate (French)
...
Currently translated at 99.6% (254 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-07-22 23:15:38 +00:00
Ruan Bahia
db02e2b29d
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pt_BR/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.8% (252 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pt_BR/
2020-07-22 23:15:38 +00:00
riccardo
b364f4a1be
Translated using Weblate (Italian)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-07-22 23:15:38 +00:00
227f397d5e
Merge pull request #997 from LemmyNet/api_edit_separation
...
Api edit separation.
2020-07-22 22:33:39 +02:00
59da2976ab
Some more API cleanup.
...
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
2020-07-22 14:20:08 -04:00
b6a6d52a92
Merge branch 'main' into api_edit_separation
2020-07-22 13:47:52 -04:00
db0d213710
Version v0.7.26
2020-07-22 09:56:15 -04:00
5d0e7663b8
Merge remote-tracking branch 'weblate/main' into main
2020-07-22 09:56:14 -04:00
3f00140f5d
Use activitystreams from yerbamate.dev mirror ( fixes #1012 )
2020-07-22 00:07:09 +02:00
5e5063cbdd
Adding some helper functions.
2020-07-21 13:52:57 -04:00
bbcb782b33
Remove proxy_cache from nginx config
2020-07-21 18:10:53 +02:00
f81a7ad9ab
Adding form_id to comment creates and edits.
...
- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
and know which comment they submitted, is the one they're getting
back.
- This gets rid of all the weird complicated logic in handleFinished(),
and should stop the comment forms getting cleared once and for all.
2020-07-21 10:56:41 -04:00
4b6a762a56
Added an is_mod_or_admin function to Community
2020-07-21 10:15:17 -04:00
Dessalines
55ce7b1339
Adding version to GetSite. Fixes #1001 ( #1002 )
...
* Adding version to GetSite. Fixes #1001
* Removing version.ts file
2020-07-21 13:20:23 +00:00
Ady Nemo
cac4abbe1b
Translated using Weblate (French)
...
Currently translated at 99.6% (254 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-07-21 10:51:22 +00:00
Ruan Bahia
44897067ea
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 98.8% (252 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pt_BR/
2020-07-21 10:51:22 +00:00
riccardo
981efde3ff
Translated using Weblate (Italian)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-07-21 10:51:22 +00:00
Filip Bengtsson
30a2a6662f
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-21 10:51:22 +00:00
f93f2fe03c
Changing location of sub and superscript buttons.
2020-07-20 23:58:58 -04:00
662efbcb68
Merge branch 'main' of https://github.com/commagray/lemmy into commagray-main
2020-07-20 23:51:44 -04:00
2eac037408
Adding post delete, remove, lock, and sticky.
2020-07-20 23:46:36 -04:00
fd96dfdb5e
Added comment delete, remove, read.
2020-07-20 21:37:44 -04:00
Coma Grayce
020cb77613
Add buttons.
2020-07-21 02:40:01 +03:00
Coma Grayce
cbed6547e2
Again, ooops.
2020-07-21 01:19:11 +03:00
Coma Grayce
cd0f1a8eb2
Ooops.
2020-07-21 01:08:59 +03:00
Coma Grayce
6fbfb69ee4
Add sub and sup Markdown tags.
2020-07-21 01:06:22 +03:00
ca7d2feedb
Some GetUserDetails cleanup.
2020-07-20 15:32:15 -04:00
613b462662
Merge branch 'main' into api_edit_separation
2020-07-20 14:41:20 -04:00
ef35971dfb
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-20 14:41:12 -04:00
9bc6698f58
Added community delete and remove.
2020-07-20 13:37:39 -04:00
d2f015d5d0
Merge pull request #994 from LemmyNet/community_user_actor_id_dupes
...
Community user actor id dupes
2020-07-20 17:37:46 +02:00
a67f46bec5
EditUserMention changed to MarkUserMentionAsRead.
2020-07-20 10:56:40 -04:00
jcfrancisco
1a421e96d7
📝 Add macOS-specific instructions for local development. ( #996 )
...
* 📝 Add macOS-specific instructions for local development.
* 📝 Remove extra 'git' package installation instruction
2020-07-20 10:03:15 -04:00
52810aa626
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-20 10:02:58 -04:00
0a28ffb9c4
Private message delete and read extracted.
2020-07-20 00:29:44 -04:00
dca38d10eb
Merge branch 'community_user_actor_id_dupes' into api_edit_separation
2020-07-19 17:03:27 -04:00
8940ce7dbb
Merge remote-tracking branch 'weblate/main' into main
2020-07-19 16:43:21 -04:00
2ff7acf207
Moving dupe checking to before new actor_id generation.
2020-07-19 13:32:50 -04:00
87202b4915
Fixing duplicate actor_id for community and user. Fixes #957
2020-07-19 13:12:42 -04:00
b03a2d7995
Ran cargo fmt.
2020-07-19 12:26:23 -04:00
f0a223f337
Choices.destroy isnt working properly.
2020-07-18 19:36:45 -04:00
Filip Bengtsson
d23a596c3d
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-18 06:16:27 +00:00
3342a6a910
Version v0.7.25
2020-07-17 18:54:34 -04:00
598e23622e
Merge remote-tracking branch 'weblate/main' into main
2020-07-17 18:54:33 -04:00
eiknat
03758a4f92
validate post URLs on the backend ( #990 )
...
* added serverside url validation
* api.post: use if let instead of is_some
also add "invalid_url" to en.json
Co-authored-by: John Doe <dhas8m@protonmail.com>
2020-07-17 18:46:59 -04:00
nutomic
77a2a5eb01
Update activitystreams library to latest version ( #71 )
...
Merge branch 'main' into more-upgrade-apub-3
Update activitystreams library to latest version
Remove remaining usages of old activitystreams library
Migrate community inbox and user inbox
Migrate private message
Migrate post
Migrate community activities
Migrate extensions to new activitystreams library
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/71
2020-07-17 21:11:07 +00:00
Filip Bengtsson
845482a623
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-17 20:31:57 +00:00
Ady Nemo
57db25e4a6
Translated using Weblate (French)
...
Currently translated at 99.2% (253 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-07-17 20:31:57 +00:00
Tirifto
8f781c4757
Translated using Weblate (Esperanto)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
Translated using Weblate (Esperanto)
Currently translated at 99.6% (254 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
2020-07-17 20:31:57 +00:00
09f892a7fa
Adding to sponsors list.
2020-07-17 15:27:06 -04:00
Dessalines
3b6b2c274d
Better user page loading indicators. Fixes #986 ( #989 )
2020-07-17 15:25:59 -04:00
Dessalines
7fdd41697e
Un-expand image when receiving new post. Fixes #979 ( #988 )
2020-07-17 15:25:52 -04:00
aaa850c6c9
Better user page loading indicators. Fixes #986
2020-07-17 11:48:06 -04:00
2a206e1b4d
Version v0.7.24
2020-07-16 21:17:34 -04:00
c4d54fc427
Updating deploy to use weblate/main
2020-07-16 21:16:32 -04:00
a9b180bf6f
Merge remote-tracking branch 'weblate/main' into main
2020-07-16 21:15:51 -04:00
a9de6b6d00
Merge branch 'main' of https://github.com/lemmynet/lemmy into main
2020-07-16 21:15:43 -04:00
1e30fcf235
Version v0.7.23
2020-07-16 21:13:18 -04:00
Dessalines
56741fcea5
Adding markdown buttons. Fixes #977 ( #984 )
2020-07-16 21:12:51 -04:00
Filip Bengtsson
3030d24f74
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (255 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-16 21:11:40 +00:00
Tirifto
f2508753b1
Translated using Weblate (Esperanto)
...
Currently translated at 99.6% (254 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
2020-07-16 21:11:39 +00:00
Jon Snow
5222f0a8a7
Translated using Weblate (Russian)
...
Currently translated at 98.0% (250 of 255 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
2020-07-16 21:11:39 +00:00
2d4c41d2be
Convert comments to new apub lib (including comment activities)
2020-07-15 18:26:37 +02:00
ef8118f40f
migrate post to new apub lib
2020-07-15 18:03:09 +02:00
f69f044aaa
Version v0.7.22
2020-07-15 10:16:31 -04:00
Dessalines
9f36fd50b4
GetSite fixes. Fixes #975 ( #978 )
2020-07-15 10:00:55 -04:00
Dessalines
fc15276c10
Don't allow duplicate community names in API. #957 ( #974 )
2020-07-15 09:55:38 -04:00
Rynach
e440357bec
Update Finnish translation ( #976 )
...
Added several new lines to the translation file. In several existing lines I made the wording less janky.
2020-07-15 09:54:47 -04:00
Dessalines
78cb306c07
Don't allow community name editing. Fixes #964 ( #973 )
2020-07-15 09:53:52 -04:00
e04d014a3a
Merge pull request #972 from LemmyNet/master_to_main
...
Changing references from master to main. #820
2020-07-15 00:44:31 +02:00
2f5e191b2d
Changing references from master to main. #820
2020-07-14 13:30:36 -04:00
2c0928efe0
Change styling on comment-form no login-alert.
2020-07-14 13:21:31 -04:00
7d6985647f
Some password reset UI fixes. Fixes #955
2020-07-14 13:17:51 -04:00
70f15ffd6f
Version v0.7.21
2020-07-14 12:12:13 -04:00
da14612049
Merge remote-tracking branch 'weblate/master'
2020-07-14 12:12:11 -04:00
Dessalines
cc0ae6343c
Fixing user mention reading. ( #968 )
2020-07-14 12:12:04 -04:00
2f32d3e6df
A few fixes.
2020-07-14 11:59:15 -04:00
riccardo
073ab0aac0
Translated using Weblate (Italian)
...
Currently translated at 100.0% (250 of 250 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-07-14 15:54:37 +00:00
d6fdfe0b6d
Merge branch 'fix_frontend_duplicate_requests' of https://github.com/masterstur/lemmy into masterstur-fix_frontend_duplicate_requests
2020-07-14 11:26:16 -04:00
5ccf81349e
Version v0.7.20
2020-07-14 09:17:36 -04:00
ryexandra
29037b4995
Security/fix permission bugs ( #966 )
...
* secure the `EditPost` API endpoint
* Check user is moderator in BanFromCommunity
* secure the `EditComment` API endpoint
* pass orig `read` prob when not explicitly updating it.
* Block random users from adding mods.
* use cleaner logic from `EditPost`
* prevent editing a community by a mod from transfering ownership to them
* secure `read` action in `EditPrivateMessage`
* Add check in UserMention
* only let the indended recipient mark as read
* simplify booleans to satisfy clippy
* requested changes + cargo +nightly fmt
* fix to pass federation tests for deleting comments and posts
Co-authored-by: chiminh <chiminh.tutanota.com>
Co-authored-by: Hex Bear <buildadangtrain@protonmail.com>
2020-07-14 09:17:25 -04:00
derek
ef62f4698a
ui.components: fix ts types, move user pagination to user details
2020-07-14 01:13:43 -04:00
derek
563a66b053
ui.components.sort-select: always parse to number
2020-07-13 20:14:01 -04:00
derek
602993ac76
ui.components.main: simplify url update logic
2020-07-13 20:14:01 -04:00
derek
47548905ce
ui.components: fix selector components to work with browser buttons
...
Use getDerivedState to set state and only send back props
2020-07-13 20:14:01 -04:00
derek
195bf022bb
ui.components.communities: deprecate componentWillReceiveProps
2020-07-13 20:14:01 -04:00
derek
5aa2a682ff
ui.components.community: fix duplicate requests
...
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
af2141417a
ui.components.search: fix duplicate requests
...
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
2640efb3f0
ui.components.main: fix duplicate requests
...
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
f1d01f4fa0
ui.components: split user component up to fix duplicate requests
...
Replace componentWillReceiveProps with getDerivedState and pass state as props to new component
2020-07-13 20:14:01 -04:00
derek
d71897620c
Merge remote-tracking branch 'LemmyNet/master'
2020-07-13 20:09:39 -04:00
52983907c4
Version v0.7.19
2020-07-13 15:21:16 -04:00
23688f17bb
Making chat only sortable by new.
2020-07-13 15:20:46 -04:00
abe7a41f58
Version v0.7.18
2020-07-13 13:32:01 -04:00
Dessalines
22a33929e2
Adding docker workspace caching. Fixes #940 ( #958 )
2020-07-13 12:31:06 -04:00
ac56b57faa
Merge branch 'fix-migrate-apub-lib'
2020-07-13 11:57:39 -04:00
Dessalines
e5d3e3a9c3
Adding a configurable config location through an env var. ( #960 )
...
* Adding a configurable config location through an env var.
- Its `LEMMY_CONFIG_LOCATION`
- Fixes #764
* Using a static for CONFIG_FILE again.
* Make clippy happy
2020-07-13 11:33:48 -04:00
ea0881f87e
Using community-link instead.
2020-07-13 10:39:15 -04:00
1b7a4ac090
Merge branch 'add_post_title_to_comments_view' of https://github.com/makigi-io/makigi into makigi-io-add_post_title_to_comments_view
2020-07-13 09:57:37 -04:00
bb3e29e5c4
Make reads from activitypub objects immutable
2020-07-13 15:56:58 +02:00
8f745b80d3
Wrap each inbox route individually ( #954 )
2020-07-13 09:55:55 -04:00
Dessalines
7556f8615f
Adding a community_name option to GetPosts /post/list . Fixes #800 ( #942 )
2020-07-13 09:50:13 -04:00
Dessalines
a7c1c472fe
Fixing admin and mod sort order. Fixes #939 ( #941 )
2020-07-13 09:42:03 -04:00
Ernest
9ad0a8825a
Merge remote-tracking branch 'upstream/master' into add_post_title_to_comments_view
2020-07-13 08:45:57 +02:00
Ernest
e06d9a620c
Add post title to user comments inbox view, comment_view, user_mention_view
2020-07-13 08:18:11 +02:00
f0357bc988
Version v0.7.17
2020-07-12 16:16:43 -04:00
85fd1d6d04
Merge remote-tracking branch 'weblate/master'
2020-07-12 16:16:42 -04:00
Ernest
82dcaa4545
Migration fix
2020-07-12 20:27:21 +02:00
c72acfd282
Fixing offset for mobile reflow.
2020-07-12 14:10:38 -04:00
Ernest
a5454fe82d
Add post title to user overview and user comment list
2020-07-12 19:02:38 +02:00
Ernest
b037ff922c
Add post title to comments view #948
2020-07-12 17:26:10 +02:00
ff2f70b1de
Moving recent comments into main view as a chat select. Fixes #943
2020-07-12 00:58:42 -04:00
Dessalines
74655de618
Comment box focus ( #947 )
...
* Add fallback url to fuse devserver(closes #945 )
* Only focus on reply commentform textareas. Fixes #944
Co-authored-by: Justin Hernandez <jmarthernandez@gmail.com>
2020-07-11 21:47:38 -04:00
f3dbfcd37b
Adding number of comments for user search.
2020-07-11 19:25:17 -04:00
f3119b5b3a
Merge branch 'remove-karma-from-search' of https://github.com/jmarthernandez/lemmy into jmarthernandez-remove-karma-from-search
2020-07-11 19:16:44 -04:00
60288b2d06
Merge branch 'master' into jmarthernandez-remove-karma-from-search
2020-07-11 19:12:56 -04:00
Justin Hernandez
1b9f2fa5f7
Add fallback url to fuse devserver( closes #945 ) ( #946 )
2020-07-11 19:03:23 -04:00
Justin Hernandez
f03161b7f9
Remove karma count from search results( fixes #853 )
2020-07-11 15:57:13 -05:00
Txopi
4b124b9381
Translated using Weblate (Basque)
...
Currently translated at 100.0% (250 of 250 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-07-11 17:58:33 +00:00
d63eb7c8f5
Version v0.7.16
2020-07-11 10:14:04 -04:00
ernestwisniewski
4b30b6d764
Redirect error on create_post page for not logged in users. #937 ( #938 )
2020-07-11 10:13:45 -04:00
cb77339370
Version v0.7.15
2020-07-10 21:38:24 -04:00
8952cf659b
Merge remote-tracking branch 'weblate/master'
2020-07-10 21:38:22 -04:00
Filip Duricic
9c7c7b06df
Don't show cake day indicator on the same year / day of user registration, instead show it the following years ( #936 )
2020-07-10 21:38:01 -04:00
Tony Antonov
8d24659892
Forbid users to use empty titles for posts ( #930 )
...
- Add a regex that checks if string contains anything but whitespace
- Check for whitespace-only titles on post creation and edit
- Trim whitespace from titles before saving
- Add frontend validation to title
2020-07-10 21:15:53 -04:00
7a9a973c89
Fix .travis.yml
2020-07-10 14:45:34 -04:00
ea5276ad7f
Merge branch 'master' of https://github.com/lemmynet/lemmy
2020-07-10 14:18:46 -04:00
181374d2cc
Fixing travis, adding a test.sh script.
2020-07-10 14:16:42 -04:00
nutomic
80aef61aed
Split code into cargo workspaces ( #67 )
...
More fixes
- fixed docker builds
- fixed mentions regex test
- fixed DATABASE_URL stuff
- change schema path in diesel.toml
Address review comments
- add jsonb column back into activity table
- remove authors field from cargo.toml
- adjust LEMMY_DATABASE_URL env var usage
- rename all occurences of LEMMY_DATABASE_URL to DATABASE_URL
Decouple utils and db
Split code into cargo workspaces
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/67
2020-07-10 18:15:41 +00:00
Dessalines
8e96507cb1
Replacing selectr with choices.js for community searching. ( #932 )
...
- Fixes #839
- Fixes #847
2020-07-10 14:01:45 -04:00
Txopi
4d82e23861
Translated using Weblate (Basque)
...
Currently translated at 99.6% (249 of 250 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-07-10 15:27:42 +00:00
Sergio Varela
b0dd8ec729
Translated using Weblate (Basque)
...
Currently translated at 99.6% (249 of 250 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-07-10 15:27:42 +00:00
debbd316c2
Version v0.7.14
2020-07-09 20:16:39 -04:00
1377238950
Merge remote-tracking branch 'weblate/master'
2020-07-09 20:16:28 -04:00
d271ae67aa
Merge branch 'master' into remove_twemoji
2020-07-09 20:11:05 -04:00
Dessalines
961d65c0ee
Remove button for avatars. Fixes #755 ( #924 )
2020-07-09 20:04:09 -04:00
Dessalines
50e6d81d0b
Redirect to login page for votes, comments, pages, etc. Fixes #849 ( #926 )
2020-07-09 20:03:47 -04:00
Dessalines
85c07e7154
Correctly hide next / prev in paginators. Fixes #914 ( #927 )
2020-07-09 20:03:33 -04:00
d222c60cef
A few cake day fixes. #916
2020-07-09 19:59:02 -04:00
Filip Djuricic
5b719a03bf
Translated using Weblate (Serbian (latin))
...
Currently translated at 26.8% (67 of 250 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sr_Latn/
2020-07-09 20:32:44 +00:00
db09730d5f
Removing twemoji, and the massive emoji picker. Fixes #895
2020-07-09 13:32:23 -04:00
Filip785
7c35fc546b
Create new migration to add creator_published
field to the post_view
and comment_view
2020-07-09 17:19:30 +02:00
Filip785
10a946cab3
Merge remote-tracking branch 'upstream/master' into cake-day
2020-07-09 17:12:43 +02:00
20f9bde88f
Making comment collapse and lightning buttons not spans. Fixes #884
2020-07-09 10:44:05 -04:00
558644b8b3
Adding lemmy's devs / contributors to the sidebar. Fixes #743
2020-07-09 10:15:12 -04:00
Kartik Singh
3663cb5ad5
Add webmanifest file, icons. Add manifest to index.html
2020-07-09 19:45:11 +05:30
75251f6e78
Adding select quoting of text for comments. Fixes #790
2020-07-09 09:47:26 -04:00
derek
e7b9ab1b3a
Merge remote-tracking branch 'LemmyNet/master'
2020-07-08 20:25:13 -04:00
3f34e5dadf
Adding some languages for weblate.
2020-07-08 17:52:41 -04:00
Filip785
abdbd50f5e
Merge remote-tracking branch 'upstream/master' into cake-day
2020-07-08 22:15:34 +02:00
32d43b85b9
Blocking page refresh when forms are filled. Fixes #671
2020-07-08 14:32:37 -04:00
Filip785
8fe8836bc2
Updates to PR as requested
2020-07-08 19:46:18 +02:00
Filip785
1b351e08aa
Merge remote-tracking branch 'upstream/master' into cake-day
2020-07-08 19:30:13 +02:00
d720993141
Merge branch 'master' into migrate-apub-lib
2020-07-08 12:13:17 -04:00
c9338027f2
Migrate user and group to new activitystreams library
2020-07-08 18:01:04 +02:00
Filip785
e7b7b0dee3
Merge remote-tracking branch 'upstream/master' into cake-day
2020-07-08 17:21:44 +02:00
cd5f500d11
Version v0.7.13
2020-07-08 09:14:25 -04:00
1271c3e7cd
Merge remote-tracking branch 'weblate/master'
2020-07-08 09:14:24 -04:00
118f197961
Merge branch 'html_titles'
2020-07-08 09:13:17 -04:00
Pierce
2f01e15cae
Fixes regression from #848
...
The api for actix_web::dev::ConnectionInfo changed from 2.0.0 to 3.0.0. The equivalent of 2.0.0's remote() in 3.0.0 is realip_remote_addr(), not remote_addr().
https://docs.rs/actix-web/2.0.0/actix_web/dev/struct.ConnectionInfo.html#method.remote
https://docs.rs/actix-web/3.0.0-alpha.3/actix_web/dev/struct.ConnectionInfo.html#method.realip_remote_addr
2020-07-08 02:20:08 -04:00
cd4e0ab3c2
HTML title bugs.
...
- Fixing HTML titles for some pages. Fixes #801
- Removing WebSocketService.Instance.site, fetching site on demand now.
2020-07-08 01:02:14 -04:00
Filip785
68e9755e59
Add cake day display in user page & posts/comments #682
2020-07-08 02:28:47 +02:00
Isak Alexander
60a1bbeb70
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sv/
2020-07-07 16:54:35 +00:00
Cee
4575cd4e58
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/
2020-07-07 16:54:34 +00:00
5HT
b407e6fffe
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
2020-07-07 16:54:34 +00:00
Adolfo Jayme Barrientos
edf1aed369
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-07-07 16:54:34 +00:00
Sergio Varela
fd28f1730e
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-07-07 16:54:34 +00:00
Ady Nemo
ab174dc678
Translated using Weblate (French)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-07-07 16:54:34 +00:00
Adolfo Jayme Barrientos
c4e25c8d9c
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
Translated using Weblate (Spanish)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
Translated using Weblate (Catalan)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
2020-07-07 16:54:33 +00:00
Tërë Rërë
b6be84c909
Translated using Weblate (Albanian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
2020-07-07 16:54:33 +00:00
8fda7d00d5
Version v0.7.12
2020-07-07 11:07:51 -04:00
382325ca47
Merge remote-tracking branch 'weblate/master'
2020-07-07 11:07:50 -04:00
Dessalines
f4565d0603
Remove materialized views. ( #908 )
...
* One pass at materialized views, only about 30% faster, not good.
* Before merging master to test out bans.
* DB Rework working, still need more testing.
* Fixing accidental addadmin bug from asonix async merge.
* Fixing the comment delete trigger
* Some more DB additions.
- Adding a hot_rank desc, published desc index to post_aggregates_fast.
- Removed WITH CTE queries in favor of direct selects (since CTEs cant
use indexes)
* Removing some unecessary indexes.
* Some more DB optimizings
- Changing the fast_id pkeys to just ids on the fast tables.
- Removing the private_message_fast, since the view contains no aggregates.
- Comment and post voting now no longer pull from the views, they update the counts directly.
* Adding community_agg_view and post_agg_views Credit: eiknat.
* Adding user and comment_view migrations. (comment_view still broken)
* Adding more views. Credit Eiknat.
2020-07-07 10:54:44 -04:00
aaa536b454
Merge branch 'improve-council-rules'
2020-07-07 14:00:43 +02:00
6122fb9f73
Improve council rules
2020-07-07 13:54:01 +02:00
cf13f11107
Merge branch 'master' of https://github.com/lemmynet/lemmy
2020-07-06 11:42:00 -04:00
b9d16d7cd0
Fixing some typos.
2020-07-06 11:39:31 -04:00
d03c435563
Revert "Verify activitypub payload digests ( #885 )"
...
This reverts commit 916592944a
.
2020-07-06 14:20:29 +02:00
5HT
cb73a7ae0e
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
2020-07-06 11:27:57 +00:00
Adolfo Jayme Barrientos
6a5e82ba3b
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-07-06 11:27:56 +00:00
Sergio Varela
3050183ea9
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-07-06 11:27:56 +00:00
Ady Nemo
94b4c0b2de
Translated using Weblate (French)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-07-06 11:27:56 +00:00
Adolfo Jayme Barrientos
9ce4c26c75
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
Translated using Weblate (Spanish)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
Translated using Weblate (Catalan)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ca/
2020-07-06 11:27:56 +00:00
Tërë Rërë
ba348e5af4
Translated using Weblate (Albanian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
2020-07-06 11:27:56 +00:00
bf69d595b4
Adding to sponsors list.
2020-07-05 16:01:41 -04:00
ce8e22ae3b
Improve import script UI, errors ( #887 )
...
* Improve import script UI, errors
* Fix jq check
* Add space between ! and which
2020-07-05 16:01:21 -04:00
Mischa Spiegelmock
3e6508f484
Fix capitalization of Ukrainian language ( #910 )
2020-07-05 09:07:43 -04:00
6780855b1f
Version v0.7.11
2020-07-04 11:37:04 -04:00
de63ff6d2a
Some navbar fixes.
2020-07-04 11:35:38 -04:00
fa0b0b68ca
Merge branch 'master' of https://github.com/lemmynet/lemmy
2020-07-04 07:59:54 -04:00
Paul Tötterman
c51c5b3c44
Fix version_compare to version for ansible 2.9 ( #902 )
2020-07-04 11:46:08 +00:00
bca62cbf0f
Version v0.7.10
2020-07-04 07:42:29 -04:00
a850b287b2
Merge remote-tracking branch 'weblate/master'
2020-07-04 07:42:19 -04:00
Dessalines
9530dba2c2
Update issue templates
2020-07-04 07:38:20 -04:00
ButterflyOfFire
f8789689f8
Translated using Weblate (Arabic)
...
Currently translated at 75.1% (187 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ar/
2020-07-04 09:17:24 +00:00
Cee
cc438980d1
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/
Translated using Weblate (Chinese (Simplified))
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/
2020-07-04 09:17:24 +00:00
Tërë Rërë
00870dfb5e
Translated using Weblate (Albanian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
Translated using Weblate (Albanian)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
Translated using Weblate (Albanian)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
Translated using Weblate (Albanian)
Currently translated at 55.8% (139 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
2020-07-04 09:17:24 +00:00
1bd7218a7e
Adding an issue template.
2020-07-03 23:39:43 -04:00
e95992b704
Version v0.7.9
2020-07-03 22:26:49 -04:00
8ca9025311
Merge remote-tracking branch 'weblate/master'
2020-07-03 22:14:12 -04:00
69df9cecca
Adding a search icon, and a faster transition.
2020-07-03 22:00:51 -04:00
b1b755713e
Merge branch 'master' into arrudaricardo-issue-#814
2020-07-03 21:51:42 -04:00
4822a53f06
Merge branch 'issue-#814' of https://github.com/arrudaricardo/lemmy into arrudaricardo-issue-#814
2020-07-03 19:31:50 -04:00
aab68f0baf
Adding to sponsors list.
2020-07-03 17:56:50 -04:00
Ricardo de Arruda
2f54532be0
Modify search button to be expandable.
...
* Accordingly issue#814.
* Input contract if un-focus input element
* Search text data persisted when contracted/expanded
2020-07-03 23:20:44 +03:00
ButterflyOfFire
1f1ea68f45
Translated using Weblate (Arabic)
...
Currently translated at 75.1% (187 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ar/
2020-07-03 18:21:26 +00:00
Cee
f074e23c80
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/
Translated using Weblate (Chinese (Simplified))
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/zh_Hans/
2020-07-03 18:21:25 +00:00
Tërë Rërë
e0b2789840
Translated using Weblate (Albanian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
Translated using Weblate (Albanian)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
Translated using Weblate (Albanian)
Currently translated at 55.8% (139 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
2020-07-03 18:21:25 +00:00
Dessalines
284f00249a
Going back from jolt to dogbin iframely. jolt one had problems. ( #900 )
2020-07-03 18:19:24 +00:00
Dessalines
8aa9cc11eb
Fixing federation testing docs. Fixes #878 ( #879 )
...
* Fixing federation testing docs. Fixes #878
* Removing extra clone.
2020-07-03 18:17:21 +00:00
916592944a
Verify activitypub payload digests ( #885 )
2020-07-03 13:22:39 -04:00
Paul Tötterman
0350f4bbeb
Fix ansible for Ubuntu 20.04 Focal ( #856 )
...
* Fix ansible for Ubuntu 20.04 Focal
* Use proper version comparison
* Changes based on feedback
2020-07-03 10:08:01 +00:00
1710844a1b
Merge branch 'remove-karma-from-search' of https://github.com/jmarthernandez/lemmy into jmarthernandez-remove-karma-from-search
2020-07-02 11:41:48 -04:00
Justin Hernandez
08b953c0aa
Remove karma count from search results
2020-07-01 22:01:48 -05:00
3f87b55a52
Adding to sponsors list.
2020-07-01 22:54:52 -04:00
a6ec9dc666
Adding to sponsors list.
2020-07-01 22:50:55 -04:00
9e1e12f6ce
Version v0.7.8
2020-07-01 21:54:36 -04:00
27cb9c433d
Merge remote-tracking branch 'weblate/master'
2020-07-01 21:54:22 -04:00
d22152eefd
Adding a math check for logins (until we get a proper captcha).
2020-07-01 21:48:29 -04:00
Tërë Rërë
96b73cca51
Translated using Weblate (Albanian)
...
Currently translated at 34.1% (85 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/sq/
2020-07-02 01:23:43 +00:00
Tirifto
605ded9c73
Translated using Weblate (Esperanto)
...
Currently translated at 95.5% (238 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
Translated using Weblate (Esperanto)
Currently translated at 93.9% (234 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
Translated using Weblate (Esperanto)
Currently translated at 76.3% (190 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
2020-07-02 01:23:43 +00:00
8d49dc958e
Version v0.7.7
2020-07-01 20:39:51 -04:00
c345489923
Merge remote-tracking branch 'weblate/master'
2020-07-01 20:39:50 -04:00
db8753631c
Merge branch 'dev'
2020-07-01 20:39:34 -04:00
2e886ce4e6
Nother fix for comment box bug. #861
2020-07-01 20:38:11 -04:00
Dessalines
52fcda96e1
Adding IP to the rate limit request line. ( #882 )
...
* Adding IP to the rate limit request line.
* Adding IP to the rate limit request line.
2020-07-01 18:54:46 -04:00
Tirifto
fee0a0c867
Translated using Weblate (Esperanto)
...
Currently translated at 93.9% (234 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
Translated using Weblate (Esperanto)
Currently translated at 76.3% (190 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
2020-07-01 22:53:10 +00:00
360e7aec42
Adding Albanian for weblate.
2020-07-01 18:50:38 -04:00
42c5c9fd65
Merge pull request #880 from LemmyNet/more_slurs
...
Adding \b before a slur.
2020-07-01 17:03:27 +02:00
1c0cc78f3f
Adding \b before a slur.
2020-07-01 10:45:56 -04:00
dbeb8d8da4
Merge branch 'federation'
2020-07-01 09:05:25 -04:00
cd007febef
Merge branch 'master' into federation
2020-07-01 09:04:26 -04:00
a074564458
Federation async ( #848 )
...
* Asyncify more
* I guess these changed
* Clean PR a bit
* Convert more away from failure error
* config changes for testing federation
* It was DNS
So actix-web's client relies on TRust DNS Resolver to figure out
where to send data, but TRust DNS Resolver seems to not play nice
with docker, which expressed itself as not resolving the name to
an IP address _the first time_ when making a request. The fix was
literally to make the request again (which I limited to 3 times
total, and not exceeding the request timeout in total)
* Only retry for connecterror
Since TRust DNS Resolver was causing ConnectError::Timeout,
this change limits the retry to only this error, returning
immediately for any other error
* Use http sig norm 0.4.0-alpha for actix-web 3.0 support
* Blocking function, retry http requests
* cargo +nightly fmt
* Only create one pictrs dir
* Don't yarn build
* cargo +nightly fmt
2020-07-01 08:54:29 -04:00
fb2b8994c7
Improve comments in ansible inventory
2020-07-01 14:51:52 +02:00
Paul Tötterman
95f59a0272
Put Lemmy in /srv/lemmy instead of /lemmy as recommended by FHS ( #857 )
...
* Put Lemmy in /srv/lemmy instead of /lemmy as recommended by FHS
* Extract lemmy_base_dir
* Complain if lemmy_base_dir not set
2020-07-01 12:44:56 +00:00
5c03e9e9ee
Version v0.7.6
2020-07-01 08:25:55 -04:00
1d10b19176
Merge remote-tracking branch 'weblate/master'
2020-07-01 08:25:07 -04:00
e0aaa3b162
Merge branch 'ban_user_bug'
2020-07-01 08:23:59 -04:00
c239a5f0e5
Fixing ban user bug. Fixes #876
2020-07-01 08:22:41 -04:00
Panos Alevropoulos
0d53c8dd0e
Translated using Weblate (Greek)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
2020-07-01 10:28:59 +00:00
e8fe8d832d
Merge branch 'issue-#814' of https://github.com/arrudaricardo/lemmy into arrudaricardo-issue-#814
2020-06-30 21:42:04 -04:00
Ricardo de Arruda
e41117c878
Replace search button to input field at navbar.
...
* Search input not rendered at /search path.
* Navbar wrapped with withRouter for accessing history props.
* Flex-grow/shrink control the width of the input element dynamically.
2020-07-01 00:30:23 +03:00
Ihor Horobets
6d70067b1a
Update uk.json
2020-06-30 19:43:02 +03:00
Andy Coupe
587731583f
improve lighthouse best practices audit ( #863 )
...
* improve safety of cross origin links
* add additional safety for cross origin links
* remove duplicates
2020-06-30 09:40:57 -04:00
Dmytro Kyrychuk
09a05f72e3
Translated using Weblate (Ukrainian)
...
Currently translated at 29.7% (74 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/uk/
2020-06-30 13:20:59 +00:00
riccardo
afb7e055e1
Translated using Weblate (Italian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-06-30 13:20:59 +00:00
yes
92b0536520
Translated using Weblate (German)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/de/
2020-06-30 13:20:59 +00:00
Dessalines
c0b11d4fa3
Replacing dogbin/iframely docker image with jolt one. ( #869 )
...
* Replacing dogbin/iframely docker image with jolt one.
* Replacing dogbin/iframely docker image with jolt one.
2020-06-30 11:11:36 +00:00
eded51aab6
Version v0.7.5
2020-06-29 21:05:38 -04:00
15ea264fcf
Version v0.7.4
2020-06-29 21:02:02 -04:00
80bca8610e
Revert "Remove mat views, no fast tables or caching added yet."
...
This reverts commit 97e088dcbf
.
2020-06-29 21:00:28 -04:00
c10a05cb68
Version v0.7.3
2020-06-29 20:14:16 -04:00
47a66df802
Merge remote-tracking branch 'weblate/master'
2020-06-29 20:13:44 -04:00
97e088dcbf
Remove mat views, no fast tables or caching added yet.
2020-06-29 20:02:38 -04:00
Sergio Varela
3aff621478
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-06-29 21:40:49 +00:00
Gert
3d746fc99a
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/nl/
2020-06-29 21:40:49 +00:00
bertol
f3e3847e0a
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:40:48 +00:00
Sergio Varela
22abcb79e4
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:40:48 +00:00
Sunur Efe Vural
05ae51291c
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/tr/
2020-06-29 21:40:47 +00:00
bertol
4f40fa1ad8
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:34:24 +00:00
Sergio Varela
0dedbc7256
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:34:24 +00:00
bertol
6ece596135
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:33:45 +00:00
Sergio Varela
f7dfe6abb8
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:33:44 +00:00
bertol
e8e5d409f9
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:30:51 +00:00
Sergio Varela
18a38b0b11
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:30:50 +00:00
bertol
6fa358c093
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:27:25 +00:00
Sergio Varela
97a42011bb
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:27:25 +00:00
bertol
81142d3ffe
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:25:47 +00:00
Sergio Varela
a106f1bcf9
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:25:47 +00:00
bertol
f5cd97e07d
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:23:59 +00:00
Sergio Varela
a28788488f
Translated using Weblate (Basque)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 21:23:58 +00:00
15af11da98
Changing front end hot reload testing to 8536
2020-06-29 16:55:14 -04:00
be6e95e564
Merge remote-tracking branch 'yerba/master'
2020-06-29 13:24:29 -04:00
Sunur Efe Vural
f12a637cdb
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/tr/
2020-06-29 17:24:09 +00:00
dessalines
dcd664e61b
Merge pull request 'council_admin_add' ( #65 ) from council_admin_add into master
...
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/65
2020-06-29 17:24:02 +00:00
dessalines
485feecf10
Merge branch 'master' into council_admin_add
2020-06-29 17:23:51 +00:00
Sunur Efe Vural
5c8e2b5bae
Translated using Weblate (Turkish)
...
Currently translated at 98.7% (246 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/tr/
2020-06-29 17:19:44 +00:00
Dessalines
9cf58a74d1
Merge pull request #859 from LemmyNet/adding_ansible_comment_line
...
Adding ansible comment line.
2020-06-29 13:09:47 -04:00
82419a08c2
Merge branch 'master' of https://github.com/lemmynet/lemmy
2020-06-29 09:56:00 -04:00
997e373bf9
Adding ansible comment line.
2020-06-29 09:55:23 -04:00
effd08c98a
Adding some sponsors
2020-06-29 09:38:50 -04:00
c2f7db9f76
Merge pull request #854 from LemmyNet/more_slurs
...
Slur additions.
2020-06-29 12:55:40 +02:00
Fabio Ferrari
4a43dcc373
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/pt_BR/
2020-06-29 02:07:02 +00:00
Sergio Varela
309620ebbc
Translated using Weblate (Basque)
...
Currently translated at 74.6% (186 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
Translated using Weblate (Basque)
Currently translated at 72.6% (181 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
Translated using Weblate (Basque)
Currently translated at 72.2% (180 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-29 02:07:01 +00:00
Panos Alevropoulos
ace5b71536
Translated using Weblate (Greek)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
Translated using Weblate (Greek)
Currently translated at 89.9% (224 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
Translated using Weblate (Greek)
Currently translated at 64.2% (160 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
Translated using Weblate (Greek)
Currently translated at 64.2% (160 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
2020-06-29 02:07:01 +00:00
022fd31b66
Slur additions.
2020-06-28 19:41:00 -04:00
c1b3711090
Adding line for council admins.
2020-06-28 19:23:24 -04:00
d1f7363779
Merge remote-tracking branch 'weblate/master'
2020-06-28 13:46:29 -04:00
0112d0d955
Fixing test deploy, adding a rate limiter to ansible nginx config.
2020-06-28 13:44:42 -04:00
Dessalines
6672cbc253
Merge pull request #852 from edneville/noun_correction
...
Minor correction of nouns in README.md
2020-06-28 13:30:54 -04:00
Sergio Varela
7d861404ce
Translated using Weblate (Basque)
...
Currently translated at 72.2% (180 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eu/
2020-06-28 17:01:14 +00:00
Panos Alevropoulos
c293c278bf
Translated using Weblate (Greek)
...
Currently translated at 64.2% (160 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
Translated using Weblate (Greek)
Currently translated at 64.2% (160 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/el/
2020-06-28 17:01:14 +00:00
ed neville
a804926c35
Minor correction of nouns in README.md
...
'Reddit' and 'Lemmy' are used as nouns so they should be title-cased.
Signed-off-by: ed neville <ed@s5h.net>
2020-06-28 10:49:35 +01:00
4c1cb5999c
Fixing some scripts for the federation-test
2020-06-27 14:54:42 -04:00
e517de5480
Merge branch 'master' into federation
2020-06-27 10:54:08 -04:00
bd3051e058
Merge branch 'master' into improve-config
2020-06-27 10:09:16 -04:00
b6fc1959e6
Merge branch 'improve-config' of https://yerbamate.dev/LemmyNet/lemmy into improve-config
2020-06-27 10:08:09 -04:00
fab33d678b
Merge remote-tracking branch 'yerba/test-docs'
2020-06-27 09:44:56 -04:00
afe3b6b2fc
Add docs for testing ( fixes #841 )
2020-06-27 15:28:45 +02:00
da2bb724e9
Version v0.7.2
2020-06-27 09:28:28 -04:00
10acb79040
Merge remote-tracking branch 'weblate/master'
2020-06-27 09:27:01 -04:00
208c17dcc8
Fixing comment edits stalling. Fixes #846
2020-06-27 09:03:34 -04:00
86dc50f9f0
Some fixes to federation.
...
- Advanced code migrations now disable then re-enable triggers.
Brings run time down to < 15 seconds, no need to thread them.
- Changing ap_ids and actor_ids in migrations to a fake url,
so it doesn't break XsdAnyUri in activitystreams.
2020-06-26 21:12:41 -04:00
maxigaz
cbeb56adc6
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-26 22:42:45 +00:00
skrlet13
74dac13399
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/es/
2020-06-26 22:42:40 +00:00
0c89de8065
Fix previous comment, also fix link in docs
2020-06-26 19:16:41 +02:00
maxigaz
365e93125d
Translated using Weblate (Hungarian)
...
Currently translated at 81.9% (204 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-26 00:57:47 +00:00
6df13643c3
Fixing link to defaults.hjson
2020-06-25 16:22:05 -04:00
maxigaz
52e66d4819
Translated using Weblate (Hungarian)
...
Currently translated at 77.5% (193 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-25 20:17:54 +00:00
3928556033
Merge branch 'master' into improve-config
2020-06-25 16:16:16 -04:00
7d1c6e9a40
Switching back to isahc.
2020-06-25 15:36:03 -04:00
maxigaz
3c43f5af1c
Translated using Weblate (Hungarian)
...
Currently translated at 75.1% (187 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-25 17:33:16 +00:00
maxigaz
9306050b9a
Translated using Weblate (Hungarian)
...
Currently translated at 63.0% (157 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-25 10:47:46 +00:00
Nikolay Korotkiy
6a428da11d
Translated using Weblate (Russian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/ru/
Translated using Weblate (Esperanto)
Currently translated at 66.6% (166 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/eo/
2020-06-24 21:40:06 +00:00
maxigaz
57c8e98292
Translated using Weblate (Hungarian)
...
Currently translated at 58.2% (145 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/hu/
2020-06-24 21:40:06 +00:00
Ady Nemo
fae52848e3
Translated using Weblate (French)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
Translated using Weblate (French)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/fr/
2020-06-24 21:40:05 +00:00
riccardo
6bf5e573e3
Translated using Weblate (Italian)
...
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
Translated using Weblate (Italian)
Currently translated at 100.0% (249 of 249 strings)
Translation: Lemmy/lemmy
Translate-URL: http://weblate.yerbamate.dev/projects/lemmy/lemmy/it/
2020-06-24 21:40:05 +00:00
96f133750d
Merge branch 'fruechtchen/lemmy:master'
2020-06-24 21:04:55 +02:00
fruechtchen
a774e0a2a1
update lemmy council memberlist
2020-06-24 21:03:50 +02:00
a9d98fd09b
Improve config files by adding documentation and removing some fields
2020-06-24 16:09:52 +02:00
dc94e58cbf
Merge branch 'master' into federation_merge_from_master_2
2020-06-23 21:11:38 -04:00
fd6a040568
Changing another blacklisted to blocklisted.
2020-06-17 21:29:10 -04:00
68bcc26ff6
Fix community description federation (ref #647 )
...
Also disable the actor refetch interval in debug builds.
2020-06-16 13:35:26 +02:00
325ed2ec3b
Rename "instance_whitelist" config option to "allowed_instances"
2020-06-16 12:49:51 +02:00
Dessalines
cfa40e482a
Parse out in reply to field. Fixes #694 ( #799 )
...
- When a comment or post doesn't exist locally, yet we receive
an activitypub with it (for example, a nested comment update,
for a community we just subscribed to, also with a post we
don't have...), then fetch it.
2020-06-11 11:16:33 -04:00
0f1a8ec928
Merge branch 'master' into federation
2020-06-09 14:01:26 +02:00
5c6601cb2a
Merge branch 'activitystreams-new' into federation
2020-06-07 09:12:15 -04:00
f40f74b20d
Adding additional 3-instance integration test for community announce.
2020-06-03 17:55:32 -04:00
c1ef766125
migrate follow
2020-06-03 21:44:14 +02:00
3999e0485e
migrate tombstone
2020-06-03 17:10:16 +02:00
1aa30d855e
address review comments
2020-06-01 16:48:07 +02:00
f3aba6da92
fix comment notifications
2020-05-30 20:05:42 +02:00
c34cc46c2d
get it working (mostly)
2020-05-30 19:44:50 +02:00
52206998aa
more fixes
2020-05-30 15:38:01 +02:00
d6e2119277
make comments work (more or less)
2020-05-28 20:09:37 +02:00
8f9bd1fef7
get some more things working
2020-05-28 15:20:12 +02:00
ce0a37cdf1
get it working (mostly)
2020-05-28 13:51:48 +02:00
cac7011d53
move logic to sharedinbox
2020-05-28 13:44:52 +02:00
5753c4feaa
Let community announce posts
2020-05-28 13:15:51 +02:00
Anthony Ettinger
b08574fd57
fix dimensions
2020-05-28 12:45:50 +02:00
Anthony Ettinger
baa402f82f
add icon
2020-05-28 12:45:50 +02:00
a9af247f1e
Merge branch 'federated_embeds' into federation
2020-05-25 16:15:23 -04:00
d1aca27126
Use activitystreams-ext
2020-05-18 18:15:26 +02:00
f15c3b4e1e
Merge branch 'yerba_rework-imports' into federation
2020-05-16 21:09:26 -04:00
9e61c3be94
Rework imports
2020-05-16 20:04:17 +02:00
f88180650d
Adding federated embeds via the preview field.
2020-05-15 23:40:36 -04:00
020b9b8cdd
Post thumbnail and user icons federating.
2020-05-15 20:23:20 -04:00
Dessalines
940dc73f28
Federated mentions. Fixes #681 ( #717 )
...
* Federated mentions. Fixes #681
* Changing some todos, adding comments.
2020-05-15 12:36:11 -04:00
3a4973ad68
Merge branch 'federation' into yerba_refactoring
2020-05-14 18:35:29 -04:00
0fb8450e56
Simplify community_inbox
2020-05-14 17:44:01 +02:00
13ca47a3b4
Use ActorType for sign/verify, instead of passing raw privatekey/actor_id
2020-05-14 17:17:40 +02:00
11acc7225e
Add helper function for Activity::create()
2020-05-14 14:26:44 +02:00
a1ad21ec56
remove outdated comments
2020-05-14 13:23:56 +02:00
bb1b4ee33e
Comment search and apub endpoint
2020-05-14 12:42:26 +02:00
66142c546b
Merge branch 'federated_private_messages' into federation
2020-05-06 13:51:39 -04:00
15f1920b25
Federated private messages.
2020-05-05 22:06:24 -04:00
dfd6629a6f
Federate community category and nsfw
2020-05-05 16:30:13 +02:00
21407260a4
Merge branch 'yerba_page_extension' into federation
2020-05-04 21:24:53 -04:00
f1692a07fc
Adding a comment on what comment.read is.
2020-05-04 21:14:24 -04:00
7485f1a5b4
Federate nsfw/locked info for posts
2020-05-05 02:09:27 +02:00
b177cbce1d
Renaming ignore to unfollow in followable trait.
2020-05-04 14:26:16 -04:00
b8b2398d32
Adding undo follow community.
2020-05-03 22:41:45 -04:00
fab22e3d8a
Add federated comment and post undo like.
2020-05-03 20:34:04 -04:00
dfc9637230
Merge branch 'federation' into federated_remove_actions
2020-05-03 13:27:53 -04:00
2c22e413eb
Merge branch 'federation' into federated_remove_actions
2020-05-03 13:22:32 -04:00
Dessalines
67d4daa7a1
Merge pull request #687 from LemmyNet/undo_delete_community
...
Undo delete for community, comment, and post.
2020-05-03 13:21:01 -04:00
211ef795e9
Some additional notes, reorg.
2020-05-03 10:22:25 -04:00
a09c818746
Adding federated mod remove actions.
2020-05-03 10:00:59 -04:00
5366797a4b
Add undos for delete community, post, and comment.
2020-05-01 15:01:29 -04:00
75c6c8521b
Merge branch 'shorthand_apub_id_searching' into federation
2020-05-01 10:34:41 -04:00
2f1cd9976d
Adding federated community, comment, and post deletes.
...
- Unit tests added too.
- No undeletes working yet.
2020-05-01 10:07:38 -04:00
461114c143
update activitystreams lib
2020-04-30 18:30:01 +02:00
38cdfdf7e0
Changing federated community and user links and searching.
...
- Search: !community@instance, @user@instance
- Representation: community@instance, user@instance
2020-04-30 11:45:12 -04:00
770dcbdc49
wip: add former_type to tombstone
2020-04-29 21:10:50 +02:00
ee4f923f60
Fix search form clearing out.
2020-04-29 13:05:38 -04:00
8cd68f56aa
Adding shorthand federated object searching.
2020-04-29 12:55:54 -04:00
c43f06124a
Address comments, implement delete for posts and comments
2020-04-29 16:51:25 +02:00
0c0c683986
Implement deleting communities
2020-04-28 19:46:25 +02:00
36d0e34668
Fix federated community link on search page.
2020-04-28 11:53:05 -04:00
59bba148ff
Merge branch 'federation' into add_federated_post_likes
2020-04-28 10:12:07 -04:00
b60c7bbae7
Merge branch 'federation' into add_activity_table
2020-04-28 10:10:05 -04:00
07a9d84ed0
Removing some comments.
2020-04-28 09:57:28 -04:00
3b62f58dd2
Adding federated post and comment likes.
2020-04-28 00:16:02 -04:00
6eaa06ab02
Merge branch 'shared_inbox_1' into add_federated_post_likes
2020-04-27 22:48:20 -04:00
9721b77317
1/3rd done with post likes
2020-04-27 22:47:26 -04:00
4b741c3759
Adding a better switching for activity kinds for the shared inbox.
2020-04-27 19:21:41 -04:00
70060c27b2
Adding activity table inserts.
2020-04-27 18:17:02 -04:00
9c30b37d57
Merge branch 'federation' into shared_inbox_1
2020-04-27 13:01:45 -04:00
Dessalines
10877fd45f
Merge pull request #663 from LemmyNet/federation_changes_1
...
Federation changes.
2020-04-27 13:00:21 -04:00
22abbebd41
Lots of additions to federation.
...
- Added a shared inbox.
- Added federated comments, comment updates, and tests.
- Abstracted ap object sends into a common trait.
2020-04-27 12:57:00 -04:00
3ce0618362
Making a trait function for follow and accept.
2020-04-26 13:20:42 -04:00
079ac091eb
Adding back in post fetching.
2020-04-25 11:49:15 -04:00
b5a5b307a0
Adding get_public_key_ext() to ActorType trait.
2020-04-24 22:34:51 -04:00
df9135f410
Removing run-tests TODO.
2020-04-24 22:02:12 -04:00
8a25f0f816
Use an associated type instead of Generic.
2020-04-24 17:30:27 -04:00
33c5c21a57
Merge remote-tracking branch 'yerba/federation' into federation_changes_1
2020-04-24 15:57:48 -04:00
d846740839
Some more cleanup.
2020-04-24 15:55:54 -04:00
c3ac1649f2
Implement integration test for federation
2020-04-24 18:30:31 +02:00
66a2c4a2c3
Some fed fixes.
2020-04-24 10:04:36 -04:00
e5497edd5c
Adding some more API testing examples.
2020-04-23 14:13:22 -04:00
ce800f75ad
Adding a test bed for API testing. #658
2020-04-23 11:34:32 -04:00
b8aaf5c1f1
Also use correct header in fetcher.rs
2020-04-23 13:42:09 +02:00
70816a4779
Fix header guard for apub responses
2020-04-22 20:56:31 +02:00
92e30311ce
Merge branch 'federation' of https://yerbamate.dev/LemmyNet/lemmy into federation
2020-04-21 20:41:50 -04:00
0425e8b114
Fixing nodeinfo error type.
2020-04-21 20:34:37 -04:00
18e570b021
Merge branch 'master' into merge_master_2
2020-04-21 20:29:52 -04:00
957e4a2611
Change apub IDs to be consistent with html urls
2020-04-21 22:45:01 +02:00
4e80543edb
Update test_deploy.sh, supporting different branches
2020-04-21 19:19:10 +02:00
Felix Ableitner
a90b16a72c
Merge pull request #649 from LemmyNet/federation_merge_from_master_1
...
Federation merge from master 1
2020-04-21 16:29:30 +00:00
f0026065f5
Merge branch 'master' into federation_merge_from_master_1
2020-04-21 10:25:29 -04:00
2f4b3a4f83
Merge branch 'remove_username_lower_unique' into federation
2020-04-21 09:25:02 -04:00
697c62fb64
Change local unique username constraints.
2020-04-21 09:21:29 -04:00
1e7c3841b2
Update federation dev instructions
2020-04-21 13:24:08 +02:00
7117b5ce32
Verifyt http signatures
2020-04-19 19:35:40 +02:00
5284dc0c52
Simplify signing code
2020-04-19 13:44:44 +02:00
8daf72278d
Add http signature to outgoing apub requests
2020-04-18 20:54:20 +02:00
0199b5f169
Use debug logging
2020-04-18 17:24:55 +02:00
a49bd1d42a
Fix bug in whitelist implementation
2020-04-18 17:17:25 +02:00
b1b97db11a
Implement instance whitelist
2020-04-17 19:34:18 +02:00
c5ced6fa5e
Added documentation for most functions
2020-04-17 17:33:55 +02:00
8908c8b184
Some code cleanup and better logging
2020-04-17 16:55:28 +02:00
9c974fbe50
Remove instance follows
2020-04-17 16:39:03 +02:00
86f172076b
Implement search for activitypub IDs
2020-04-17 15:46:08 +02:00
9a85f1b25f
Send activities to correct inbox, seperate community/user inboxes
2020-04-15 20:12:25 +02:00
a941c20024
Adding yarn run to run-federation-test.bash script.
2020-04-15 14:06:17 -04:00
7ba6ee8714
Redundant to_owned
2020-04-14 19:25:58 -04:00
fcf1c65fc1
Front end federation names and links for users, posts, and communities.
2020-04-14 19:18:13 -04:00
1336b4ed60
Merge branch 'dev' into federation
2020-04-14 16:07:20 -04:00
f040dac647
Initial post-listing community non-local.
2020-04-14 15:43:58 -04:00
26ad37a8c0
Updating views to add apub actor_id and local columns.
2020-04-14 15:12:19 -04:00
5c83cbc1ac
Fixing .dockerignore.
2020-04-14 12:27:38 -04:00
9878a58452
Fixing unwrap crash with site_view.rs
2020-04-14 12:24:05 -04:00
9d2046d5a2
Disable nginx access logs for docker/federation/
2020-04-14 17:47:55 +02:00
19c8461397
Implemented follow/accept
2020-04-14 17:37:23 +02:00
13e6c98e47
Auto-configure federation test instances during initial start
2020-04-13 19:55:43 +02:00
fdaf0b3364
Get inbox working properly
2020-04-13 15:06:41 +02:00
fac1cc7e1d
Use summary field for post title
2020-04-13 14:13:06 +02:00
fc951d9295
Added comments about how to federate additional post/user fields
2020-04-12 16:53:55 +02:00
17d3d2492c
Federate actor public keys
2020-04-10 15:50:40 +02:00
5e3902a3bc
more todos
2020-04-10 14:45:48 +02:00
509005fa0c
Rename federation-test to federation, puller.rs to fetcher.rs
2020-04-10 13:37:35 +02:00
492625f6d6
Add to/cc (and a bunch of todo)
2020-04-10 13:26:06 +02:00
483d11e772
Minor code cleanup
2020-04-09 21:26:22 +02:00
0b617377df
Implement create activity
2020-04-09 21:04:31 +02:00
f5b58bcdaf
Simplify fetch_posts code
2020-04-08 18:39:45 +02:00
5706b533fd
Use instance struct instead of raw string
2020-04-08 18:22:44 +02:00
6962b9c433
Use Url instead of String
2020-04-08 14:37:05 +02:00
edd0ef5991
Some refactoring of puller.rs
2020-04-08 14:08:33 +02:00
d2bad5f79e
Improve error handling
2020-04-08 13:23:59 +02:00
61c560c12c
Get users federated
2020-04-07 23:02:32 +02:00
d3bd7771d2
remove debug log for post creation
2020-04-07 19:13:33 +02:00
b7103a7e14
Store remote communities/posts in db, federate posts!
2020-04-07 18:47:19 +02:00
1b0da74b57
Revert apub endpoint change (again)
2020-04-07 17:34:44 +02:00
095ccae616
Merge branch 'federation_add_fed_columns' of https://yerbamate.dev/dessalines/lemmy into federation
2020-04-07 17:33:50 +02:00
17bf6baa25
Set accept header and timeout for outgoing apub requests
2020-04-07 17:29:23 +02:00
56947e7710
Removing community name unique constraint. Removing useless fedi_name column from user_table.
2020-04-07 10:54:15 -04:00
4fadc4d072
Revert apub endpoint url changes
2020-04-07 13:21:30 +02:00
85ea1046f0
Adding post and comment ap_id columns.
2020-04-03 20:04:57 -04:00
cb7059f832
Move and rename some functions
2020-04-03 18:32:09 +02:00
c16458b728
Avoid using database views in federation code
2020-04-03 11:00:24 +02:00
6a7a262912
Merge branch 'federation_add_fed_columns' of https://yerbamate.dev/dessalines/lemmy into federation
2020-04-03 07:24:46 +02:00
96c3621a80
Share list of communities over apub, some refactoring
2020-04-03 07:02:43 +02:00
9197b39ed6
Federation DB Changes.
...
- Creating an activity table.
- Adding some federation-related columns to the user_ and community
tables.
- Generating the actor_id and keys in code, updating the tables.
2020-04-03 00:12:05 -04:00
32b0275257
Merge branch 'nutomic-federation' into federation
2020-04-02 15:15:44 -04:00
31f835db86
Merge branch 'master' into federation
2020-04-02 15:11:11 -04:00
5ca466117d
Merge branch 'master' into federation
2020-03-28 15:41:42 -04:00
0d369e6019
Get image uploads working for federation-test
2020-03-28 17:30:59 +01:00
945fd8331b
Merge branch 'nutomic-federation' into federation
2020-03-24 15:18:08 -04:00
4354f868fd
Merge branch 'federation' of ssh://yerbamate.dev:222/nutomic/lemmy into federation
2020-03-20 10:47:46 +01:00
bf52bc22e4
Replace reqwest with chttp
2020-03-20 01:42:07 +01:00
875545f7e1
Adjust for updated Rust version
2020-03-19 19:01:01 +01:00
672798e711
Populate post data from apub
2020-03-19 17:27:13 +01:00
nutomic
875ed79f3f
Merge pull request 'Update to latest activitystreams' ( #1 ) from asonix/lemmy:federation into federation
2020-03-19 01:23:15 +00:00
20a06ce3f2
Merge branch 'federation' of https://yerbamate.dev/nutomic/lemmy into federation
2020-03-18 20:16:40 -05:00
cfe0d9c9c2
Upgraded to latest activitystreams
2020-03-18 20:16:17 -05:00
33cce05300
Merge branch 'master' into federation
2020-03-18 22:51:34 +01:00
390b204272
Rewrite federation settings
2020-03-18 22:09:00 +01:00
bd030470b1
Read remote nodeinfo before doing anything
2020-03-18 16:08:08 +01:00
5043a52b88
Serve post data in apub format, some cleanup
2020-03-16 19:19:04 +01:00
05735b31c0
Remove boilerplate code
2020-03-16 18:30:25 +01:00
8ebcc7ac02
Implemented basics for post federation, plus a bunch of other stuff
2020-03-14 22:03:05 +01:00
5896a9d251
Move apub related code from websocket into api package
2020-03-14 13:15:23 +01:00
b01f4f75d6
WIP: federate posts between instances
2020-03-14 01:05:42 +01:00
8f67a3c634
Cleanup gitignore and dockerignore files
2020-03-12 20:25:14 +01:00
063811cb60
Merge branch 'master' into federation
2020-03-12 12:34:37 +01:00
27c07f1f84
Federate follower count, use string id for community
2020-03-12 03:35:32 +01:00
54172bd322
updated to activitystreams 0.4.0-alpha.3
2020-03-12 01:01:25 +01:00
8867fa1d52
use urls for id again, more comments
2020-03-11 18:26:58 +01:00
18be8b10f5
improved community federation (wip)
2020-03-11 12:29:10 +01:00
34a827a270
comment
2020-03-05 16:02:53 +01:00
91ae9a9d49
Revert "pull in activitypub library"
...
This reverts commit a52a954eb4
.
2020-03-05 11:32:29 +01:00
1f29e91796
Various minor federation improvements
2020-02-29 18:38:47 +01:00
7cdf167e4b
pull in activitypub library
2020-02-29 12:42:44 +01:00
b854d8f3a0
Some federation improvements
2020-02-29 03:11:39 +01:00
f9443dfbd3
Merge branch 'master' into federation
2020-02-29 00:47:37 +01:00
1d824ee293
Merge branch 'dev' into federation
2020-02-10 11:52:32 -05:00
8130535af4
Merge branch 'dev' into federation
2020-02-07 12:34:14 -05:00
f247b28262
Merge branch 'dev' into federation
2020-02-05 16:57:20 -05:00
ac4a62636b
Merge branch 'dev' into federation
2020-02-05 14:19:25 -05:00
d932acad16
Merge branch 'federation' into dev_1
2020-02-05 12:51:03 -05:00
eaf548b5db
Merge branch 'master' into federation
2020-01-14 16:30:54 +01:00
35489a706b
Faster Docker build directly on host
2020-01-10 19:04:58 +01:00
e09a035373
Merge branch 'master' into federation
2020-01-02 19:22:23 +01:00
581f36d6ef
Implementing very basic federation including test setup
2019-12-30 13:31:54 +01:00