Commit graph

577 commits

Author SHA1 Message Date
Dessalines
d784c17af5 Adding back in transaction. 2022-08-17 17:05:07 -04:00
Dessalines
763424d61e Some fixes for all / missing user languages. 2022-08-15 12:51:25 -04:00
Felix Ableitner
b8ef402448 proper test for user language queries 2022-08-01 21:16:51 +02:00
Felix Ableitner
f713fcade0 Merge branch 'main' into language-tagging 2022-08-01 20:29:49 +02:00
Dessalines
9c3efe32e7
First pass at adding comment trees. (#2362)
* First pass at adding comment trees.

- Extracted comment replies into its own table.
- Added ltree column to comment
- Added parent_id param to GetComments to fetch a tree branch
- No paging / limiting yet

* Adding child_count to comment_aggregates.

* Adding parent comment update counts

* Fix unit tests.

* Comment tree paging mostly done.

* Fix clippy

* Fix drone tests wrong postgres version.

* Fix unit tests.

* Add back in delete in unit test.

* Add postgres upgrade script.

* Fixing some PR comments.

* Move update ltree into Comment::create

* Updating based on comments.

* Fix send soft fail.
2022-07-30 05:55:59 +02:00
Felix Ableitner
f10c575113 Merge branch 'main' into language-tagging 2022-07-29 22:19:36 +02:00
Nutomic
becb8b4f66
Update apub examples to remove to field (ref #2380) (#2382) 2022-07-29 13:30:38 -04:00
Nutomic
a85334c675
Handle Like, Undo/Like activities from Mastodon, add tests (fixes #2378) (#2380) 2022-07-29 15:32:12 +02:00
Dessalines
8bfeb4b627
Fix a few form options for diesel. Fixes #2287 (#2376)
* Fix a few form options for diesel. Fixes #2287

* Adding TODO comment.
2022-07-29 15:04:21 +02:00
Dessalines
3b86e15399
Remove listing type community. Fixes #2361 (#2377)
* Remove listing type community. Fixes #2361

* Have ListingType::All be the default
2022-07-29 10:57:39 +00:00
Felix Ableitner
4546350dd2 Merge branch 'main' into language-tagging 2022-07-28 23:21:12 +02:00
Felix Ableitner
3d168e0c89 update user languages in single transaction 2022-07-28 23:14:29 +02:00
Nutomic
b78826c2c8
Dont allow login if account is banned or deleted (fixes #2372) (#2374) 2022-07-28 23:14:07 +02:00
Dessalines
c62671116c
Send websocket message on accepted follow. Fixes #2369 (#2375) 2022-07-28 15:49:26 +00:00
Dessalines
456e0d9063 Fix formatting. 2022-07-28 11:38:51 -04:00
Dessalines
d08604c5d7 Clearing the current languages. 2022-07-28 10:29:33 -04:00
Nutomic
b9f1fc0518
Fix panics in search_by_apub_id() (fixes #2371) (#2373) 2022-07-27 17:03:44 -04:00
Nutomic
eee8f467b5
Fix follow being stuck as pending after accept (#2366)
* Fix follow being stuck as pending after accept

* fix api test
2022-07-20 14:10:29 +00:00
Dessalines
0e427e1b28 Fixing up some table and join issues. 2022-07-19 12:27:25 -04:00
Nutomic
16fe149a6d
Change config pictrs key name (#2360) 2022-07-14 14:25:10 -04:00
Felix Ableitner
d64c517841 Merge branch 'main' into language-tagging 2022-07-13 12:53:24 +02:00
Felix Ableitner
da3e29038f Remove unnecessary clones in db view converteres 2022-07-13 12:42:35 +02:00
Felix Ableitner
624f4dfbab add code for local_user_discussion_language_view 2022-07-13 12:38:19 +02:00
Nutomic
d0a3d99636
Config changes, remove unused image purge function (#2343)
* Throw error if old pictrs config item is used, make api key optional

* use doku url feature

* fix doku version

* fix clippy

* remove unused image purge function, remove config migration
2022-07-11 16:38:37 -04:00
Nutomic
63fff96275
Fix problem where actors can have empty public key (fixes #2347) (#2348) 2022-07-11 18:25:33 +00:00
Luna
e33736ae47
remove parking_lot (#2350) 2022-07-11 17:12:12 +00:00
Felix Ableitner
87f77e7030 add local_user_language table, other changes suggested in review 2022-07-11 13:06:06 +02:00
Felix Ableitner
61347e7ba2 Merge branch 'main' into language-tagging 2022-07-08 13:13:29 +02:00
Dessalines
67a34adf4b
Revert "Use correct url for activitystreams protocol context (#2326)" (#2351)
This reverts commit dc35ab9c2b.
2022-07-08 10:47:40 +00:00
Dessalines
ff026dc3ff
Adding check for requests with no id or name, adding max limit. (#2265)
* Adding check for requests with no id or name, adding max limit.

* Consolidating a few functions.

* Fix page min

* Adding more websocket rate limits.

* Add check to GetCommunity

* Use a default message rate limit check.

* Adding a page and limit checker

* Fix clippy

* Fix clippy again

* Adding check for requests with no id or name, adding max limit.

* Consolidating a few functions.

* Fix page min

* Adding more websocket rate limits.

* Add check to GetCommunity

* Use a default message rate limit check.

* Adding a page and limit checker

* Fix clippy

* Fix clippy again

* Fix limit request.

* Move checks to inside limit_and_offset

* Fixing API tests.

* Change NotFound diesel errors to QueryBuilderError
2022-07-08 10:21:33 +00:00
Nutomic
3ef812660c
Dont allow blocking admin (#2340) 2022-07-05 23:02:54 +00:00
Nutomic
b7a2677b4d
Be more explicit about returning deleted actors or not (#2335)
* Be more explicit about returning deleted actors or not

* simplify db queries
2022-07-05 17:40:44 -04:00
Felix Ableitner
967657b11b Merge branch 'main' into language-tagging 2022-06-29 11:37:11 +02:00
Nutomic
587a0de8f7
Specify minimum Rust version 1.57 (fixes #2333) (#2334)
* Specify minimum Rust version 1.57 (fixes #2333)

* use latest rust for clippy

* use rust 1.60 for clippy

* no add component

* use official rust docker

* comments
2022-06-28 17:44:55 -04:00
Dessalines
a745fa6f43
Remove update and read site config. Fixes #2306 (#2329)
* Remove update and read site config. Fixes #2306

* Removing lazy_static, removing Settings::get()
2022-06-22 20:24:54 +00:00
Dessalines
8af913f583
Don't create or initially follow a default community. Fixes #2317 (#2328)
* Don't create or initially follow a default community. Fixes #2317

* Fix unit tests.
2022-06-22 19:38:27 +00:00
Felix Ableitner
64ba6f3944 serde skip Language.id field 2022-06-22 21:37:36 +02:00
Felix Ableitner
34bca0309a update post_view 2022-06-22 21:37:36 +02:00
Felix Ableitner
553a29ba9e finish moving languages into db, it compiles 2022-06-22 21:37:36 +02:00
Felix Ableitner
9bf41100f8 Store languages directly in database 2022-06-22 21:37:36 +02:00
Felix Ableitner
ec1271c423 Implement test for PostView language query 2022-06-22 21:37:36 +02:00
Felix Ableitner
6d8494db36 Untangle PostView tests 2022-06-22 21:37:36 +02:00
Felix Ableitner
d3bf82ae23 Tag posts and comments with language (fixes #440) 2022-06-22 21:37:36 +02:00
Dessalines
40609549d8
Increase RSS fetch limit to 20. Fixes #2319 (#2327) 2022-06-22 12:30:09 +00:00
Dessalines
92d17639cd
Expose pending 2 (#2282)
* Exposing SubscribedType. Fixes #2281

* Fixing other subscribed fields.

* Fix federation tests

* Add comment about follower row.
2022-06-22 12:05:41 +00:00
Nutomic
dc35ab9c2b
Use correct url for activitystreams protocol context (#2326) 2022-06-21 15:27:10 -04:00
Nutomic
cd4d235171
Move setting http_fetch_retry_limit into federation block (#2314) 2022-06-14 01:20:30 -04:00
Dessalines
4e12e25c59
Adding admin purging of DB items and pictures. #904 #1331 (#1809)
* First pass at adding admin purge. #904 #1331

* Breaking out purge into 4 tables for the 4 purgeable types.

* Using CommunitySafe instead in view

* Fix db_schema features flags.

* Attempting to pass API key.

* Adding pictrs image purging

- Added pictrs_config block, for API_KEY
- Clear out image columns after purging

* Remove the remove_images field from a few of the purge API calls.

* Fix some suggestions by @nutomic.

* Add separate pictrs reqwest client.

* Update defaults.hjson

Co-authored-by: Nutomic <me@nutomic.com>
2022-06-13 19:15:04 +00:00
trwnh
5b7376512f
Fix: Use correctly parseable JSON-LD context (#2299)
* Fix: Use correctly parseable JSON-LD context

* Changed: Better ordering for context document

alphabetized properties

* Changed: Use xsd types instead of schema.org types

* Changed: use simple namespacing
2022-06-13 13:26:56 +00:00
Nutomic
fcaf7a084c
Upgrade activitypub_federation to 0.2.0, add setting federation.debug (#2300) 2022-06-08 11:45:39 -04:00