Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
692925942a | ||
|
|
84afd4b64e | ||
|
|
46160bb1f9 | ||
|
|
2fc9168a38 | ||
|
|
01d0d44868 | ||
|
|
93f6337fda |
Generated
+1
-1
@@ -1550,7 +1550,7 @@ checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nostr-rs-relay"
|
name = "nostr-rs-relay"
|
||||||
version = "0.8.3"
|
version = "0.8.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-std",
|
"async-std",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nostr-rs-relay"
|
name = "nostr-rs-relay"
|
||||||
version = "0.8.3"
|
version = "0.8.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Greg Heartsfield <scsibug@imap.cc>"]
|
authors = ["Greg Heartsfield <scsibug@imap.cc>"]
|
||||||
description = "A relay implementation for the Nostr protocol"
|
description = "A relay implementation for the Nostr protocol"
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ COPY ./build.rs ./build.rs
|
|||||||
RUN rm ./target/release/deps/nostr*relay*
|
RUN rm ./target/release/deps/nostr*relay*
|
||||||
RUN cargo auditable build --release --locked
|
RUN cargo auditable build --release --locked
|
||||||
|
|
||||||
FROM docker.io/library/debian:bullseye-slim
|
FROM docker.io/library/debian:bookworm-slim
|
||||||
|
|
||||||
ARG APP=/usr/src/app
|
ARG APP=/usr/src/app
|
||||||
ARG APP_DATA=/usr/src/app/db
|
ARG APP_DATA=/usr/src/app/db
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ description = "A newly created nostr-rs-relay.\n\nCustomize this with your own i
|
|||||||
# the URL below. In the event the server is not accessible, events
|
# the URL below. In the event the server is not accessible, events
|
||||||
# will be permitted. The protobuf3 schema used is available in
|
# will be permitted. The protobuf3 schema used is available in
|
||||||
# `proto/nauthz.proto`.
|
# `proto/nauthz.proto`.
|
||||||
# event_authorization_server = "http://[::1]:50051"
|
# event_admission_server = "http://[::1]:50051"
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
# Bind to this network address
|
# Bind to this network address
|
||||||
|
|||||||
@@ -187,7 +187,6 @@ pub async fn db_writer(
|
|||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// check for NIP-05 verification
|
// check for NIP-05 verification
|
||||||
if nip05_enabled && validation.is_some() {
|
if nip05_enabled && validation.is_some() {
|
||||||
match validation.as_ref().unwrap() {
|
match validation.as_ref().unwrap() {
|
||||||
|
|||||||
+1
-1
@@ -187,7 +187,7 @@ impl SqliteRepo {
|
|||||||
// if this event is parameterized replaceable, remove other events.
|
// if this event is parameterized replaceable, remove other events.
|
||||||
if let Some(d_tag) = e.distinct_param() {
|
if let Some(d_tag) = e.distinct_param() {
|
||||||
let update_count = tx.execute(
|
let update_count = tx.execute(
|
||||||
"DELETE FROM event WHERE kind=? AND author=? AND id IN (SELECT e.id FROM event e LEFT JOIN tag t ON e.id=t.event_id WHERE e.kind=? AND e.author=? AND t.name='d' AND t.value=? ORDER BY created_at DESC LIMIT -1 OFFSET 1);",
|
"DELETE FROM event WHERE kind=? AND author=? AND id IN (SELECT e.id FROM event e LEFT JOIN tag t ON e.id=t.event_id WHERE e.kind=? AND e.author=? AND t.name='d' AND t.value=? ORDER BY t.created_at DESC LIMIT -1 OFFSET 1);",
|
||||||
params![e.kind, pubkey_blob, e.kind, pubkey_blob, d_tag])?;
|
params![e.kind, pubkey_blob, e.kind, pubkey_blob, d_tag])?;
|
||||||
if update_count > 0 {
|
if update_count > 0 {
|
||||||
info!(
|
info!(
|
||||||
|
|||||||
Reference in New Issue
Block a user