Commit graph

50 commits

Author SHA1 Message Date
f350d718ac Add Profile and Submission report logic
Implement Follow and Block logic
2021-01-14 20:42:30 -06:00
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
3f446a0b16 Add Admin page
- Add commandline flag to promote a user to an admin
- Add basic reporting feature
  - Enable reports for comments
  - TODO: Enable reports for submissions & profiles
2021-01-13 22:46:34 -06:00
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
1c1e4fe677 Accounts: Add username lookups to public API, add suspended flag to account 2021-01-13 22:41:20 -06:00
8c61a428fa Add select input 2021-01-13 22:40:36 -06:00
73d40e2f75 Cache associated records when iterating over comments or submissions
Rely more on the toolkit for UI
Fix a couple hard-coded dark modes
2021-01-12 22:39:59 -06:00
979c6386ef Profiles: Only put top-level comments in submission tree 2021-01-12 22:35:29 -06:00
a1e219f015 Move date rendering, nested records, icons, profile page into toolkit 2021-01-12 22:34:25 -06:00
67f3430751 Pull single-file folder modules into single-files 2021-01-11 22:02:16 -06:00
815649b0f1 Build out comments view, edit pages, submission comments section 2021-01-11 21:59:42 -06:00
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
25311fe2f8 Textarea value sandwich :) 2021-01-11 21:52:49 -06:00
4ff824b92d Delete 'Back' in favor of mobile nav query
Add submissions to home page
Add drafts page
Validate handle, display name, description, submission: title, description
Add block checks to submission iterator
Add user info to submission page
Abstract dark preference to a single source, not yet configurable
2021-01-10 22:09:47 -06:00
7ecc402d1b Differentiate Drafted vs Published submission iterators
Always perform state changes in background thread
context -> ctx
2021-01-10 22:03:20 -06:00
628ccfcbdc Ignore cookie domain until a better method is found 2021-01-10 21:59:39 -06:00
5ad592e566 Add toolkit-bar, more dark mode changes 2021-01-10 21:59:11 -06:00
e3c29b6e45 Add submission UI, update Nav implementation 2021-01-09 19:49:33 -06:00
f18b294c62 Expose non-apub submission interaction
Make scans always go by date
2021-01-09 19:48:04 -06:00
ccf0b98d05 Accounts: support dark theme 2021-01-09 19:46:31 -06:00
291f567c8e Remove file input ID, add margin to card 2021-01-09 19:45:59 -06:00
6da83926a0 Remove StateError
Use Dark Theme
Add profile deletion
2021-01-08 22:35:35 -06:00
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
7d14bb33c5 Dark theme 2021-01-08 22:32:02 -06:00
1e2fb63b6a Mobile nav on bottom 2021-01-07 23:09:26 -06:00
7f5e01eb9f New toolkit card api 2021-01-07 22:45:21 -06:00
46e45e8b68 Add settings page, improve navigation 2021-01-07 22:44:43 -06:00
f268759bee Implement FromRequest for User directly 2021-01-07 22:42:22 -06:00
dfb73b563f Add javascripts for button loading states, file input states 2021-01-07 22:41:37 -06:00
75a495ba44 Finish building out profile settings pages 2021-01-06 23:42:08 -06:00
cd586bb249 Expose profile ID, Local Owner ID, lookup by local Owner ID 2021-01-06 23:39:55 -06:00
f008ca5fb9 Enable removing a file input's group div
Always style headings inside a card
Add vertical padding to paragraphs in a card
2021-01-06 23:38:52 -06:00
c6562da430 Better handle exists error, prefer webp to png, jpg, banner to jpg, icon to png 2021-01-06 13:50:44 -06:00
5c280ef6f6 Process outbound in new thread 2021-01-06 13:49:23 -06:00
d53dfe9fda Improve profile view styling 2021-01-06 10:45:43 -06:00
19d0fbdb9f Expose profile domain 2021-01-06 10:45:23 -06:00
b02753e6b9 Add server profile creation flow 2021-01-06 02:21:37 -06:00
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
49eeb48b72 Toolkit file input 2021-01-06 02:16:50 -06:00
d6d01387e0 Remove ructe from profiles 2021-01-05 13:09:18 -06:00
2884228a13 Go digging for Follow ID from Accept Follow 2021-01-05 00:14:51 -06:00
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
8552d10cdc Mark objects as deleted, simplify spawn logic, check blocks on incoming activities 2021-01-04 21:13:06 -06:00
fff74bf063 No warnings, expose top-level methods for image uploads 2021-01-04 20:23:17 -06:00
397f67ade6 Move actions to apub 2021-01-04 11:41:34 -06:00
5d56504507 Ingest ActivityPub 2021-01-04 11:34:31 -06:00
ec90b2897d Turn Card::full_width into constructor 2020-12-16 15:43:43 -06:00
9cf1c546f9 Create Form Buttons, make Logout a Form Button 2020-12-15 22:50:00 -06:00
cf31172632 Move Authenticated into a middlware to reduce cost of multiple Authenticateds in a route 2020-12-15 22:14:01 -06:00
7143cf8ff0 Working accounts system 2020-12-15 20:40:41 -06:00