ab3051fa78
More work on auth system I guess, still no motivation though
/ test (push) Has been cancelled
2025-02-28 15:01:12 +01:00
402932602d
WIP New auth management system
...
/ test (push) Has been cancelled
Wait, what's this? A new commit to Linstrom?
And I thought I was done for good with this project now that I've left
Fedi.
Well, I got bored at work and inspired by a random bit I've seen in
Elixir Phoenix's docs.
So here is the start of a new subsystem: Authentication
Intended to bundle all authentication related checks and updates in one
place. Http handlers should not be the ones to perform the logic, too
much duplication. Technically, they probably shouldn't even contain any
business logic at all, only calling it and transforming it into visible
output
Also may be considering switching to Vue or at least changing how the
ember frontend interacts with the backend
2025-02-21 15:52:21 +01:00
e5e0b54035
Add test action
/ test (push) Successful in 16s
2024-12-25 22:19:32 +01:00
1527c198e0
Updated cli flags
...
Better usage message
Flipped the -pretty flag to -jsonlogs. Is now pretty per default
2024-12-24 10:48:00 +01:00
2b84d7eb2a
Make it compile again
...
Adding notes still non-functional, but made it compile
2024-12-24 10:47:26 +01:00
Samuel
ccd2140c53
Update module name to new path
2024-12-18 15:24:56 +01:00
2df96b1ecd
Add README
2024-12-13 17:53:08 +01:00
70df49efa7
Think I got some parameters for create note down
2024-12-13 16:32:01 +01:00
599874c486
Fix note rendering, new function header
...
Fixed note rendering due to bad user header
TODO: It's a stupid bandaid, replace with proper formatter once it works
Remove test stuff
Some spacing in the colours for readability
CreateNoteRemote header added
2024-12-13 15:34:19 +01:00
c919cc8c67
Move files around, formatter helper
...
Formatters for username belong to account, not to note
New helper for transforming a markdown text to html
2024-11-22 15:55:41 +01:00
5fb5dae31e
Start work on account display
...
Also no idea wtf is going on with the models
2024-11-21 16:34:20 +01:00
9acecfd7f6
Start work on media storage
2024-11-21 14:45:25 +01:00
bf8d272122
Move dev configs into separate dir
2024-11-21 13:37:39 +01:00
daf0c3b489
Update config to include s3 storage service
2024-11-21 13:37:24 +01:00
a94a360773
Fix-ish frontend models, a generator and a generate command
2024-11-20 16:11:11 +01:00
a6291fd098
Implement existing API types
2024-11-20 15:39:24 +01:00
e76490f637
Work on new note endpoint
2024-11-20 13:46:15 +01:00
5f94a71415
This should belong to the previous generator commits
2024-11-20 13:44:36 +01:00
7591c8ad64
Start work on copying API types to the frontend
2024-11-20 13:39:34 +01:00
9d28b20fe0
Run generators
2024-11-20 13:39:17 +01:00
378f94fa97
Generators updated
...
Now includes generators for transforming storage.Role into the API
representation and the Typescript version for the frontend
2024-11-20 13:37:31 +01:00
46bfac7540
Add read-only mode to map and array editors
2024-11-19 15:05:12 +01:00
8a4c19dd17
Work on getting notes API
2024-11-18 12:18:57 +01:00
f656757710
Work on following relations api and small docs
2024-11-15 16:15:07 +01:00
526b5c2fef
Use a "custom" http.Server for serving instead of just handler
2024-11-15 16:14:29 +01:00
1f0dbda780
Add storage func for getting a relation between two accounts
2024-11-15 16:14:11 +01:00
5546d31e5d
Move account relations into separate table
2024-11-11 09:04:42 +01:00
c9985ba48a
Properly ignore the tmp folder
2024-11-07 16:31:28 +01:00
25243b3a9d
Work on
2024-11-07 16:27:46 +01:00
a8abfb2219
Add follow requests to db
...
TODO: Add functions for it
2024-11-07 10:49:03 +01:00
c01b851fbf
Extend media metadata to include ownership
2024-11-07 10:48:48 +01:00
54ccbaa96e
Logging, implement account deletion api endpoint
...
Deleting an account via the API now works
Also some logging
2024-11-07 10:48:12 +01:00
cea3009641
Implement custom account field deletion
...
Custom account fields can now be deleted either one at a time via id or
all fields owned by an account
2024-11-07 10:47:09 +01:00
487b57b4d6
Fix (account): return error, implement deletion
...
Fixed returning the wrong error if an account isn't found in a passkey
id request
Implemented account deletion
2024-11-07 10:45:57 +01:00
575392d6d4
New storage error and role deletion function
...
New error is for indicating actions that are not ever allowed, even for
admins
And you can now delete roles
2024-11-07 10:45:02 +01:00
9169cec4bb
Fix: Better error handling
...
Session insertion middleware now has better error handling for fetching
an account based on a session. Not found is treated as not an error
since it is likely to happen that a session is used post account
deletion
2024-11-07 10:42:41 +01:00
ad68e97eaf
Add flag for only checking/creating the config file
2024-11-07 10:03:01 +01:00
0e036b152b
Fix, placeholder image, api
...
Added a placeholder image, code style
Fixed metadata missing issue
More work on api
2024-11-06 16:58:57 +01:00
529d106351
Better tracing
...
Not done yet, still need to add them to just about every other function
2024-11-06 16:57:44 +01:00
83f47d17be
meow
...
More progress. Fixed storage bug. Need to get media stuff going
2024-11-05 16:29:01 +01:00
1bb6cd8a70
bleh
...
More API stuff. Lots of bleh. Really boring
Also need to figure out a somewhat generic way for "requires ownership"
permission and then a combinator for permissions
2024-11-04 16:25:39 +01:00
ffe3cf32ae
Update mod tools list since roles are fucking powerful
2024-11-04 16:25:21 +01:00
92fd3d7f0b
Changed definition of storage.CollapseRolesIntoOne and RoleDeepCopy
...
No more list of pointers/pointer
2024-11-04 16:24:11 +01:00
fc0875e494
Add todo about passkey naming
2024-11-04 07:54:29 +01:00
a653477e7f
More API progress
...
This time mainly helper functions for converting an account and
associated types into their API representation
2024-11-04 07:48:46 +01:00
873f52d64f
More work on the api. Also auth middleware stuff
...
More work on the placeholder functions for the Linstrom API
Additionally, started work on a slightly more sophisticated
authentication control system
And ran `go generate` again
2024-10-31 16:53:42 +01:00
b9c95a0297
Extend roles code generator
...
It now also generates a function for comparing two roles for equality.
If an attribute is nil, that attribute is ignored (or rather counted as
equal)
2024-10-31 16:52:35 +01:00
0ed50aca60
More work on the API. Primarely defining jsonapi types
2024-10-30 16:05:20 +01:00
4f4d05a335
Started work on linstrom specific endpoints
...
Router plus a bunch of placeholder handlers
Also a poll on fedi regarding streamed events (one vs many channels)
2024-10-29 16:09:21 +01:00
1fb924f59c
Good progress on styling post-registration form
2024-10-29 13:23:04 +01:00