Dessalines
d2e28e5f38
Adding a GetComment endpoint. Fixes #1919 ( #1944 )
2021-11-23 15:53:48 +00:00
3fea5645f8
Add tracing ( #1942 )
2021-11-23 12:16:47 +00:00
05d43150bc
Making public key required. Fixes #1934
2021-11-22 10:10:18 -05:00
20cddf5e81
Support mastodon deletes
2021-11-16 18:07:47 +01:00
7f4a773b88
Create and Note always need to tag parent creator, for mastodon notifications
2021-11-16 18:07:47 +01:00
579ca37ddf
Make webfinger standard compliant
2021-11-16 18:03:09 +01:00
Dessalines
76220a4523
Fixing clippy lints. ( #1885 )
...
* Fixing clippy lints.
* Revert object id display
* Trying to fix clippy again
2021-11-09 18:16:37 +00:00
8ea21c39b7
Reduce stack memory usage in apub code
...
- use our own, smaller Endpoints struct
- wrap ObjectId.url in Box
- adjust usage of Box in different places
2021-11-06 14:53:39 +01:00
c725514841
Change to_apub and from_apub to take by value and avoid cloning
2021-11-06 14:47:58 +01:00
2edf8ba157
Move ObjectId to library
2021-11-05 21:37:46 +01:00
Dessalines
a83113935d
Check if post or comment are deleted first. Fixes #1864 ( #1867 )
...
* Check if post or comment are deleted first. Fixes #1864
* Refactoring delete apub.
* Revert "Refactoring delete apub."
This reverts commit ba2c3d06cfb870efe792f4b2541036265b425156.
2021-11-03 17:47:24 +00:00
03d8ac75ef
Move activity structs to protocol folder
2021-10-29 12:50:32 +02:00
614490d29b
Fix problem that prevented viewing of pleroma user profiles
2021-10-29 12:45:53 +02:00
Dessalines
d9ecabee87
Dont blank out post or community info. Fixes #1813 ( #1841 )
...
* Dont blank out post or community info. Fixes #1813
* Fix federation tests
* Only blank out info for non-logged in users.
* Remove pointless trait.
* Blank the community if deleted for post
* Fix hook
* Fixing again
* Fixing again
* Fixing again
2021-10-27 13:34:18 +00:00
1aa0e1997b
Major refactor, adding newtypes for apub crate
...
- this allows moving FromApub/ToApub traits into apub lib
2021-10-20 12:28:09 +02:00
f24999027e
Merge crates db_schema and db_queries
2021-10-20 12:28:08 +02:00
Dessalines
2402515fcc
Dont allow posts to deleted / removed communities. Fixes #1827 ( #1828 )
...
* Dont allow posts to deleted / removed communities. Fixes #1827
* Fixing couldnt find community error.
* Adding check in createorupdate post and comment.
* make sure post wasn't deleted or removed.
* Adding a post not deleted or removed check to creatorupdatecomment.
* Using pub(crate)
2021-10-14 16:33:19 +00:00
8067244765
Dont swallow API errors ( fixes #1834 ) ( #1837 )
...
Dont swallow API errors (fixes #1834 )
2021-10-13 15:50:21 -04:00
f4c783cba5
Fix clippy warnings added in nightly ( #1833 )
2021-10-12 12:46:26 -04:00
Luna
e06cd9c0ac
mark parent as read on reply ( #1819 )
...
* mark parent as read on reply
* mark as read only if you are the recipient
* mark mentions as read on reply
2021-10-08 10:28:32 -04:00
b96ce81f89
Move code to apub library ( #1795 )
...
* Remove dependency of apub_lib on LemmyContext
* Move ApubObject trait to library
* Reorganize files in apub lib
* Move ActorType, signatures, activity_queue to apub library
2021-10-06 16:20:05 -04:00
Dessalines
fe7c1b300b
Adding honeypot to user and post creation. Fixes #1802 ( #1803 )
2021-10-01 11:37:39 +00:00
240de006db
Implement webmention support ( fixes #1395 ) ( #1671 )
...
* Implement webmention support (fixes #1395 )
* update
* use post url instead of instance or, better error handling
* update webmention
2021-09-27 10:49:47 -04:00
8708ad1b44
Moving settings and secrets to context.
2021-09-27 11:25:26 +02:00
cf214ff583
Move jwt secret from config to database ( fixes #1728 )
2021-09-27 11:25:09 +02:00
527eefbe92
Rewrite fetcher ( #1792 )
...
* Use new fetcher implementation for post/comment
* rewrite person fetch to use new fetcher
* rewrite community to use new fetcher
* rename new_fetcher to dereference_object_id
* make ObjectId a newtype
* handle deletion in new fetcher
* rewrite apub object search to be generic
* move upsert() method out of ApubObject trait
* simplify ObjectId::new (and fix clippy)
2021-09-25 11:44:52 -04:00
Dessalines
0940fb5f00
Fixing some comment websocket issues. ( #1768 )
...
- Wasn't correctly getting comment parent user for mark as read. Fixes #1767
- Was using all recipients for simple comment return. Fixes #1766
2021-09-04 08:47:41 -04:00
Dessalines
1ee0c0c291
Adding more site setup vars. Fixes #678 ( #1718 )
2021-08-23 09:44:10 +00:00
f6f169b4eb
Rewrite remaining activities ( #1712 )
...
* Limit type/method visibility in apub code
* Simplify db_queries traits by removing generics
* Simplify delete activity implementation
* Rewrite delete activities
* Implement helper functions for websocket message sending
* When receiving delete reason as empty string, change to none
* Rewrite remaining activities
* Simplify inbox
* Remove struct ActivityCommonFields, derive ActivityFields trait instead
* Community should announce received activities to followers
2021-08-19 17:24:33 -04:00
Dessalines
2016afc9db
User / community blocking. Fixes #426 ( #1604 )
...
* A first pass at user / community blocking. #426
* Adding unit tests for person and community block.
* Moving migration
* Fixing creator_blocked for comment queries, added tests.
* Don't let a person block themselves
* Fix post creator_blocked
* Adding creator_blocked to PersonMentionView
* Moving blocked and follows to MyUserInfo
* Rename to local_user_view
* Add moderates to MyUserInfo
* Adding BlockCommunityResponse
* Fixing name, and check_person_block
* Fixing tests.
* Using type in Blockable trait.
* Changing recipient to target, adding unfollow to block action.
2021-08-19 20:54:15 +00:00
Dessalines
6af75492a9
Swap out iframely ( #1706 )
...
* Replace Iframely. Fixes #1681
* Add post_link_tags to nginx
* Adding post_link_tags route
* Cleaning up post_link_tags
* Changing PostLink to SiteMetadata, adding it to the API.
* Fixing issue when local has no openssl certs.
* Fixing an issue with pictrs errors
* Revert "Fixing issue when local has no openssl certs."
This reverts commit dbf7d1b1ee03846e5ef7b7156e618424f1150e1d.
* Add ca-certs to dockerfile for volume mount.
* Cleaning up fetch_pictrs request
* Changing to fetch_site_data
2021-08-19 14:12:49 +00:00
28d6370c35
Rewrite delete activities ( #1699 )
...
* Limit type/method visibility in apub code
* Simplify db_queries traits by removing generics
* Simplify delete activity implementation
* Rewrite delete activities
* Implement helper functions for websocket message sending
* When receiving delete reason as empty string, change to none
2021-08-17 14:04:58 -04:00
353a1fe0a0
Rewrite activitypub following, person, community, pm ( #1692 )
...
* Rewrite following activities
* Rewrite person apub
* Rewrite community apub
* Rewrite private message activity sending
2021-08-12 08:48:09 -04:00
Dessalines
7b8cbbba85
Simplify config using macros ( #1686 )
...
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-08-04 21:13:51 +00:00
b8d7f00d58
Rewrite voting ( #1685 )
...
* Merge like/dislike activity handlers into vote
* Rewrite vote sending code
* Remove old send_create, send_update functions
2021-08-02 16:33:40 -04:00
6b57d716e1
Rewrite private message apub and merge create/update
2021-07-31 22:58:11 +02:00
dc363c8f35
Merge logic for post create and update
2021-07-31 19:26:17 +02:00
3eb46868ff
Merge logic for comment create and update
2021-07-31 17:47:08 +02:00
43ad99bbe8
Rewrite apub comment (de)serialization using structs (ref #1657 )
2021-07-31 16:57:37 +02:00
433ab1e78b
Add docs for MediaType, PublicUrl values
2021-07-30 23:16:33 +02:00
ff265c7ebc
Rewrite apub post (de)serialization using structs (ref #1657 )
2021-07-30 23:16:32 +02:00
Dessalines
d85f0d087e
Blank out extra info for deleted or removed content. Fixes #1679 ( #1680 )
2021-07-30 18:44:15 +00:00
Dessalines
6ffa291ec9
Actor name length config dess ( #1672 )
...
* Make length of user/community name configurable (fixes #1306 )
* use single config value, fix migrations, increase displayname length
* remove debug statements
* add helper method for setting actor_name_max_length
* move function
* Fixing some defaults
Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-07-22 21:53:44 -04:00
Dessalines
fcae2189eb
Add show_new_posts_notifs setting. Fixes #1664 ( #1665 )
2021-07-22 20:07:40 +00:00
Dessalines
5fe7de2bff
Adding shortname fetching for users and communities. Fixes #1662 ( #1663 )
2021-07-20 04:29:50 +00:00
Dessalines
f54209c451
Running clippy --fix ( #1647 )
2021-07-05 16:07:26 +00:00
f289374e70
Remove tracking params from post url ( fixes #768 )
2021-06-18 20:38:34 +02:00
880c51687a
Merge branch 'main' into feature/mark_post_as_read
2021-04-26 10:44:19 -04:00
6d3778cafe
Changing unwrap_default to unwrap_or(false)
2021-04-26 09:50:34 -04:00
5b2be6f9df
Add show_read_posts filter. Fixes #1561
2021-04-24 18:26:50 -04:00
ef7fe7586b
Some formatting
2021-04-23 02:40:10 -04:00
f8cd6fd445
Making more fields optional in the API.
...
- Fixes #1569
2021-04-23 02:30:13 -04:00
c86f5472fb
Adding listing_type to search.
2021-04-23 02:13:32 -04:00
db1abff857
Add option to limit community creation to admins only ( fixes #1586 ) ( #1587 )
...
* Add option to limit community creation to admins only (fixes #1586 )
* address review
2021-04-22 19:42:58 -04:00
efee2062dd
Mark accounts as bot nutomic ( #1565 )
...
* Mark account as bot. Fixes #1357
* Fix clippy
* Federate bot status using actor `type` field
* fix clippy
Co-authored-by: Dessalines <tyhou13@gmx.com>
2021-04-21 17:41:14 -04:00
65a11a7239
Use .map_err in api code ( fixes #1573 ) ( #1575 )
...
* Use .map_err in api code (fixes #1573 )
* forgot some
2021-04-16 09:10:43 -04:00
c572dc0cc6
Remote mods can update/delete/undelete communities
2021-04-13 15:19:17 +02:00
Dessalines
c3d64f996e
Removing community.creator column. Fixes #1504 ( #1541 )
...
* Removing community.creator column. Fixes #1504
* Fixing unit tests.
* Fixing federation tests.
2021-04-08 11:29:08 +00:00
Dessalines
7bd474a843
Adding a short site description. Fixes #1496 ( #1532 )
...
* Adding a short site description. Fixes #1496
- Renaming old description to sidebar
* Adding a back end site desc length check.
2021-04-07 11:40:35 +00:00
2f63fdbde0
Adding a setting to show / hide scores. Fixes #1503
2021-03-31 06:54:46 -04:00
4c8f2e976e
Merge remote-tracking branch 'yerba/split-api-crate' into test_merge_api_crates_reorg
2021-03-29 16:24:50 -04:00
01fc1228d5
Fix API and clippy warnings
2021-03-29 20:55:08 +02:00
249fcc5066
Split api crate into api_structs and api
2021-03-25 20:19:40 +01:00