Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvsk committed Nov 20, 2023
1 parent 4b6f382 commit 7d40c95
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def should_fanout?(subscriber_pubkey)

receiver_pubkey = event_p_tag.second

# TODO: consider delegation
subscriber_pubkey.in?([receiver_pubkey, pubkey])
end
end
4 changes: 0 additions & 4 deletions app/models/event_delegator.rb

This file was deleted.

2 changes: 1 addition & 1 deletion docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ First let's discuss business logic settings.
| DEFAULT\_FILTER\_LIMIT| If filters in `REQ` event do not have `limit` this values applies | 100 | |
| VALIDATE\_ID\_ON\_SERVER| whether to validate `payload` matches `id` on the server | true | This is already checked by WebsocketServer and is time-consuming but for consistency it is enabled by default |
| VALIDATE\_SIG\_ON\_SERVER| whether to validate `sig` matches `id` on the server | true | This is already checked by WebsocketServer and is time-consuming but for consistency it is enabled by default |
| NIP\_04\_NIP\_42\_ENFORCE\_KIND\_4\_AUTHENTICATION| If enforced, kind-4 events will only be sent by relay to those subscribers who are authenticated and have pubkey matching event's author pubkey or event's p-tag | true | delegation is not handled here |
| NIP\_04\_NIP\_42\_ENFORCE\_KIND\_4\_AUTHENTICATION| If enforced, kind-4 events will only be sent by relay to those subscribers who are authenticated and have pubkey matching event's author pubkey or event's p-tag | true | |
| NIP\_11\_MAX\_FILTER\_LIMIT| see [NIP-11](https://github.com/nostr-protocol/nips/blob/master/11.md) | 1000 | |
| NIP\_11\_RELAY\_NAME| see [NIP-11](https://github.com/nostr-protocol/nips/blob/master/11.md) | | |
| NIP\_11\_DESCRIPTION| see [NIP-11](https://github.com/nostr-protocol/nips/blob/master/11.md) | | |
Expand Down
5 changes: 0 additions & 5 deletions spec/models/event_delegator_spec.rb

This file was deleted.

0 comments on commit 7d40c95

Please sign in to comment.