Publish zap receipts to own relay in addition to requested ones
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -35,6 +35,19 @@ RSpec.describe NostrManager::PublishZapReceipt, type: :model do
|
||||
|
||||
described_class.call(zap: zap)
|
||||
end
|
||||
|
||||
context "with own relay configured" do
|
||||
before do
|
||||
Setting.nostr_relay_url = "wss://foobar.kosmos.org"
|
||||
end
|
||||
|
||||
it "also publishes the receipt to our own relay" do
|
||||
expect(NostrPublishEventJob).to receive(:perform_later)
|
||||
.exactly(13).times.and_return(true)
|
||||
|
||||
described_class.call(zap: zap)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user