1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-01-18 20:40:14 +00:00
Commit graph

4633 commits

Author SHA1 Message Date
Dessalines 58258414cc Version 0.19.0-rc.6 2023-11-22 09:59:04 -05:00
Nutomic 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
Nutomic 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
Nutomic 7ba1d98915
Prevent random test failure () 2023-11-21 10:08:19 -05:00
Nutomic 49377c195e
Fix deleted posts so they can only be seen by creator () 2023-11-21 08:59:47 -05:00
dullbananas 30f7135f32
Use rust 1.74.0 in CI and move clippy lints to Cargo.toml ()
* 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
Nutomic 62357f4444
Fix banning of remote user (fixes ) () 2023-11-21 08:44:55 -05:00
Dessalines 82b30b5467
Adding Selectable and diesel postgres backend check. () 2023-11-21 08:42:28 -05:00
cetra3 1c03a86c17
Upgrade activitypub to 0.5.0-beta.5 ()
* Remove anyhow test

* Update lock

* Fix lints hopefully!
2023-11-21 10:26:12 +01:00
Nutomic f786df151f
Include instance blocks in settings export () 2023-11-17 21:59:15 -05:00
Nutomic 25450ea090
Fix following local communities stuck on pending (fixes ) ()
* Fix following local communities stuck on pending (fixes )

* 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 ()
* Add upload timeout to PictrsConfig

* Bad space 🤔

* Update PictrsConfig upload timeout to include units.
2023-11-17 04:01:32 -05:00
Nutomic 525359f7c5
Add api tests for image endpoints ()
* Add api tests for image endpoints (fixes )

* 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
Dessalines 7cb20200d8 Version 0.19.0-rc.5 2023-11-16 23:30:09 -05:00
Nutomic fc56d0aa05
Use result instead of unwrap in apub tests () 2023-11-16 22:51:33 -05:00
SleeplessOne1917 e573010202
Fix report count endpoint error () 2023-11-16 08:50:15 -05:00
Nutomic a00313e680
Merge /site_inbox into /inbox, remove unique constraint for inboxes ()
* Merge /site_inbox into /inbox (fixes )

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 ()

dont change individual inboxes to shared inbox

Dont send comment reply to user who has community blocked. Fixes  ()

* Dont send comment reply to user who has community blocked. Fixes 

* 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. () 2023-11-16 14:19:31 +01:00
Dessalines e2bf2ce530
Removing show_new_post_notifs. () 2023-11-15 10:20:01 +01:00
Nutomic 9a94a86363
Fix cors wildcard (ref ) ()
* Fix cors wildcard (ref )

* cleanup

* clippy
2023-11-14 09:39:13 -05:00
Dessalines 28c30cc502
Adding skip_serializing_none to federation state. () 2023-11-14 08:20:44 -05:00
Dessalines 907e0ce726
Removing one other cache_remote_images. () 2023-11-14 11:09:35 +01:00
Nutomic 1d23df37d8
Rename cache_remote_images setting to cache_external_link_previews (ref ) () 2023-11-13 09:19:09 -05:00
dullbananas 8e2cbc9a0f
Remove id column and use different primary key on some tables ()
* 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 ()

* Also order reports by oldest first (ref ) ()

* Support signed fetch for federation (fixes ) ()

* Support signed fetch for federation (fixes )

* taplo

* add federation queue state to get_federated_instances api ()

* 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  ()

* Add UI setting for collapsing bot comments. Fixes 

* Fixing clippy check.

* Only keep sent and received activities for 7 days (fixes , fixes ) ()

* Only check auth secure on release mode. ()

* Only check auth secure on release mode.

* Fixing wrong js-client.

* Adding is_debug_mode var.

* Fixing the desktop image on the README. ()

* 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 ()
* 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 ()
* Dont send comment reply to user who has community blocked. Fixes 

* Adding source instance block check.

* Adding api test.

* Addressing PR comments.
2023-11-09 12:03:25 +01:00
Nutomic aaaf17486d
Dont create auth cookie in backend () 2023-11-08 07:55:09 -05:00
Dessalines 7a30a75905
Fixing the desktop image on the README. () 2023-11-07 11:05:12 +01:00
Dessalines 98ed0e51cc
Only check auth secure on release mode. ()
* Only check auth secure on release mode.

* Fixing wrong js-client.

* Adding is_debug_mode var.
2023-11-07 11:03:13 +01:00
Nutomic cb01427dcf
Only keep sent and received activities for 7 days (fixes , fixes ) () 2023-11-06 16:17:53 -05:00
Dessalines 97a4fb9a72
Add UI setting for collapsing bot comments. Fixes ()
* Add UI setting for collapsing bot comments. Fixes 

* Fixing clippy check.
2023-11-06 16:09:12 -05:00
phiresky b9b65c9c18
add federation queue state to get_federated_instances api ()
* 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
Nutomic 8c85f35b19
Support signed fetch for federation (fixes ) ()
* Support signed fetch for federation (fixes )

* taplo
2023-11-06 16:02:01 -05:00
Nutomic cf788334aa
Also order reports by oldest first (ref ) () 2023-11-06 05:29:30 -05:00
Dessalines 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. () 2023-11-03 14:41:00 +01:00
Nutomic 1e59e7ab47
Show oldest registration applications first (ref ) ()
* Show oldest registration applications first (ref )

* fix tests
2023-11-02 07:38:46 -04:00
Nutomic df53d2a0e8
Change logout endpoint to return SuccessResponse () 2023-10-31 08:41:52 -04:00
Nutomic 9007d49324
Remove unused deps ()
* 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. ()
* 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 

* Fixing SQL format.

* Adding 2 to bias the positive scores.
2023-10-30 10:47:57 +01:00
Nutomic 08739e2925
Move usage of env::var to lemmy_utils, simplify db init (ref ) () 2023-10-25 11:34:38 -04:00
Dessalines b63836b31b
Add link to githubs new issue button for security advisories. Fixes () 2023-10-25 16:50:56 +02:00
Dessalines 1b751a8cac
Adding cors_origin to settings. Fixes ()
* Adding cors_origin to settings. Fixes 

* 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 ()
* Dont allow bots to vote. Fixes 

* Removing pointless function.
2023-10-25 10:14:12 -04:00
Nutomic 568233b062
Resolve federated objects from other instances via redirect (fixes ) ()
* Resolve federated objects from other instances via redirect (fixes )

* 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
Nutomic 45bed71c36
Include prometheus in default build, remove build feature (fixes ) ()
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. ()
- Also fixes the unread count calls for CommentReply and PrivateMessage.
- Fixes 
2023-10-25 12:01:40 +02:00