diff options
| author | Kyren223 <kyren223@proton.me> | 2025-08-05 17:01:05 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-08-05 17:01:05 +0300 |
| commit | 7b1ee08d61c77da12f139881631ddb94bb3e6647 (patch) | |
| tree | eb269273170a511b52b44b00a3bd35656f1a6d0f /internal/server/api/api.go | |
| parent | 274dee5b25ed249492faeea1c0a4e33aa26cb60c (diff) | |
Updated todos and notes
Diffstat (limited to 'internal/server/api/api.go')
| -rw-r--r-- | internal/server/api/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/server/api/api.go b/internal/server/api/api.go index 2a0452a..9828af6 100644 --- a/internal/server/api/api.go +++ b/internal/server/api/api.go @@ -589,7 +589,7 @@ func DeleteNetwork(ctx context.Context, sess *session.Session, request *packet.D return &ErrInternalError } - // NOTE: important check, make sure they are the owner (authorized) + // NOTE(kyren): important check, make sure they are the owner (authorized) if network.OwnerID != sess.ID() { return &ErrPermissionDenied } @@ -1148,7 +1148,7 @@ func EditMessage(ctx context.Context, sess *session.Session, request *packet.Edi return &ErrInternalError } - // Note: it is possible to edit your messages in any context + // NOTE(kyren): it is possible to edit your messages in any context // regardless if you are in the network or if you have access to // the frequency (or a user signal), as long as you know the message ID // This should be fine but may be changed later to be more strict @@ -1640,7 +1640,7 @@ func Authenticate(ctx context.Context, sess *session.Session, request *packet.Au sess.Manager().AddSession(sess, user.ID, request.PubKey) - // NOTE: as per the protocol, this must be the first message after auth + // NOTE(kyren): as per the protocol, this must be the first message after auth payload := &packet.UsersInfo{Users: []data.User{user}} ok := sess.Write(ctx, payload) if !ok { |
