Commit graph

4975 commits

Author SHA1 Message Date
Dessalines
93d123b46e
Fixing metadata endpoint. () 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 ()
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 ()
* 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 ()
* Make db queries for GET /api/v3/site in parallel (ref )

* 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 () 2023-12-12 10:58:22 -05:00
c7ee53026f
Upgrade dependencies ()
* Upgrade dependencies

* clippy
2023-12-12 08:56:33 -05:00
b2ae69f96c
Set explicit limit for getPosts/getComments in tests ()
* Set explicit limit for getPosts/getComments in tests

* pretier
2023-12-12 08:54:54 -05:00
95130370f0
Add CI check for ignored files ()
* 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 ()
* Show federated posts on user profile. Fixes 

* 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 ) ()
* Dont allow blocking local instance (fixes )

* use localuserview
2023-12-11 14:35:53 -05:00
cef3f220a2
Make command line options consistent () 2023-12-11 09:39:18 -05:00
Benjamin Barbeau
60849355db
Add voters to active users ()
* 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 ()
* 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 ()
* 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 ()
* Revert "Some changes to help debug auth problems on lemmy.ml ()"

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 () 2023-12-05 11:19:12 -05:00
a5386187e3
Enable missing code for prometheus actix-web stats ()
* 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 ()
* 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 ) () 2023-12-01 09:16:55 -05:00
809fc05cb3
Only allow distinguishing own comments (fixes ) () 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. () 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. () 2023-11-29 09:58:35 -05:00
Dessalines
86990d5138
Registrations and Reports should sort by New when viewing unresolved / unread. ()
- Fixes 
2023-11-29 11:08:23 +01:00
Dessalines
23b266ec12
Upgrade deps, fix issue with wrong diesel-async in Cargo.lock ()
Co-authored-by: Nutomic <me@nutomic.com>
2023-11-29 11:06:34 +01:00
Dessalines
a986db1a00
Fixing rust-analyzer suggestions on rss feeds. ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* Remove pictrs config section `old_db` (ref )

* ci

* remove cargo config comment

* ci

* Revert "remove cargo config comment"

This reverts commit 9389e93649.

* rename .cargo to .cargo_home
2023-11-24 11:26:21 -05:00
7d489f1e3f
Upgrade pictrs to 0.5.0-beta.2 ()
* 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. ()
* 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 ()
* Setting rank column defaults to a small number. Fixes 

* Fixing tests.
2023-11-23 20:39:46 -05:00
26297b4035
Users can view their own posts after removal (fixes ) () 2023-11-23 09:47:49 -05:00
cafeb14f1c
Add API tests for purge user and purge post ()
* 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 ) ()
* Fix remote community posts appearing in local listing (fixes )

* fmt

* fix typo
2023-11-22 09:41:52 -05:00
375e232217
Prevent purged user getting refetched from home instance (fixes ) () 2023-11-22 09:36:20 -05:00
Dessalines
9d4d6ce881
Removing yarn-error.log () 2023-11-22 09:34:15 -05:00
Dessalines
3e1f7f2efa
Adding creator_is_admin to PersonView, CommentView, and PostView. ()
* 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 ()
* Fixing issue with mods not being able to view reports. Fixes 

* Addressing PR comments.
2023-11-21 16:33:49 +01:00
7ba1d98915
Prevent random test failure () 2023-11-21 10:08:19 -05:00
49377c195e
Fix deleted posts so they can only be seen by creator () 2023-11-21 08:59:47 -05:00