Commit Graph

3947 Commits

Author SHA1 Message Date
Sander Saarend
9d06776110
Add --disable-scheduled-tasks cli flag (#3077) 2023-06-13 19:28:50 -04:00
Dessalines
154bbcbb99 Fixing release script. 2023-06-13 07:17:09 -04:00
Dessalines
1386039ece Version 0.17.4 2023-06-12 16:46:30 -04:00
Dessalines
920a93983d Adding hot_rank columns in place of function sorting. (#2952)
* Adding hot_rank columns in place of function sorting.

- Creates hot_rank columns for post, comment, and community.
- Fixes #2932

* Updating all hot ranks on startup.

* Fixing post.url migration.

* Removing update_instance_software from startup.

* Adding post_rank query
2023-06-08 16:59:35 -04:00
Nutomic
107df08f5f Add db index for post.url column (#2929)
* Add db index for post.url column

As mentioned in https://github.com/LemmyNet/lemmy/issues/2877#issuecomment-1576439829

Not sure if its preferable to do this, or make a combined index
which includes post.nsfw, post.removed, post.deleted

* remove unique
2023-06-08 00:20:50 +02:00
Dessalines
6efb8abb6b Version 0.17.3 2023-06-01 11:44:37 -04:00
Felix Ableitner
5d56450ed8 Fix api tests 2023-05-19 23:04:09 +02:00
Felix Ableitner
1cdb75c5fe Dont refetch post url metadata when post is received again 2023-05-18 21:48:16 +02:00
Felix Ableitner
28ebbf903a Dont retry outgoing HTTP requests (ref #2865) 2023-05-18 21:47:13 +02:00
Nutomic
be1f3b1db5 Force enable undetermined language (#2851)
* Force enable undetermined language

* update

* fix tests
2023-05-18 21:44:39 +02:00
Dessalines
d8041ca506 Fixing empty req issue. (#2849)
* Fixing empty req issue.

* Forgot skip serializing none.
2023-05-18 21:44:09 +02:00
Dessalines
ae75f89995 Making the chat server an actor. (#2793)
* Making the chat server an actor.

- Fixes #2778
- #2787

* Forgot to add handlers folder.

* Some cleanup.

* Forgot to remove a comment.

* Address PR comments.

* Using ToString for enum operations.
2023-05-04 12:23:46 -04:00
Dessalines
445830206e Finishing up fixing imports. 2023-05-04 11:15:05 -04:00
Dessalines
e0a0e84a9f Adding check to description and body length fields. (#2805)
* Adding check to description and body length fields.

- Also making the checks return `LemmyError`
- Fixes #1747

* Address PR comments.

* PR comments 2
2023-05-04 11:05:08 -04:00
Nutomic
416fc062cd Add to field in follow activities for better compatibility (#2829)
* Add `to` field in follow activities for better compatibility (fixes #2744)

* fix tests
2023-04-27 11:50:55 +02:00
Nutomic
6bdfd5948b Fix listing type default value (#2796)
* Fix listing type default value

The listing type parameter is only meant for the frontpage, but is
also applied inside of communities. The result is that this call
returns nothing, because it defaults to ListingType::Local:
https://fedibb.ml/api/v3/post/list?community_id=3

It needs to be called like this to get any posts:
https://fedibb.ml/api/v3/post/list?community_id=3&type_=All

This is clearly not expected behaviour, when a community is
specified, the listing type should default to All.

* fix clippy
2023-04-27 11:43:38 +02:00
Nutomic
bc9ae21bc7 Optimize federated language updates to avoid unnecessary db writes (#2786)
* Optimize federated language updates to avoid unnecessary db writes (fixes #2772)

* fix tests

* fix test, rename functions

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-04-27 11:38:03 +02:00
Nutomic
0e7d541ff8 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-04-27 11:32:58 +02:00
Dessalines
e6b27f07d7 Fixing broken websockets. (#2770)
* Fixing broken websockets.

* Use cloned() for serde::Value
2023-04-27 11:29:01 +02:00
Nutomic
c9a94ccca8 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-04-27 11:27:23 +02:00
Dessalines
9d8c69611b 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-04-27 11:24:57 +02:00
Helge
aa84f5faab Added identifier to context (#2791) 2023-04-27 11:08:23 +02:00
Dessalines
777595038f Adding deadpool timeouts. (#2775) 2023-04-27 11:07:47 +02:00
Dessalines
ff6458b48f Switch from bb8 to deadpool. Fixes #2765 (#2768)
* Switch from bb8 to deadpool. Fixes #2765

* Remove unecessary deadpool dependency.

* Ignoring nodeinfo test.
2023-04-27 11:07:17 +02:00
Dessalines
aba43fe105 Leave modded communities on account deletion. Fixes #2560 (#2810) 2023-04-27 10:53:11 +02:00
Dessalines
dba005868d Fix docker-compose and lemmy.hjson for install instructions. 2023-03-01 12:40:16 -05:00
Dessalines
a24a4b3ddc Version 0.17.2 2023-02-22 09:57:04 -05:00
Dessalines
d3e9d3d995 Version 0.17.2-rc.2 2023-02-21 22:28:08 -05:00
Dessalines
d87b9e77af 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-21 22:25:15 -05:00
Nutomic
0db3fc0b2d Include type information with webfinger responses (fixes #2037) (#2746)
So that it is easier to parse for other software
2023-02-21 22:25:15 -05:00
Dessalines
382e5881c3 Version 0.17.2-rc.1 2023-02-21 16:19:51 -05:00
Nutomic
60c6eeaf38 Proper permission check for federated comment distinguish (#2697)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-21 03:18:09 +09:00
Nutomic
ef25e06b3c 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-21 03:18:09 +09:00
Nutomic
1f26c6e7b1 Fix case in activitypub context (ref #2734) (#2743)
Should be camelCase.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-21 03:18:09 +09:00
Dessalines
10119a297a Fixing slow joins to post_read, post_saved, and comment_saved . (#2738)
- Fixes #2445
2023-02-21 03:18:09 +09:00
Dessalines
508ede3917 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-21 03:17:01 +09:00
Dessalines
ddc0fc9b4f Fixing updated form fields. Fixes #2724 (#2725)
* Fixing updated form fields. Fixes #2724

* Fix import.
2023-02-21 03:17:01 +09:00
Dessalines
b7ff0f59e5 Only let top admin purge. Fixes #2731 (#2732) 2023-02-21 03:17:01 +09:00
Nutomic
3e9a18c2ad Fix writing of removeData in apub context (fixes #2734) (#2735) 2023-02-21 03:17:01 +09:00
Dessalines
231c24b4f4 Adding a site option to email admins for new reports. (#2730)
- Fixes #2551
2023-02-21 03:17:01 +09:00
Dessalines
df1e8a5a90 Sort community search by active_monthly by default. (#2728)
- Fixes #2678
2023-02-21 03:17:01 +09:00
Nutomic
16e8f42488 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-21 03:17:01 +09:00
Nutomic
33353ca5bb Improved error message when attempting to fetch non-local object (fixes #2715) (#2717) 2023-02-21 03:17:01 +09:00
Kradyz
2d7bfe3401 Convert HTML from titles into markdown (#2709)
Co-authored-by: Kradyz <k@radiz.nl>
2023-02-21 03:17:01 +09:00
Nutomic
81aa2ee8e0 In apub post receive, check posting restricted to mods (ref #2702) (#2704)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-21 03:17:01 +09:00
Nutomic
13b95caa5b 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-21 03:17:01 +09:00
Dessalines
cfa0bd7713 Add a ntfy notif on a tag deploy success. (#2701) 2023-02-21 03:17:01 +09:00
Dessalines
ddbee1a0be Adding 0.17.1 Release notes. 2023-02-21 03:14:32 +09:00
Nutomic
f1330830bd Disable pictrs feature in CI to make it faster (#2698) 2023-02-21 03:14:32 +09:00
Dessalines
5ae409d4e4 Version 0.17.1 2023-02-03 09:36:18 -05:00