upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/wifistr.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/wifistr.c')
-rw-r--r--main/wifistr.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/main/wifistr.c b/main/wifistr.c
index 543aaf6..bf03b4d 100644
--- a/main/wifistr.c
+++ b/main/wifistr.c
@@ -2,7 +2,6 @@
2#include "identity.h" 2#include "identity.h"
3#include "nostr_event.h" 3#include "nostr_event.h"
4#include "config.h" 4#include "config.h"
5#include "local_relay.h"
6#include "esp_log.h" 5#include "esp_log.h"
7#include "esp_tls.h" 6#include "esp_tls.h"
8#include "esp_crt_bundle.h" 7#include "esp_crt_bundle.h"
@@ -217,13 +216,8 @@ esp_err_t wifistr_publish(void)
217 216
218 ESP_LOGI(TAG, "Wifistr event: %s", event_json); 217 ESP_LOGI(TAG, "Wifistr event: %s", event_json);
219 218
220 esp_err_t local_ret = local_relay_publish(event_json, strlen(event_json));
221 if (local_ret == ESP_OK) {
222 ESP_LOGI(TAG, "Published to local relay");
223 }
224
225 const tollgate_config_t *cfg = tollgate_config_get(); 219 const tollgate_config_t *cfg = tollgate_config_get();
226 esp_err_t last_err = local_ret; 220 esp_err_t last_err = ESP_FAIL;
227 221
228 for (int i = 0; i < cfg->nostr_relay_count; i++) { 222 for (int i = 0; i < cfg->nostr_relay_count; i++) {
229 esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json); 223 esp_err_t err = ws_send_to_relay(cfg->nostr_relays[i], event_json);