- pkg/version/version.go
- Updated `Description` to include the URL `https://orly.dev`.
- pkg/app/relay/handleRelayinfo.go
- Fixed indentation for `Nips`, `Software`, and `Version` fields in the relay info response structure.
- pkg/app/config/config.go
- Reordered imports to group and organize external and internal packages.
- Updated the default value of `AppName` from "orly" to "ORLY".
- .gitignore
- Added `.idea/.name` to ignore file.
- pkg/version/version
- Updated version from v0.5.1 to v0.5.2.
- pkg/app/relay/handleRelayinfo.go
- Enabled `relayinfo.ProtectedEvents` in the supported NIPs.
- pkg/app/relay/spider-fetch.go
- Added import for `orly.dev/pkg/utils/values`.
- Updated logic to set `l` using `values.ToUintPointer(512)`.
Files Changed:
- pkg/version/version
- Updated the version number from v0.4.12 to v0.4.13
- pkg/app/relay/spider.go
- Enabled second degree of follows spidering for directory events by adding kind.FollowList if `SpiderType` is 'directory' and `SpiderSecondDegree` is not set
Files Changed:
- pkg/version/version
- Updated the version number from v0.4.11 to v0.4.12
- pkg/app/relay/spider.go
- Enabled second degree of follows spidering for directory events if `SpiderType` is 'directory' and `SpiderSecondDegree` is not set
- Added kind.MuteList to the kinds being spidered in second degree follows mode
Files changed:
- pkg/version/version
- Updated the version number from v0.4.10 to v0.4.11
- pkg/app/relay/spider.go
- Added kind.MuteList to the kinds being spidered in follows mode for non-directory events
Files changed:
- pkg/app/config/config.go
- Added new field `SpiderSecondDegree` for enabling second degree of follows spidering
- pkg/app/relay/spider.go
- Modified the logic to enable spidering the second degree of follows for non-directory events if `ORLY_SPIDER_TYPE` is set to 'follows' or 'directory', and `SpiderSecondDegree` is set to true
- pkg/version/version
- Updated version number from v0.4.8 to v0.4.10
- pkg/app/relay/server.go
- Modified the time ticker used for spidering with a custom duration value
- Added a log message to indicate when the spider is running
- pkg/app/config/config.go
- Added a new configuration parameter `SpiderTime` of type `time.Duration` to specify how often the spider should run
pkg/version/version
- Updated version number from v0.4.0 to v0.4.1
pkg/app/config/config.go
- Added new config field `SpiderType` with default value "directory"
pkg/app/relay/peers.go
- Added check to skip empty addresses before processing peer information
pkg/app/relay/spider.go
- Modified spider fetch logic to conditionally execute based on spider type
- Added support for different kinds of events based on spider type
- pkg/app/relay/server-publish.go
- Added log statement for saved events
- pkg/app/relay/addEvent.go
- Added support for multiple pubkeys
- Modified logic to skip sending events back to replicas that already received them
- Added header with pubkeys to prevent unnecessary resending
- pkg/protocol/openapi/event.go
- Added parsing of X-Pubkeys header to avoid resending events
- Updated AddEvent call to use pubkeys parameter
- pkg/protocol/httpauth/nip98auth.go
- Removed log statement for nip-98 http auth event
- pkg/interfaces/server/server.go
- Updated AddEvent method signature to accept pubkeys instead of pubkey
- pkg/protocol/httpauth/validate.go
- Removed log statement for tolerance value
- cmd/lerproxy/README.md
- Fixed grammar and punctuation in note about certificate selection
- Improved clarity in instructions for appending intermediate certificates
- Corrected wording in explanation of CLI tool issues with certificates
- cmd/lerproxy/app/reverse.go
- Split long line for X-Forwarded-Host header comment to improve readability
- pkg/app/relay/server-publish.go
- Reformatted comment block for function description to fit within line length limits
- Added comments explaining why certain events aren't deleted from the database
- don't delete any kind of directory events
- pkg/protocol/socketapi/handleReq.go
- Split long lines for better readability in error message and log statements
- Improved formatting of the notice envelope message
- pkg/app/config/config.go
- Added new configuration fields for relay cluster replication authentication
- pkg/app/relay/publish/publisher.go
- Removed redundant package imports and logging statements
- pkg/protocol/socketapi/handleReq.go
- Added import of "orly.dev/pkg/encoders/bech32encoding" and "orly.dev/pkg/encoders/envelopes/noticeenvelope"
- Added logic to send a notice envelope when public read access is not allowed, listing owners' npub keys
- pkg/protocol/socketapi/handleEvent.go
- Added import of "orly.dev/pkg/encoders/bech32encoding" and "orly.dev/pkg/encoders/envelopes/noticeenvelope"
- Added logic to send a notice envelope when write access is not allowed, listing owners' npub keys
- pkg/version/version
- Bumped version from v0.2.18 to v0.2.19
- pkg/interfaces/server/server.go
- Added `OwnersPubkeys` method to return owners' public keys
- pkg/app/relay/owners-pubkeys.go
- Created new file with implementation of `OwnersPubkeys` method for relay server
- pkg/app/relay/handleRelayinfo.go
- Removed logging of info variable
- pkg/protocol/socketapi/socketapi.go
- Removed import of "orly.dev/pkg/encoders/envelopes/authenvelope"
- Removed authentication logic including challenge sending and logging
- pkg/app/relay/auth.go
- Removed import of "orly.dev/pkg/utils/lol"
- Removed tracing logic around ServiceURL function
- pkg/protocol/socketapi/handleReq.go
- Added logging for auth status
- Added logic to send authentication challenge if required and client is not authenticated
- pkg/protocol/socketapi/handleEvent.go
- Added import of "orly.dev/pkg/encoders/envelopes/authenvelope" and "orly.dev/pkg/encoders/reason"
- Added logging for auth status
- Added logic to send authentication challenge if required and client is not authenticated
- pkg/version/version
- Bumped version from v0.2.16 to v0.2.17
- pkg/database/save-event.go
- Added `noVerify` parameter to `SaveEvent` function
- Added check for existing event using `GetSerialById` when `noVerify` is false
- Modified logic to handle event verification based on `noVerify` flag
- pkg/app/relay/server-publish.go
- Added `false` as third argument to `SaveEvent` calls
- pkg/database/export_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-for-tags_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-for-kinds-authors_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-for-kinds-tags_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-for-serials_test.go
- Added `false` as third argument to `SaveEvent` call
- main.go
- Modified pprof handling to support different profiling types (cpu, memory, allocation)
- Changed `Pprof` configuration from boolean to string with enum values
- pkg/app/config/config.go
- Changed `Pprof` field type from `bool` to `string` with enum values
- pkg/database/query-for-kinds-authors-tags_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/version/version
- Bumped version from v0.2.12 to v0.2.13
- pkg/database/fetch-event-by-serial_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-for-kinds_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/get-serials-by-range_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/database/query-events-multiple-param-replaceable_test.go
- Added `false` as third argument to `SaveEvent` calls
- pkg/database/query-events_test.go
- Added `false` as third argument to `SaveEvent` calls
- pkg/interfaces/store/store_interface.go
- Updated `Saver` interface to include `noVerify` parameter in `SaveEvent` method
- Added `SerialByIder` interface with `GetSerialById` method
- pkg/database/save-event_test.go
- Added `false` as third argument to `SaveEvent` calls
- Added new test case for saving existing event
- pkg/database/query-for-ids_test.go
- Added `false` as third argument to `SaveEvent` call
- pkg/protocol/ws/client.go
- Changed comment about context cancellation from "context is canceled" to "context is cancelled"
- pkg/app/relay/spider-fetch.go
- Added signature checker for WebSocket connections
- Modified logic to check for existing events before saving
- Added logging and memory optimization improvements
- Updated privilege check log messages in `publisher.go` and `handleReq.go` for better clarity and consistency
- Improved event serialization by replacing `WriteTo` with `Serialize` in `export.go`
- Added unit tests for `Export` functionality in `export_test.go`
- Introduced tests for JSON tag handling in `json_tags_test.go`
- Simplified condition in `spider-fetch.go` by removing redundant checks
- Added `Export` method in `database/database.go` to export events to an io.Writer
- Implemented detailed logic for exporting all or specific pubkeys' events
- Removed placeholder `Export` function with TODO comment from `database/database.go`
- Updated error handling in `handleReq.go` and `publisher.go` by using `err != nil` instead of `chk.E(err)`
- Added more detailed logging in privilege check conditions in both `publisher.go` and `handleReq.go`
- Introduced new imports such as `"fmt"` in `connection.go` for improved error message formatting
- Created a new file `export.go` under the `database` package with complete implementation of export functionality
- Updated `handleMessage.go` to include the real remote address in the log message when a message is received
- Removed `regexp` import and `NIP20prefixmatcher` variable from `publisher.go`
- Modified `server.go` to remove an unused parameter from the `AddEvent` method
- Added `NIP20prefixmatcher` variable and used it for checking error messages in `addEvent.go`
- Removed unused `authedIsAuthor` variable and simplified privilege check logic in `check-privilege.go`
- Replaced conditional return based on `authedIsAuthor` with direct use of `privileged` flag
- Simplified the logic for checking if authed pubkey is mentioned in event tags
- Updated log message to use correct plurals for `owners`, `pubkey`, and related variables
- Added background fetching of profile metadata, relay list metadata, and DM relays list using `SpiderFetch` in the goroutine
- Modified `server.go` to import `"orly.dev/pkg/protocol/socketapi"` correctly and initialize `listeners` with the updated constructor
- Added `DMRelaysList.K` constant to `pkg/encoders/kind/kind.go`
- Removed unused `"errors"` import from `pkg/protocol/ws/connection.go`
- Updated error messages in `WriteMessage`, `ReadMessage`, and related functions in `pkg/protocol/ws/connection.go` to include the remote address for better debugging
- Changed error handling from `chk.E(err)` to `chk.T(err)` in `pkg/encoders/envelopes/eventenvelope/eventenvelope.go`
- Updated ticker interval from 30 minutes to 1 hour in `pkg/app/relay/server.go`
- Updated `pkg/protocol/socketapi/handleClose.go` to use "# Parameters" and "# Return Values" for consistent comment formatting
- Updated `pkg/protocol/socketapi/handleReq.go` with standardized parameter and return value documentation
- Modified `pkg/interfaces/relay/interface.go` to align comment style with parameter/return value sections
- Standardized comments in `pkg/protocol/socketapi/pinger.go` using "# Parameters" format
- Improved comment structure in `pkg/protocol/socketapi/socketapi.go` for parameter documentation
- Updated `pkg/protocol/socketapi/handleEvent.go` with consistent return value comment formatting