Commit Graph

838 Commits (ab4e94aea5bd9d34cbcddf017339131047e75344)

Author SHA1 Message Date
dull b ab4e94aea5 Add GetConn trait 2023-07-05 02:05:10 +00:00
dull b fb147b778b Start over 2023-07-05 01:51:17 +00:00
dull b 7aeeec6810 Attempt to create custom GetConn and RunQueryDsl traits 2023-07-05 01:37:55 +00:00
dullbananas d9e0269774
Merge branch 'main' into db-traits-refactor 2023-07-04 07:56:32 -07:00
Louis GERARD 85dab149a9
fix(posts/comments/search): return error on invalid community name (#3418) 2023-07-04 13:04:38 +02:00
Josephos cdc5b47886
Improved validation of display names (Fixes #3436) (#3437)
* Fixed validation of display names

Fixed validation of display names: reject names beginning with invisible unicode characters.

* Formatting

Formatting fix.

* Expanded list of forbidden Unicode characters. Validation now checks for disallowed characters anywhere in the name.

* Formatting

* Added a comment detailing source of the list of invisible chars.
2023-07-04 12:41:58 +02:00
Dessalines 8bcf2ea7c9
Fixing clippy. (#3471) 2023-07-04 12:15:27 +02:00
Piotr Juszczyk bf62fbe644
Remove not needed anymore http-signature-normalization-actix dependency (#3458) 2023-07-04 12:14:37 +02:00
dull b 9ec77d041e Fix routes::feeds 2023-07-04 04:37:41 +00:00
dull b 0613cf8384 Remove unused perma deleted text 2023-07-04 04:17:00 +00:00
dull b 07bad4c4c3 Fix get_comment_parent_creator 2023-07-04 03:32:59 +00:00
dull b b375b693be Fix fetch_local_site_data 2023-07-04 03:25:02 +00:00
dull b 53a1837f38 Revert "Revert "Fix apub::api::resolve_object""
This reverts commit 96ed8bf2e9.
2023-07-04 03:08:43 +00:00
dull b 017ffd7ef9 Revert "Revert "Fix apub::activities::block""
This reverts commit 2ee206af7c.
2023-07-04 03:07:49 +00:00
dull b d74374b8fd Revert "Revert "Fix api_common::utils""
This reverts commit f740f115e5.
2023-07-04 03:07:43 +00:00
dull b f740f115e5 Revert "Fix api_common::utils"
This reverts commit 7dc73de613.
2023-07-04 02:56:54 +00:00
dull b 2ee206af7c Revert "Fix apub::activities::block"
This reverts commit 3b02389abd.
2023-07-04 02:56:30 +00:00
dull b 96ed8bf2e9 Revert "Fix apub::api::resolve_object"
This reverts commit 3e4059aabb.
2023-07-04 02:56:03 +00:00
dull b 0a8d1f8caf Revert "Fix some things"
This reverts commit 2bf8574bc8.
2023-07-04 02:54:33 +00:00
dull b 2bf8574bc8 Fix some things 2023-07-04 02:54:04 +00:00
dull b 3e4059aabb Fix apub::api::resolve_object 2023-07-04 02:18:49 +00:00
dull b 3b02389abd Fix apub::activities::block 2023-07-04 02:17:07 +00:00
dull b 7dc73de613 Fix api_common::utils 2023-07-04 02:11:01 +00:00
dull b 29b00d7ae8 Merge remote-tracking branch 'upstream/main' into db-traits-refactor 2023-07-03 23:16:52 +00:00
Dessalines f0e487f18a
300 comment limit. (#3306)
* 300 comment limit.

* Another fix.
2023-07-03 18:02:57 -04:00
Dessalines 7a04971ecd Version 0.18.1-rc.9 2023-07-03 17:16:48 -04:00
dull b 350fba29a8 fix 2023-07-03 18:42:04 +00:00
dull b 50ab303c42 Merge remote-tracking branch 'upstream/main' into db-traits-refactor 2023-07-03 18:37:42 +00:00
dull b 2c47ac35a0 fix 2023-07-03 18:19:50 +00:00
JP Moresmau bbca6ef6dc
Do not decrement comment score twice when removing then deleting. (#3196)
Fixes #3004

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 14:13:53 -04:00
dull b 8f46003ebc Merge remote-tracking branch 'upstream/main' into db-traits-refactor 2023-07-03 18:02:53 +00:00
perillamint 696cca4ce4
Remove excessive content_type header configuration (#3470) 2023-07-03 13:43:45 -04:00
dullbananas 243b777384
Merge branch 'main' into db-traits-refactor 2023-07-03 10:16:40 -07:00
Dessalines 935b0bf048
Adding rest of community sorts. Fixes #3374 (#3376)
* Adding rest of community sorts. Fixes #3374

* Addressing PR comments.
2023-07-03 13:09:15 -04:00
dullbananas 37bf1843c9
Merge branch 'main' into db-traits-refactor 2023-07-03 09:42:47 -07:00
Nutomic e1494d4683
Dont compare db string errors (fixes #1393) (#3424)
* Dont compare db string errors (fixes #1393)

* cargo fmt

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 11:59:49 -04:00
Simon Bordeyne b8ee9315bc
Add Open links in new tab setting (#3318)
* Add Open links in new tab setting

* reorder because it fixes tests ?
2023-07-03 11:10:25 -04:00
Nutomic cb91eedd24
Use serde(skip) instead of skip_serializing, add placeholder values (#3362)
* Use serde(skip) instead of skip_serializing

The latter breaks lemmy_crawler as the field is not included in
the Lemmy API, but is required when attempting to parse API responses.
Should only use serde(skip) to avoid this problem

* use option

* add placeholders

* no unwrap
2023-07-03 15:14:01 +02:00
Nutomic 6405761891
Mark follow as pending when subscribing to remote community (fixes #3384) (#3406) 2023-07-03 12:03:20 +02:00
Felix Ableitner fc60b82f82 Fix formatting for latest nightly (#ref 3467) 2023-07-03 11:45:53 +02:00
Nutomic 3578dab67f
Remove PerformApub trait (#3423)
* Remove PerformApub trait

This is completely useless now that websocket is gone. In the future
I also plan to remove Perform and PerformCrud traits, but it will be
difficult to do that while still compiling crates in parallel.

* params need to use query
2023-07-03 11:01:41 +02:00
dull b 0957e2b319 Fix stuff 2023-07-01 04:11:27 +00:00
dull b 0d9db43b0a Remove more `&mut *` 2023-07-01 03:26:24 +00:00
dull b 5db6b556cc DbConn trait 2023-07-01 03:04:38 +00:00
dull b 6846210074 Merge remote-tracking branch 'upstream/main' into db-traits-refactor 2023-06-30 19:17:13 +00:00
dull b 106c315d47 Use DbConn for CaptchaAnswer methods 2023-06-30 18:55:33 +00:00
dull b cc1a725c8a Revert "Get rid of repetitive `&mut *context.conn().await?`"
This reverts commit d2c6263ea1.
2023-06-30 18:24:06 +00:00
dull b c1c17ab63b Revert "Add blank lines under each line with `conn =`"
This reverts commit 773a6d3beb.
2023-06-30 18:23:40 +00:00
dull b 3021e2c9b8 Revert "Fix style mistakes (partial)"
This reverts commit 48a033b87f.
2023-06-30 18:23:03 +00:00
dull b 48a033b87f Fix style mistakes (partial) 2023-06-30 18:21:10 +00:00