Commit graph

4538 commits

Author SHA1 Message Date
af4d008ce4
Minor CI improvements ()
* 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. () 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 () 2023-12-14 07:26:01 -05:00
4a55d4f871
Quick fix for Peertube federation (fixes ) ()
* Quick fix for Peertube federation (fixes )

* prettier

* apub assets should be included in slow check paths
2023-12-14 07:25:47 -05:00
phiresky
7353be5b68
federate-less-noisy () 2023-12-14 07:25:04 -05:00
dullbananas
32afc32bc0
Correctly combine sorts in post view cursor-based pagination ()
* 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 ()
* 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 ()
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 () 2023-12-13 07:05:13 -05:00
dullbananas
5e589004a5
Add test for fixed deleted post filter ()
* 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 () 2023-12-13 10:52:28 +01:00
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 9389e936490ec1a82e5a51a61f61a576201479a8.

* 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