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 4bbac5ce4a
.
* Revert "local_subscribers test"
This reverts commit 735107e1f7
.
* 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