Commit graph

48 commits

Author SHA1 Message Date
asonix b44c3ade55 Update actix-web 2021-04-02 12:07:19 -05:00
asonix 6b08db0634 Profiles: fix spelling, don't hardcode handle max 2021-02-13 18:27:22 -06:00
asonix df9a45137d Profiles: Add validation errors 2021-02-13 18:00:30 -06:00
asonix abb9f79464 Profiles: add tagging logic to bbcode processor 2021-02-08 22:37:09 -06:00
asonix 22d8f85fba Profiles: Move bbcode, html sanitizing to Changes types
Handle Updated timestamp for profiles, servers, comments
2021-02-08 21:14:51 -06:00
asonix da2c1eacae Add handle refcount, delete on full removal 2021-02-08 18:49:14 -06:00
asonix 504baf208a Profiles: Add more updated info for submissions, profiles 2021-02-08 18:23:09 -06:00
asonix e9b9a83042 Profiles: Don't pull files needlessly 2021-02-08 18:01:24 -06:00
asonix 6d58171aa5 Profiles: combine changes types 2021-02-08 17:55:45 -06:00
asonix 426726286d Profiles: Add open+close report date range queries 2021-02-04 21:03:43 -06:00
asonix 7fc61d0e26 Profiles: make server outbox optional 2021-02-04 19:13:11 -06:00
asonix cc9909265d Profiles: Add sensitive flag to submissions
- Wire sensitive through create, update, activitypub
2021-02-02 21:19:29 -06:00
asonix 597bbe94b9 Profiles: Add more audience options to submissions
- In addition to Followers/Unlisted/Public, now there's two toggles
  to limit to logged-in users, or to limit to the current server
  Adding federated login-required for submissions is a TODO item.
- Don't accept federated updates older than the submission's
  updated field
2021-02-01 21:56:44 -06:00
asonix 2a85cb6661 Profiles: Expose submission visibility settings 2021-02-01 19:02:15 -06:00
asonix 85d01fd3f0 Profiles: Identity-transform node views for now
In the future, these should be expanded to do user lookup
for tagging purposes
2021-01-31 13:52:33 -06:00
asonix b9a66c1923 Profiles: Differentiate text source & text, sanitize & bbcode text 2021-01-27 20:58:38 -06:00
asonix c5ab0e7f13 Profiles: Use 'created_tree' for 'all' profile iterator 2021-01-26 20:32:03 -06:00
asonix 61fcc549c8 Profiles: remove owner tree in favor of owner created tree 2021-01-26 20:29:18 -06:00
asonix aee79ec311 Profiles: Add handle search feature 2021-01-25 20:37:36 -06:00
asonix acdf7e69fa Profiles: Add 'all-profiles' iterator 2021-01-24 22:07:15 -06:00
asonix 820e948acd Profiles: bound range iterations by profile id
When iterating over submissions for a profile, previously
it was possible to iterate past the end of a given profile's
submissions, and into the next profile's. This was fixed by
setting lower & upper bounds rather than leaving them
open-ended
2021-01-24 20:02:03 -06:00
asonix f9596fd743 Profiles: notify followers on submission publish
Expose API for paging notifications
2021-01-23 22:03:39 -06:00
asonix a3c4bdce09 Profiles: Remove distinction between Context and State 2021-01-21 23:43:38 -06:00
asonix f6f603324a Fix federated image update duplication for submissions 2021-01-18 11:21:41 -06:00
asonix 83b447b780 Profiles: Federation fixes
- Fix image federation
- Enable submission & comment create/update federation
- Improve checks to ensure we don't federate when we don't need to
2021-01-17 15:01:45 -06:00
asonix 642f0bb578 Profiles: lots of federation fixes
Currently federation requests + accepts + rejects + undos all work
Federation blocking works also
Profiles can federate their text and images, provided federation was
enabled before profile creation. Looking into backfilling existing
profiles is TODO
2021-01-17 01:27:13 -06:00
asonix 2c8439bed2 Add messaging around missing item errors 2021-01-16 11:48:12 -06:00
asonix 6ec099a1fd Print server actor on first generation 2021-01-15 22:51:30 -06:00
asonix 95b3b17c61 Profiles: Add Servers, server follows & blocks
Enable and expose report forwarding
2021-01-15 22:25:16 -06:00
asonix 0a64034ea9 Profiles: Expose notifications for profile
- Expose notification counts for profile
- Expose Accept & Reject Follow Request constructors
- Don't error on missing activitypub for RejectFollowRequest
2021-01-14 23:50:31 -06:00
asonix 29bdf064e9 Profiles: Update profile delete to profile suspend
Clear profile data on suspend
Clear comment body on delete
Update Unfollow and Unblock operations to only delete apub IDs if present
2021-01-14 20:41:53 -06:00
asonix 464429747d Profiles: Add Reports, and the ability to suspend profiles
- Plus: Don't delete comments on delete, just mark as deleted
- TODO: Purge text from deleted comments
2021-01-13 22:43:43 -06:00
asonix 979c6386ef Profiles: Only put top-level comments in submission tree 2021-01-12 22:35:29 -06:00
asonix 7357fb4042 Switch stored records to using owned strings
There's an issue with the presence of returns with serde_json.
They can be serialized from borrowed strings, but they cannot
be deserialized into borrowed strings. I haven't looked into
why, but it's easy to just Own Things ™️

Also:
- Fix self-federating for comment create & update (this will
  likely need to be fixed for reacts when I get around to
  that)
- Expose API to retrieve replies for a given comment
- Expose Comment Create & Update actions
2021-01-11 21:58:03 -06:00
asonix 7ecc402d1b Differentiate Drafted vs Published submission iterators
Always perform state changes in background thread
context -> ctx
2021-01-10 22:03:20 -06:00
asonix f18b294c62 Expose non-apub submission interaction
Make scans always go by date
2021-01-09 19:48:04 -06:00
asonix a3d209e9ff Fix login_required
Only update record if updates are present
Profile::by_handle returns ID, not full profile
2021-01-08 22:34:13 -06:00
asonix cd586bb249 Expose profile ID, Local Owner ID, lookup by local Owner ID 2021-01-06 23:39:55 -06:00
asonix 5c280ef6f6 Process outbound in new thread 2021-01-06 13:49:23 -06:00
asonix 19d0fbdb9f Expose profile domain 2021-01-06 10:45:23 -06:00
asonix ab8aa2cbe1 Profiles: expose needed information for non-apub profile creation
- Add image purge to profile update
- Add outbound processing in apub ingest
- Add follower + follow request cleanup in profile delete
- Add inboxes + id to Outbound trait
2021-01-06 02:21:17 -06:00
asonix d6d01387e0 Remove ructe from profiles 2021-01-05 13:09:18 -06:00
asonix 2884228a13 Go digging for Follow ID from Accept Follow 2021-01-05 00:14:51 -06:00
asonix 6ffc4e9fa3 Prepare Actions for use outside of activitypub paths
Catch (but not fix) but related to unfollowing durin blocks
2021-01-05 00:09:59 -06:00
asonix 8552d10cdc Mark objects as deleted, simplify spawn logic, check blocks on incoming activities 2021-01-04 21:13:06 -06:00
asonix fff74bf063 No warnings, expose top-level methods for image uploads 2021-01-04 20:23:17 -06:00
asonix 397f67ade6 Move actions to apub 2021-01-04 11:41:34 -06:00
asonix 5d56504507 Ingest ActivityPub 2021-01-04 11:34:31 -06:00