Commit graph

4969 commits

Author SHA1 Message Date
2190725a78 Version 0.19.6-beta.13 2024-10-29 12:14:20 -04:00
Dessalines
36671db362 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-10-29 12:10:44 -04:00
adb1eb5f71 Version 0.19.6-beta.11 2024-10-28 16:06:58 +01:00
Sander Saarend
c3a81bffb9 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-10-28 16:04:56 +01:00
Dessalines
ec1c638ed6 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-10-28 16:04:41 +01:00
026d385e69 Version 0.19.6-beta.10 2024-10-21 10:52:11 +02:00
1b91d9828b Revert "Adding an image_details table to store image dimensions. (#4704)"
This reverts commit 6d8d23130d.
2024-10-21 10:49:46 +02:00
dc62eb5fc6 Revert "Adding ability to restore content on user unban. (#4845)"
This reverts commit 76728776fd.
2024-10-21 10:49:46 +02:00
aa4b91e0fc Revert "Always save remote image data (#4875)"
This reverts commit 9b5a9ee7be.
2024-10-21 10:49:46 +02:00
3a65d0490f Revert "Exponential controversy rank (#4872)"
This reverts commit fd58b4f809.
2024-10-21 10:49:46 +02:00
770e030982 Revert "Adding a URL max length lemmy error. (#4960)"
This reverts commit 33fd31754a.
2024-10-21 10:49:45 +02:00
1b0d02fd80 Remove join to image_details in post_view.rs 2024-10-18 15:46:26 +02:00
e6242ee79e Version 0.19.6-beta.9-no-triggers 2024-10-16 10:03:31 +02:00
643dd619eb Revert "Use trigger to generate apub URL in insert instead of update, and fix query planner options not being set when TLS is disabled (#4797)"
This reverts commit 78702b59fd.
2024-10-16 09:59:21 +02:00
0ba0d0f9b3 Version 0.19.6-beta.9 2024-10-02 10:20:41 +02:00
Dessalines
7d0c0e3a42 Fixing woodpecker warnings 1. (#5011) 2024-10-02 10:19:12 +02:00
c1874cde7b Version 0.19.6-beta.8 2024-10-01 18:54:25 -04:00
ac89339724 Attempt to fix test for fetching deeply nested comment (#5072)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-01 15:56:28 +02:00
1ba848f99d 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-10-01 10:10:14 +02:00
Sander Saarend
9b5a9ee7be 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-10-01 10:04:17 +02:00
a67cfd2348 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-10-01 10:03:59 +02:00
Dessalines
9a77b327f7 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-10-01 10:02:58 +02:00
Dessalines
5093491b53 Increase bio max length from 300 to 1000. (#5014)
- Fixes #4972
2024-10-01 10:02:26 +02:00
Sander Saarend
2eab4fa267 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-10-01 10:02:11 +02:00
6840a5e367 Add category to RSS feeds (fixes #3446) (#5030) 2024-09-20 10:06:41 +02:00
Dessalines
76728776fd 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-20 10:06:15 +02:00
Dessalines
a8b37977c7 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-20 10:06:06 +02:00
Carlos Cabello
21e24dc96d 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:55 +02:00
d57d9f6fe1
If id of fetched object doesnt match url, refetch it (fixes #4964) (#5022) 2024-09-13 11:59:25 -04:00
33df7eaf18 Merge branch 'main' into release/v0.19 2024-09-10 12:21:01 +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