Dessalines
48f187188b
Show deleted and removed posts for profile views. Fixes #2624 ( #2729 )
...
* Show deleted and removed posts for profile views. Fixes #2624
* Only showing non-deleted/removed posts for creator.
* Add a admin or mod check to views, to show deleted and removed posts.
- Also removed the pointless "blanking" functions
* Fix clippy
* Make hidden posts comment clearer.
* Fixing federation tests.
* Fixing fmt.
2023-02-28 22:46:15 -05:00
d9e7f0100a
Dont upsert Instance row every apub fetch ( #2771 )
...
This is not necessary because the domain cant change, so we only
need to insert if no row exists for this domain.
Also fetch instance actor when parsing person, not only community
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-28 21:36:57 -05:00
f0e1627824
Ignore undetermined language when calculating post default language ( #2769 )
...
This will make it much more likely to successfully get a default,
as most users and communities have undetermined selected.
2023-03-01 01:49:31 +01:00
Dessalines
209c8a9185
Switch from bb8 to deadpool. Fixes #2765 ( #2768 )
...
* Switch from bb8 to deadpool. Fixes #2765
* Remove unecessary deadpool dependency.
* Ignoring nodeinfo test.
2023-02-28 22:45:37 +01:00
Dessalines
8c0c1628e0
Adding a vector indexing check to prevent panics. Fixes #2753 ( #2754 )
...
* Adding a vector indexing check to prevent panics. Fixes #2753
* Fixing for new clippy lint.
* Externalizing get_top_mod check. Adding get_first clippy lint
* Removing unit tests get(0)s
* Fixing some firsts manually
2023-02-28 12:34:50 +01:00
Dessalines
4c77c84b60
Cleaning up person_view sorts ( #2760 )
2023-02-24 13:33:54 +09:00
80571567e1
Add default attribute for webfinger properties ( fixes #2756 ) ( #2759 )
2023-02-23 09:51:33 -05:00
675353d4e9
Include type information with webfinger responses ( fixes #2037 ) ( #2746 )
...
So that it is easier to parse for other software
2023-02-22 11:25:26 +09:00
Dessalines
cd5c79527a
Fixing issue with saving site language. Fixes #2748 ( #2749 )
...
* Fixing issue with saving site language. Fixes #2748
* Add a warning to Site::read
2023-02-22 02:22:54 +01:00
a42f7271e6
Proper permission check for federated comment distinguish ( #2697 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-19 03:57:45 +09:00
62663a9f2e
Implement separate mod activities for feature, lock post ( #2716 )
...
* Implement separate mod activities for feature, lock post
Also includes collection for featured posts. Later we also need
to do the same for Comment.distinguished
* some changes
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-18 09:50:28 -05:00
8409e50f8c
Fix case in activitypub context (ref #2734 ) ( #2743 )
...
Should be camelCase.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-18 09:48:50 -05:00
Dessalines
1917e3d495
Separate comment distinguish ( #2740 )
...
* Combine prod and dev docker setups using build-arg
- Fixes #2603
* Dont use cache for release build.
* Separate comment distinguish into its own action.
- Fixes #2708
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-02-18 09:46:34 -05:00
Dessalines
3735c6fabf
Adding instance software and version. Fixes #2222 ( #2733 )
...
* Adding instance software and version. Fixes #2222
* Fix clippy.
* Fix clippy 2
* Fixing some more issues.
2023-02-18 09:36:12 -05:00
Dessalines
47f4aa3550
Fixing slow joins to post_read, post_saved, and comment_saved . ( #2738 )
...
- Fixes #2445
2023-02-18 09:35:35 -05:00
Dessalines
36aaa50644
Organize utils into separate files. Fixes #2295 ( #2736 )
...
* Organize utils into separate files. Fixes #2295
* Moving tests.
* Fix test.
* Fix test 2
2023-02-16 05:05:14 +01:00
Dessalines
8a27978ee1
Removing checking permissions when editing posts and comments. ( #2727 )
...
* Removing checking permissions when editing posts and comments. Fixes #2714
* Running cargo fmt again.
* Adding back in community ban checks.
2023-02-15 11:04:23 +09:00
Dessalines
956d0aa52f
Fixing updated form fields. Fixes #2724 ( #2725 )
...
* Fixing updated form fields. Fixes #2724
* Fix import.
2023-02-14 16:41:22 -05:00
Dessalines
9d7009c772
Only let top admin purge. Fixes #2731 ( #2732 )
2023-02-14 14:31:04 -05:00
25e98064b6
Fix writing of removeData
in apub context ( fixes #2734 ) ( #2735 )
2023-02-14 13:40:39 -05:00
Dessalines
ddb6268164
Adding a site option to email admins for new reports. ( #2730 )
...
- Fixes #2551
2023-02-15 00:57:08 +09:00
Dessalines
166854b37e
Sort community search by active_monthly by default. ( #2728 )
...
- Fixes #2678
2023-02-14 15:19:37 +01:00
3bb98fcc64
Fix post titles being cut off ( fixes #2718 ) ( #2720 )
...
I didnt notice that this limit would also apply to Lemmy and other
software which has the title field. So gonna change it to be
identical to db limit
2023-02-10 13:35:23 -05:00
3bfa8ab4ff
Improved error message when attempting to fetch non-local object ( fixes #2715 ) ( #2717 )
2023-02-08 14:45:29 -05:00
Kradyz
ab9b60e86d
Convert HTML from titles into markdown ( #2709 )
...
Co-authored-by: Kradyz <k@radiz.nl>
2023-02-07 03:27:17 +01:00
7c1a37d584
In apub post receive, check posting restricted to mods (ref #2702 ) ( #2704 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-05 12:31:09 -05:00
2891856b48
Fix docker federation setup ( #2706 )
2023-02-05 12:30:10 -05:00
eb78af9b02
Fix data fetching from Peertube ( fixes #2689 ) ( #2703 )
...
- Other platforms can support additional language tags. Treat those
as None instead of throwing error
- deserialize_skip_error was implemented incorrectly and failed on
array values (6d9682f4e6
)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-05 00:38:08 -05:00
Dessalines
ed95c61bca
Fixing admin application email subject. Fixes #2688 ( #2695 )
2023-02-03 09:24:19 -05:00
Dessalines
b1e121b5ba
Fixing person block views. Fixes #2693 ( #2694 )
2023-02-03 14:45:32 +01:00
a9905bf999
Updating translations.
2023-01-31 08:29:31 -05:00
Dessalines
a610211557
Fixing .drone.yml
( #2677 )
...
* Try to fix docker/drone plugin
* Trying to use one rust image.
* Fixing drone 1.
* Fixing drone 2.
* Add drone notify.
* Fixing drone 3.
* Fixing drone 4.
* Fix clippy.
* Remove uninlined format lint.
* Combine all cargo tasks
* Fixing drone 5.
* Fixing drone 6.
* Fixing drone 7.
* Fixing drone 8.
* Fixing drone 9.
* Fixing drone 10.
* Fixing drone 12.
* Fixing drone 13.
* Fixing drone 14.
* Fixing drone 15.
* Fixing drone 16.
* Fixing drone 17.
* Fixing drone 18.
* Fixing drone 19.
* Fixing drone 20.
* Fixing drone 21.
* Fixing drone 22.
* Fixing drone 23.
* Fixing drone 24.
* Fixing drone 25.
* Fixing drone 26.
* Fixing drone 27.
* Fixing drone 28.
* Fixing drone 29.
* Fixing drone 30.
* Fixing drone 31.
* Fixing drone 32.
* Fixing drone 33.
* Fixing drone 34.
* Fixing drone 35.
* Fixing drone 36.
* Fixing drone 37.
* Fixing drone 38.
* Fixing drone 39.
* Fixing drone 40.
* Fixing drone 41.
* Fixing drone 43.
* Fixing drone 44.
* Fixing drone 45.
* Last cleanup.
* Fixing drone 46.
* Separate ci steps (#2679 )
* separate ci steps
* fix 1
* add comments
* dont add rustfmt explicitly
* Revert "dont add rustfmt explicitly"
This reverts commit 358ce3302a134b7ac88d90a854079356995e9725.
* dont use all features for tests
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-01-30 14:17:24 -05:00
Dessalines
a8232fe3d6
Use join_all instead of try_join_all. Fixes #2673 ( #2674 )
...
* Use join_all instead of try_join_all. Fixes #2673
* Add note about closed connections.
2023-01-30 11:11:11 -05:00
Kradyz
c416e4ce14
Update message_id to comply with RFC 2822 ( #2668 )
...
The RFC 2822 format standard requires the message ID to be enclosed within angle brackets. If the standard is not followed, SpamAssassin deducts points from the e-mail.
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-30 11:10:51 -05:00
Dessalines
70c549dad8
Speeding up comment-ltree migration, fixing index creation. Fixes #2664 ( #2670 )
...
* Speeding up comment-ltree migration, fixing index creation. Fixes #2664
* Adding some logging lines, fixing for missing posts.
* Adding more postgres config
2023-01-23 09:59:25 -05:00
1eaf2c8a03
Add feature to embed pictrs in lemmy binary ( fixes #2627 ) ( #2633 )
...
* Add feature to embed pictrs in lemmy binary (fixes #2627 )
* Add pictrs config
* add protobuf
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-20 12:46:49 -05:00
7e3d3839b6
Post creation from Mastodon ( fixes #2590 ) ( #2651 )
...
* Post creation from Mastodon (fixes #2590 )
* better logic for page title
* add deserialize helper
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-01-20 12:43:23 -05:00
ceff2ec686
Use enum for registration mode setting ( #2604 )
...
* Use enum for registration mode setting
* fix tests
2023-01-05 01:42:30 +00:00
Dessalines
b7d5b37ac9
Fix historical post fetching. Fixes #2640 ( #2643 )
2023-01-04 14:58:11 +00:00
270f3b781a
Add documentation for using Lemmy API from Rust ( #2639 )
2023-01-03 03:23:41 -05:00
0d4cdb579c
Improve application question check ( #2628 )
...
The check was failing if only require_application was passed
and not application_question, despite application_question
being set in database.
2022-12-23 01:31:39 +00:00
9f52d4ae53
Fix user following ( #2623 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-19 10:55:26 -05:00
c3fbb7702f
Allow embedding Lemmy, fix setup error ( #2618 )
...
* Fix error during site creation due to empty LocalSiteRateLimit update
* Move main function into lib.rs, to allow calling from other crates
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-19 10:54:42 -05:00
Dessalines
76e0ab934f
Fixing missing forms, incorrect user discussion_languages ( #2580 )
...
* Fixing missing forms, incorrect user discussion_languages
* Add discussion_language to CommunityResponse
* Adding discussion_languages to CommunityResponse
* Adding discussion_language logic to community.create
2022-12-19 11:40:22 +00:00
Anon
9dfd819691
Add support for Featured Posts ( #2585 )
...
* Add support for Featured Posts
* Fix rebase
* More fixes
2022-12-12 11:17:10 +00:00
0ecf256ce3
Remove federation backwards compatibility with 0.16.x ( #2183 )
...
* Breaking: remove compatiblity with page.url field (ref #2182 )
* Breaking: change type of Instance to `Application` (ref #2200 )
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2022-12-09 11:21:17 -05:00
2732a5bf07
Rework websocket ( #2598 )
...
* Merge websocket crate into api_common
* Add SendActivity trait so that api crates compile in parallel with lemmy_apub
* Rework websocket code
* fix websocket heartbeat
2022-12-09 10:31:47 -05:00
c6c52ab9cc
Add SendActivity trait so that api crates compile in parallel with lemmy_apub
2022-12-02 10:46:49 +01:00
201fa97769
Move code to generate apub urls into lemmy_api_common
2022-12-02 10:46:49 +01:00
904d7bec2f
Builds lemmy_routes in parallel with lemmy_apub
2022-12-02 10:46:49 +01:00