Commit graph

166 commits

Author SHA1 Message Date
484bb95820
Small tool for running the automigration against config db 2025-03-27 15:54:59 +01:00
bf5180559f
Add cmd for generating code from the new models
Some checks are pending
/ test (push) Waiting to run
2025-03-27 13:35:24 +01:00
67b507f4bd
Describe all types for the new storage system
Some checks are pending
/ test (push) Waiting to run
2025-03-27 10:45:57 +01:00
8d4ba2ecae
More work on defining the new data structure
Some checks are pending
/ test (push) Waiting to run
2025-03-26 17:14:42 +01:00
daf401a2f7
Push to new goutils version
Some checks are pending
/ test (push) Waiting to run
2025-03-26 16:50:44 +01:00
8ee314b0bb
Fix ristretto mod entry 2025-03-26 16:13:48 +01:00
2c57f668e0 Merge branch 'main' of git.mstar.dev:mstar/linstrom
Some checks failed
/ test (push) Has been cancelled
2025-03-21 07:47:12 +01:00
714f528641
Rework backing storage system
Some checks are pending
/ test (push) Waiting to run
Step one: Copy the struct definitions over into a new, dedicated
submodule
Step two: Make a generator script
Step three: Define helper functions for various queries
2025-03-20 21:39:10 +01:00
0639cde4f2
Delete useless file from storage
Some checks are pending
/ test (push) Waiting to run
2025-03-20 19:22:15 +01:00
a2156afe9d
Update contributing guide
Some checks are pending
/ test (push) Waiting to run
Not done though, needs to include proper information
2025-03-20 18:00:59 +01:00
ab3051fa78
More work on auth system I guess, still no motivation though
Some checks failed
/ test (push) Has been cancelled
2025-02-28 15:01:12 +01:00
4e54012ae5 Uhh, things? 2025-02-22 12:17:40 +01:00
402932602d WIP New auth management system
Some checks failed
/ 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
All checks were successful
/ 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