|
|
|
|
@ -282,9 +282,9 @@ static int parse_media_body(const char* body, struct media_index_result* out) {
|
|
|
|
|
|
|
|
|
|
/* ── insert-callback: storage-узлы запускают auto-download ── */ |
|
|
|
|
|
|
|
|
|
static void storage_on_insert(struct DB_SYNC_INSTANCE* si, uint64_t ts, |
|
|
|
|
static void storage_on_insert(struct DB_SYNC_INSTANCE* si, const uint8_t message_id[32], uint64_t ts, |
|
|
|
|
const char* data, size_t len, uint64_t author, int initial_sync, void* arg) { |
|
|
|
|
(void)si; (void)ts; (void)initial_sync; |
|
|
|
|
(void)si; (void)message_id; (void)ts; (void)initial_sync; |
|
|
|
|
int idx = (int)(intptr_t)arg; |
|
|
|
|
struct UTUN_INSTANCE* inst = g_inst[idx]; |
|
|
|
|
if (author == inst->node_id) return; |
|
|
|
|
|