mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
issue #450: add card data to websocket notifications
When processing the most recent location update this gets pushed over the websocket to update the live map last position. If a card is present it needs to be added just before this push occurs.
This commit is contained in:
@@ -1373,6 +1373,8 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
|
||||
safewrite(UB(ts), jsonstring);
|
||||
free(jsonstring);
|
||||
}
|
||||
|
||||
append_card_to_object(json, UB(username), UB(device));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user