Felix Ableitner [Thu, 28 Oct 2021 21:17:59 +0000 (23:17 +0200)]
Move object and collection structs to protocol folder
Felix Ableitner [Thu, 28 Oct 2021 15:52:11 +0000 (17:52 +0200)]
Rewrite community followers and user outbox to use our own structs
Felix Ableitner [Thu, 28 Oct 2021 15:25:26 +0000 (17:25 +0200)]
Move @context out of object/activity definitions
Felix Ableitner [Thu, 28 Oct 2021 12:47:56 +0000 (14:47 +0200)]
Change activity.cc to Vec<Url> in public activities
Felix Ableitner [Thu, 28 Oct 2021 11:46:48 +0000 (13:46 +0200)]
When receiving activity, dont read community from cc (for pleroma compat and better verification)
Felix Ableitner [Tue, 26 Oct 2021 10:47:26 +0000 (12:47 +0200)]
Make Note.context optional for pleroma compat (hack)
Felix Ableitner [Mon, 25 Oct 2021 17:22:34 +0000 (19:22 +0200)]
Activity.to should always be a vec (and unspecified size for public activities)
Felix Ableitner [Mon, 25 Oct 2021 16:09:21 +0000 (18:09 +0200)]
Fix problem that prevented viewing of pleroma user profiles
Felix Ableitner [Wed, 27 Oct 2021 10:56:07 +0000 (12:56 +0200)]
Rewrite community moderators collection
Felix Ableitner [Mon, 25 Oct 2021 14:15:03 +0000 (16:15 +0200)]
Rewrite community outbox to use new fetcher
Felix Ableitner [Tue, 26 Oct 2021 19:05:26 +0000 (21:05 +0200)]
Merge traits ToApub and FromApub into ApubObject
Dessalines [Thu, 28 Oct 2021 20:47:25 +0000 (16:47 -0400)]
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.
Dessalines [Thu, 28 Oct 2021 20:46:24 +0000 (16:46 -0400)]
Three instance inbox bug (#1866)
* 3 instance shared inbox bug test
* Fixing shared inbox bug. Fixes #1865
* A few fixes.
Dessalines [Wed, 27 Oct 2021 16:09:00 +0000 (12:09 -0400)]
Remove ansible from this repo. (#1829)
* Remove ansible from this repo.
* Adding a git push.
Nutomic [Wed, 27 Oct 2021 16:03:07 +0000 (16:03 +0000)]
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
Dessalines [Wed, 27 Oct 2021 13:34:18 +0000 (09:34 -0400)]
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
Dessalines [Fri, 22 Oct 2021 17:32:17 +0000 (13:32 -0400)]
Merge remote-tracking branch 'origin/main'
Nutomic [Fri, 22 Oct 2021 17:29:47 +0000 (17:29 +0000)]
Format config/defaults.hjson before committing (#1860)
Dessalines [Fri, 22 Oct 2021 17:26:00 +0000 (13:26 -0400)]
Version 0.13.5-rc.7
Nutomic [Fri, 22 Oct 2021 16:21:26 +0000 (16:21 +0000)]
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
Dessalines [Thu, 21 Oct 2021 17:26:01 +0000 (13:26 -0400)]
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
Nutomic [Thu, 21 Oct 2021 17:25:35 +0000 (17:25 +0000)]
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
Nutomic [Thu, 21 Oct 2021 16:57:09 +0000 (16:57 +0000)]
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
76d2c303e293b13d581f9c5aa2944caedb2f530b.
Dessalines [Wed, 20 Oct 2021 15:01:04 +0000 (11:01 -0400)]
Merge pull request #1850 from LemmyNet/refactor-apub
Refactor apub
Felix Ableitner [Mon, 18 Oct 2021 21:36:44 +0000 (23:36 +0200)]
Major refactor, adding newtypes for apub crate
- this allows moving FromApub/ToApub traits into apub lib
Felix Ableitner [Sat, 16 Oct 2021 13:33:38 +0000 (15:33 +0200)]
Merge crates db_schema and db_queries
Felix Ableitner [Sat, 16 Oct 2021 11:14:02 +0000 (13:14 +0200)]
Remove DeletableApubObject trait
Tmpod [Tue, 19 Oct 2021 17:03:43 +0000 (18:03 +0100)]
Add cargo metadata to all crates (#1853)
Tmpod [Tue, 19 Oct 2021 16:37:01 +0000 (17:37 +0100)]
Add both (De)Serialize to all models (#1851)
Dessalines [Sat, 16 Oct 2021 10:43:41 +0000 (06:43 -0400)]
Adding GetUnreadCount to the API. Fixes #1794 (#1842)
* Adding GetUnreadCount to the API. Fixes #1794
* Reordering filters to fix unread replies.
Nutomic [Fri, 15 Oct 2021 14:37:33 +0000 (14:37 +0000)]
Federate reports (#1830)
* Federate reports
* add federation test cases for reports
Dessalines [Thu, 14 Oct 2021 17:03:12 +0000 (13:03 -0400)]
Fix saved posts and hide read posts issue. Fixes #1839 (#1840)
Dessalines [Thu, 14 Oct 2021 16:33:19 +0000 (12:33 -0400)]
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)
Dessalines [Thu, 14 Oct 2021 01:28:04 +0000 (21:28 -0400)]
0.13.3 release notes.
Dessalines [Thu, 14 Oct 2021 01:18:55 +0000 (21:18 -0400)]
Update ansible version
Nutomic [Wed, 13 Oct 2021 19:50:21 +0000 (19:50 +0000)]
Dont swallow API errors (fixes #1834) (#1837)
Dont swallow API errors (fixes #1834)
Nutomic [Wed, 13 Oct 2021 14:12:41 +0000 (14:12 +0000)]
Fix federation of initial post/comment vote (fixes #1824) (#1835)
Nutomic [Tue, 12 Oct 2021 16:46:26 +0000 (16:46 +0000)]
Fix clippy warnings added in nightly (#1833)
Dessalines [Tue, 12 Oct 2021 12:02:16 +0000 (08:02 -0400)]
Admins can view all reports. Fixes #1810 (#1825)
Dessalines [Tue, 12 Oct 2021 11:38:55 +0000 (07:38 -0400)]
Adding a message_id to emails. Fixes #1807 (#1826)
Nutomic [Fri, 8 Oct 2021 15:07:24 +0000 (15:07 +0000)]
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
Dessalines [Fri, 8 Oct 2021 14:36:53 +0000 (10:36 -0400)]
Trying a background_jobs fix. #1820 (#1822)
Luna [Fri, 8 Oct 2021 14:28:32 +0000 (19:58 +0530)]
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
Nutomic [Wed, 6 Oct 2021 20:20:05 +0000 (20:20 +0000)]
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
Dessalines [Fri, 1 Oct 2021 11:37:39 +0000 (07:37 -0400)]
Adding honeypot to user and post creation. Fixes #1802 (#1803)
Nutomic [Thu, 30 Sep 2021 20:45:20 +0000 (20:45 +0000)]
Add database host back into config file (#1805)
Dessalines [Thu, 30 Sep 2021 13:17:29 +0000 (09:17 -0400)]
Update releases.md
Dessalines [Wed, 29 Sep 2021 20:16:46 +0000 (16:16 -0400)]
Version 0.13.0
Dessalines [Wed, 29 Sep 2021 20:05:38 +0000 (16:05 -0400)]
Adding a user agent. Fixes #1769 (#1800)
* Adding a user agent. Fixes #1769
* Fix client duplicate creation.
Dessalines [Wed, 29 Sep 2021 18:50:00 +0000 (14:50 -0400)]
Upgrade deps (#1799)
* Upgrade deps
* Fix web::scope
Nutomic [Tue, 28 Sep 2021 15:34:18 +0000 (15:34 +0000)]
Ansible changes (#1781)
* Use env var for config location when saving (not default location)
* Consistent variable formatting for easy replacement with sed
* Remove unmaintained lemmy_dev and uninstall playbooks
* Simplify lemmy.hjson for ansible
* cleanup ansible playbook
* add separate playbook for updating lemmy config
* Revert "add separate playbook for updating lemmy config"
This reverts commit
0a970ae1da984791958b01b01d35e64d6f6eb98a.
Dessalines [Tue, 28 Sep 2021 14:59:29 +0000 (10:59 -0400)]
Version 0.13.0-rc.1
Dessalines [Tue, 28 Sep 2021 10:36:17 +0000 (06:36 -0400)]
Clean up reporting (#1776)
* First untested pass at reporting.
* Adding unit tests for post and comment report views
* Fix clippy
* Adding counts, creator_banned, and unresolved_only
* Adding my_vote to report views
* Fixing unit tests.
Nutomic [Mon, 27 Sep 2021 14:49:47 +0000 (14:49 +0000)]
Implement webmention support (fixes #1395) (#1671)
* Implement webmention support (fixes #1395)
* update
* use post url instead of instance or, better error handling
* update webmention
Felix Ableitner [Mon, 27 Sep 2021 10:34:41 +0000 (12:34 +0200)]
Merge branch 'remove_settings_and_secret_singletons_squashed'
Dessalines [Wed, 22 Sep 2021 15:57:09 +0000 (11:57 -0400)]
Moving settings and secrets to context.
Felix Ableitner [Mon, 20 Sep 2021 15:46:34 +0000 (17:46 +0200)]
Move jwt secret from config to database (fixes #1728)
Nutomic [Sat, 25 Sep 2021 15:44:52 +0000 (15:44 +0000)]
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)
Nutomic [Mon, 20 Sep 2021 15:47:43 +0000 (15:47 +0000)]
Merge pull request #1785 from LemmyNet/add_cardano_donation_link
Add cardano donation link
Nutomic [Mon, 20 Sep 2021 10:02:30 +0000 (10:02 +0000)]
Merge pull request #1782 from LemmyNet/password_min_length
Set a 10 char minimum password length.
Dessalines [Sun, 19 Sep 2021 21:20:47 +0000 (17:20 -0400)]
Fix tests
Dessalines [Sun, 19 Sep 2021 20:52:16 +0000 (16:52 -0400)]
Add cardano donation link
Dessalines [Sat, 18 Sep 2021 23:53:30 +0000 (19:53 -0400)]
Clean up.
Dessalines [Sat, 18 Sep 2021 23:43:08 +0000 (19:43 -0400)]
Set a 10 char minimum password length.
Nutomic [Fri, 17 Sep 2021 15:44:20 +0000 (15:44 +0000)]
Dont pass accept-encoding header to pictrs (ref #1734) (#1738)
* Allow image upload in docker/dev/ (replaces #1765)
* Dont pass accept-encoding header to pictrs (ref #1734)
* Fix clippy errors
Nutomic [Mon, 13 Sep 2021 10:02:27 +0000 (10:02 +0000)]
Merge pull request #1775 from LemmyNet/add_pictrs_to_ansible
Add pictrs to ansible.
Dessalines [Wed, 8 Sep 2021 00:11:36 +0000 (20:11 -0400)]
Add pictrs to ansible.
Dessalines [Mon, 6 Sep 2021 15:33:32 +0000 (11:33 -0400)]
Adding 0.12.2 release notes
Dessalines [Mon, 6 Sep 2021 15:29:04 +0000 (11:29 -0400)]
Upping ansible version
Nutomic [Mon, 6 Sep 2021 11:30:40 +0000 (11:30 +0000)]
Merge pull request #1770 from LemmyNet/fix/arm_build
Fix/arm build
Dessalines [Sun, 5 Sep 2021 17:59:28 +0000 (13:59 -0400)]
Version 0.12.2-rc.1
Dessalines [Sun, 5 Sep 2021 17:56:41 +0000 (13:56 -0400)]
Try fixing arm build
Dessalines [Sat, 4 Sep 2021 13:50:14 +0000 (09:50 -0400)]
Upping ansible version
Dessalines [Sat, 4 Sep 2021 13:33:26 +0000 (09:33 -0400)]
Adding v0.12.1 release notes.
Dessalines [Sat, 4 Sep 2021 12:47:41 +0000 (08:47 -0400)]
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
Dessalines [Fri, 3 Sep 2021 14:56:47 +0000 (10:56 -0400)]
Fix upgrade note.
Dessalines [Fri, 3 Sep 2021 13:29:11 +0000 (09:29 -0400)]
Adding v0.12.0 release notes.
Dessalines [Fri, 3 Sep 2021 13:23:50 +0000 (09:23 -0400)]
Version 0.12.0
Dessalines [Fri, 3 Sep 2021 13:21:24 +0000 (09:21 -0400)]
Upgrading to lemmy-js-client 0.12.0
Dessalines [Fri, 3 Sep 2021 12:28:26 +0000 (08:28 -0400)]
Version 0.12.0-rc.2
Dessalines [Thu, 2 Sep 2021 12:09:48 +0000 (08:09 -0400)]
Create SECURITY.md (#1758)
Adding a security.md file.
Dessalines [Thu, 2 Sep 2021 11:50:20 +0000 (07:50 -0400)]
Use more generic docker deps. Fixes #1759 (#1762)
* Use more generic docker deps. Fixes #1759
* Don't use slim
Dessalines [Thu, 2 Sep 2021 11:00:45 +0000 (07:00 -0400)]
Trying to fix arm builds. (#1761)
* Trying to fix arm builds.
* Adding comment
Dessalines [Tue, 31 Aug 2021 14:01:36 +0000 (10:01 -0400)]
Fixing docker-compose prod (#1741)
Nutomic [Sat, 28 Aug 2021 01:33:38 +0000 (01:33 +0000)]
Change public activities to field to array (#1739)
Dessalines [Thu, 26 Aug 2021 12:37:10 +0000 (08:37 -0400)]
Upgrading deps (#1735)
Dessalines [Thu, 26 Aug 2021 11:49:16 +0000 (07:49 -0400)]
Reindex tables non-concurrently on startup. Fixes #1726 . #1723 (#1736)
Dessalines [Wed, 25 Aug 2021 21:28:42 +0000 (17:28 -0400)]
Version 0.12.0-rc.1
Dessalines [Wed, 25 Aug 2021 21:26:28 +0000 (17:26 -0400)]
Merge branch 'main' of https://github.com/lemmynet/lemmy
Dessalines [Wed, 25 Aug 2021 21:26:10 +0000 (17:26 -0400)]
Fix prod deploy script and clippy (#1724)
* Updating lemmy-js-client.
* Fix prod deploy script and clippy
* Try using buster.
* Using more generic and updated images.
* again.
* again.
* Try alternate env
* again.
* again.
* Version 0.11.4-rc.24
* again.
* Better old_tag
* Version 0.11.4-rc.27
* Updating cargo.lock
* Trying to run a cargo check to update the lock
* Version 0.11.4-rc.28
Dessalines [Wed, 25 Aug 2021 17:00:39 +0000 (13:00 -0400)]
Updating lemmy-js-client.
Dessalines [Wed, 25 Aug 2021 16:33:45 +0000 (12:33 -0400)]
Fix image uploads. Fixes #1725 (#1734)
* Fix image uploads. Fixes #1725
* Adding comment on awc dep.
Nutomic [Mon, 23 Aug 2021 17:06:51 +0000 (17:06 +0000)]
Merge pull request #1666 from LemmyNet/resolve-endpoint
Move resolving of activitypub objects to separate api endpoint
Dessalines [Mon, 23 Aug 2021 15:25:39 +0000 (11:25 -0400)]
Fixing ResolveObject API and unit tests (#1713)
Dessalines [Mon, 23 Aug 2021 09:44:10 +0000 (05:44 -0400)]
Adding more site setup vars. Fixes #678 (#1718)
Nutomic [Sat, 21 Aug 2021 13:36:33 +0000 (13:36 +0000)]
Dont append ? to url when cleaning it (#1716)
Felix Ableitner [Tue, 20 Jul 2021 07:00:20 +0000 (09:00 +0200)]
Move resolving of activitypub objects to separate api endpoint (fixes #1584)
Nutomic [Thu, 19 Aug 2021 21:24:33 +0000 (21:24 +0000)]
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
Dessalines [Thu, 19 Aug 2021 20:54:15 +0000 (16:54 -0400)]
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.
Dessalines [Thu, 19 Aug 2021 14:12:49 +0000 (10:12 -0400)]
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