Felix Ableitner
1c6f74cad5
Convert note.content and chat_message.content to html ( fixes #1871 )
2021-11-02 21:39:02 +01:00
Dessalines
d4753049d7
Upgrade background_jobs to 0.9.1 #1820 ( #1875 )
2021-11-02 20:27:24 +00:00
Dessalines
87bc2763ce
Fix husky fmt hook. ( #1868 )
...
* Fix husky fmt hook.
* Change to use default cargo
* Using nightly check
2021-11-02 15:15:19 +00:00
Felix Ableitner
0bde2d595e
Add tests for parsing activities and collections
2021-11-02 12:44:51 +01:00
Felix Ableitner
aaaf039779
Move apub test files into tree structure
2021-10-29 16:54:19 +02:00
Felix Ableitner
03d8ac75ef
Move activity structs to protocol folder
2021-10-29 12:50:32 +02:00
Felix Ableitner
5ff044346f
Move object and collection structs to protocol folder
2021-10-29 12:50:32 +02:00
Felix Ableitner
358ef99ea2
Rewrite community followers and user outbox to use our own structs
2021-10-29 12:50:32 +02:00
Felix Ableitner
d89156810d
Move @context out of object/activity definitions
2021-10-29 12:50:32 +02:00
Felix Ableitner
2d04ff93f5
Change activity.cc to Vec<Url> in public activities
2021-10-29 12:50:32 +02:00
Felix Ableitner
271785b7fb
When receiving activity, dont read community from cc (for pleroma compat and better verification)
2021-10-29 12:50:30 +02:00
Felix Ableitner
74523fb534
Make Note.context optional for pleroma compat (hack)
2021-10-29 12:45:54 +02:00
Felix Ableitner
03b8ae7215
Activity.to should always be a vec (and unspecified size for public activities)
2021-10-29 12:45:54 +02:00
Felix Ableitner
614490d29b
Fix problem that prevented viewing of pleroma user profiles
2021-10-29 12:45:53 +02:00
Felix Ableitner
0af047dd83
Rewrite community moderators collection
2021-10-29 12:45:53 +02:00
Felix Ableitner
6792e376b4
Rewrite community outbox to use new fetcher
2021-10-29 12:45:53 +02:00
Felix Ableitner
bb085189e0
Merge traits ToApub and FromApub into ApubObject
2021-10-29 12:45:53 +02:00
Dessalines
b18ea3e0cc
Renaming to slur_filter. Fixes #1773 ( #1801 )
...
* Renaming to slur_filter. Fixes #1773
* Fixing config
* Updating doku for slur filter.
* Updating doku for slur filter again.
* Remove comment.
2021-10-28 20:47:25 +00:00
Dessalines
f1f7c45017
Three instance inbox bug ( #1866 )
...
* 3 instance shared inbox bug test
* Fixing shared inbox bug. Fixes #1865
* A few fixes.
2021-10-28 20:46:24 +00:00
Dessalines
90a5febd38
Remove ansible from this repo. ( #1829 )
...
* Remove ansible from this repo.
* Adding a git push.
2021-10-27 12:09:00 -04:00
Nutomic
61189efe72
Rewrite collections to use new fetcher ( #1861 )
...
* Merge traits ToApub and FromApub into ApubObject
* Rewrite community outbox to use new fetcher
* Rewrite community moderators collection
* Rewrite tombstone
2021-10-27 12:03:07 -04: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
Dessalines
f4bac6a17f
Merge remote-tracking branch 'origin/main'
2021-10-22 13:32:17 -04:00
Nutomic
7bfe59a89f
Format config/defaults.hjson before committing ( #1860 )
2021-10-22 13:29:47 -04:00
Dessalines
40264c17a0
Version 0.13.5-rc.7
2021-10-22 13:26:00 -04:00
Nutomic
149a4e0de8
Breaking apub changes ( #1859 )
...
* Remove CommentInReplyToMigration
* Remove compat for RemovePostCommentOrCommunity
* Remove PublicUrlMigration
* Change type of pm to ChatMessage from Pleroma, make pm.to array
* Use person.summary instead of person.content for pleroma compat
* Also change group.content to summary
* Rewrite apub object test json to serve as nice examples
* Also add test case for parsing pleroma private message
2021-10-22 12:21:26 -04:00
Dessalines
23731cd49c
Trying out rust-musl-builder for cargo publish ( #1856 )
...
* Trying out rust-musl-builder for cargo publish
* Version 0.13.5-rc.1
* Try rust:nightly
* Version 0.13.5-rc.2
* Try rust slim
* Version 0.13.5-rc.3
* Try rust 1.51
* Version 0.13.5-rc.4
* Trying another nightly
* Version 0.13.5-rc.5
* Trying another fix
* Version 0.13.5-rc.6
2021-10-21 13:26:01 -04:00
Nutomic
dd0ba10b44
Pleroma federation2 ( #1855 )
...
* Allow fetching person from Pleroma, including test case (ref #1461 )
* Added test case for parsing community from apub json
- fixed a bug with objectid (de)serialization
- fixed a bug with outbox fetching (ref #1582 )
* Added apub test for post
* Ignore errors when reading community outbox (fixes #1582 )
* Dont fetch community outbox/moderators during tests
* added test for lemmy comment
* Added federation test for pleroma comment
* Added html2md crate to parse comment html from pleroma (fixes #1461 )
* some fixes for update_apub_test_files.sh
* Add tests for ToApub, private message, remove update script
* Delete objects from db at the end of each test
2021-10-21 13:25:35 -04:00
Nutomic
21304e6751
Create a custom pre-commit hook, generates config/defaults.hjson ( #1857 )
...
* Create a custom pre-commit hook, generates config/defaults.hjson (fixes #1836 )
* invalid defaults file
* Revert "invalid defaults file"
This reverts commit 76d2c303e2
.
2021-10-21 12:57:09 -04:00
Dessalines
9e0fa99c69
Merge pull request #1850 from LemmyNet/refactor-apub
...
Refactor apub
2021-10-20 11:01:04 -04:00
Felix Ableitner
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
Felix Ableitner
f24999027e
Merge crates db_schema and db_queries
2021-10-20 12:28:08 +02:00
Felix Ableitner
d206aad282
Remove DeletableApubObject trait
2021-10-20 12:20:54 +02:00
Tmpod
e9d9bc82d8
Add cargo metadata to all crates ( #1853 )
2021-10-19 13:03:43 -04:00
Tmpod
aef9786fa7
Add both (De)Serialize to all models ( #1851 )
2021-10-19 12:37:01 -04:00
Dessalines
97aa7268ae
Adding GetUnreadCount to the API. Fixes #1794 ( #1842 )
...
* Adding GetUnreadCount to the API. Fixes #1794
* Reordering filters to fix unread replies.
2021-10-16 10:43:41 +00:00
Nutomic
18badcfdb4
Federate reports ( #1830 )
...
* Federate reports
* add federation test cases for reports
2021-10-15 10:37:33 -04:00
Dessalines
ccb8e4b414
Fix saved posts and hide read posts issue. Fixes #1839 ( #1840 )
2021-10-14 17:03:12 +00: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
Dessalines
f052e5f1ab
0.13.3 release notes.
2021-10-13 21:28:04 -04:00
Dessalines
f526bce618
Update ansible version
2021-10-13 21:18:55 -04:00
Nutomic
8067244765
Dont swallow API errors ( fixes #1834 ) ( #1837 )
...
Dont swallow API errors (fixes #1834 )
2021-10-13 15:50:21 -04:00
Nutomic
d26255957b
Fix federation of initial post/comment vote ( fixes #1824 ) ( #1835 )
2021-10-13 10:12:41 -04:00
Nutomic
f4c783cba5
Fix clippy warnings added in nightly ( #1833 )
2021-10-12 12:46:26 -04:00
Dessalines
864598908d
Admins can view all reports. Fixes #1810 ( #1825 )
2021-10-12 12:02:16 +00:00
Dessalines
35d0aba9e6
Adding a message_id to emails. Fixes #1807 ( #1826 )
2021-10-12 11:38:55 +00:00
Nutomic
454d3987a5
Generate config docs from code ( #1786 )
...
* Generate config docs from code
* update library
* move settings comments from config.hjson to code
* updte doku to 0.10
* update doku
2021-10-08 11:07:24 -04:00
Dessalines
53a2b6d013
Trying a background_jobs fix. #1820 ( #1822 )
2021-10-08 14:36:53 +00: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
Nutomic
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