Commit graph

5290 commits

Author SHA1 Message Date
renovate[bot]
34672ab21b
chore(deps): update rust crate anyhow to v1.0.95 (#5294)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 21:16:18 -05:00
renovate[bot]
83bf60571e
chore(deps): update docker (#5293)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 20:38:21 -05:00
Richard Schwab
f76322e3f5
Reduce false positives in URL blocklist to reduce scunthorpe problem by matching at word boundaries. (#5282)
This addresses an issue brought up on matrix where blocking rt.com resulted in links to deviantart.com getting blocked.
2024-12-27 12:53:23 -05:00
Dessalines
76034f058d
Cleaning up oauth providers conversion. (#5280)
* Cleaning up oauth providers conversion.

* Use into_iter
2024-12-27 12:52:05 -05:00
4bc4876f31 Remove pointless index. 2024-12-24 14:30:34 -05:00
8d856a0917 Merge remote-tracking branch 'origin/main' into combined_profile 2024-12-24 14:25:38 -05:00
Dessalines
cc190aefdf
Use codeberg pictrs mirror to fix CI. (#5286) 2024-12-24 14:24:12 -05:00
bd5210aed0 Merge remote-tracking branch 'origin/main' into combined_profile 2024-12-23 14:59:09 -05:00
7585aac446
Fix startup errors, add unit test for scheduled task errors (fixes #5209) (#5269)
* Fix startup errors, add ci check (fixes #5209)

* normal unit test

* cleanup

* shear

* remove serial

* migration
2024-12-20 19:21:09 -05:00
Dessalines
6015ef045d
Running cargo-features-manager prune. (#5274)
- Context #5273
2024-12-20 23:20:16 +01:00
776c5007a1 Remove pointless post_tags types. 2024-12-19 18:07:59 -05:00
9a0e050ee6 Remove saved_only test. 2024-12-19 18:03:57 -05:00
cfd302dc1d Fixing duped trigger. 2024-12-19 17:58:18 -05:00
a1792bb16e Merge remote-tracking branch 'origin/main' into combined_profile 2024-12-19 17:53:24 -05:00
0b514c5b92 Merge branch 'combined_tables_2' into combined_profile 2024-12-19 17:44:07 -05:00
Dessalines
9d3a0cef56
Adding report_combined table. (#5231)
* Combined tables try 2

* Finishing up combined report table.

* Fix ts optionals.

* Adding tests, triggers, and history updates for report_combined.

* Adding profile.

* Add cursor pagination to report_combined view (#5244)

* add pagination cursor

* store timestamp instead of id in cursor (partial)

* Revert "store timestamp instead of id in cursor (partial)"

This reverts commit 89359dde4b.

* use paginated query builder

* Fixing migration and paged API.

* Using dullbananas trigger procedure

* Removing pointless list routes, reorganizing tests.

* Fixing column XOR check.

* Forgot to remove list report actions.

* Cleanup.

* Use internal tagging.

* Fixing api tests.

* Adding a few indexes.

* Fixing migration name.

* Fixing unique constraints.

* Addressing PR comments.

* Fixing api tests.

* Update crates/db_views/src/report_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Update crates/db_views/src/report_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Update crates/db_views/src/report_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Fixing import and fmt.

* Fixing null types in postgres.

* Comment out err.

* Addressing PR comments.

* Removing serialization

---------

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-12-19 17:22:31 -05:00
154cea9366 Merge remote-tracking branch 'origin/main' into combined_tables_2 2024-12-19 16:30:15 -05:00
Integral
8b78ddeb68
refactor: avoid using format! when String creation is unnecessary (#5268) 2024-12-19 15:42:01 -05:00
9cb28e797d Finishing up tests. 2024-12-19 09:56:07 -05:00
48283a1ed9 Adding tests for person, post, and community. 2024-12-18 22:57:59 -05:00
389083418c Filters done, working on tests. 2024-12-18 17:47:11 -05:00
phiresky
a2a5cb091a
Community post tags (part 1) (#4997)
* partial post tags implementation

* fixes

* fix lints

* schema fix

* chore: restructure / rename tag tables

* chore: fix post view tests

* format

* lint

* expect used

* chore: update code to maybe final version

* add ts-rs optionals

* remove error context

* clippy
2024-12-18 14:54:35 +01:00
d346890b1f
Increase metadata fetch limit to 1 MB (fixes #5208) (#5266) 2024-12-17 10:01:53 -05:00
4586947910 Adding search combined view, need to write tests yet. 2024-12-16 14:56:48 -05:00
fb1f2ff174 Merge branch 'combined_tables_2' into search_combined 2024-12-13 11:14:29 -05:00
3721067cce Moving db_views_actor and _moderator into db_views.
- This is necessary because the combined views use both, and that
  separation was arbitrary to begin with. db_schema has no such crate
  separation.
2024-12-13 11:13:21 -05:00
b4ce1d9121 Removing serialization 2024-12-13 08:50:14 -05:00
af543cc70b Merge branch 'combined_tables_2' into combined_profile 2024-12-13 08:43:45 -05:00
ae9da4da69 Merge remote-tracking branch 'origin/main' into combined_tables_2 2024-12-12 19:23:20 -05:00
7c962d63fb Removing serialization 2024-12-12 19:20:31 -05:00
031dc2607e Fix 2024-12-12 19:13:51 -05:00
dada964df7 Starting to work on search combined. 2024-12-12 19:13:31 -05:00
17d2de8691 Merge branch 'combined_modlog' into combined_inbox 2024-12-12 17:29:33 -05:00
942da64f07 Merge remote-tracking branch 'origin/main' into combined_modlog 2024-12-12 17:25:02 -05:00
8d91543a13
Allow admins to view deleted users (fixes #5249) (#5258)
* Allow admins to view deleted users (fixes #5249)

* remove check
2024-12-12 10:06:38 -05:00
6a9f924d20
More test coverage for user deletion (#5259) 2024-12-12 10:03:55 -05:00
c72d5e88d5 Addressing PR comments. 2024-12-12 09:46:16 -05:00
1e6b3fbf27 Merge remote-tracking branch 'origin/main' into combined_tables_2 2024-12-12 09:39:10 -05:00
2467a0af12
Consider remote instance as dead if it returns any status 4xx or 5xx (#5256)
* Consider remote instance as dead if it returns any status 4xx or 5xx (ref #3134)

* remove dbg
2024-12-12 09:38:16 -05:00
aa9c1404e5 Fixing clippy. 2024-12-12 09:27:12 -05:00
216d08959b Fixing cargo shear. 2024-12-11 23:02:09 -05:00
ec3dcb7452 Running fmt. 2024-12-11 22:50:34 -05:00
37aa20057c Fixing sql_format. 2024-12-11 22:22:55 -05:00
c8a2652e3f Using assert_length 2024-12-11 22:16:51 -05:00
41cfdca1cf Finishing up inbox. 2024-12-11 22:12:56 -05:00
05f218d53c Most of the bulk work done, need to add tests yet. 2024-12-11 15:06:08 -05:00
f133079f0b Merge branch 'post_body_mentions' into combined_inbox 2024-12-10 14:33:28 -05:00
8a5daeec97
Only accept database connection by uri (#5254)
* Only accept database connection by uri

* lint

* fix docker configs
2024-12-10 10:15:54 -05:00
b3b8efdbc9 Updating pnpm 2024-12-09 22:10:29 -05:00
6318cac3f0 Upgrading package.json deps. 2024-12-09 22:09:34 -05:00