diff options
| author | 2025-05-27 21:14:23 +0200 | |
|---|---|---|
| committer | 2025-05-27 21:14:23 +0200 | |
| commit | 5bc451159420d5d51a507fda82a623069cfae92b (patch) | |
| tree | 725767368e77caa9751d39778b046b5ad00e4806 /data.c | |
| parent | Renamed timeline_here() to timeline_here_by_md5(), as it always should have b... (diff) | |
| download | snac2-5bc451159420d5d51a507fda82a623069cfae92b.tar.gz snac2-5bc451159420d5d51a507fda82a623069cfae92b.tar.xz snac2-5bc451159420d5d51a507fda82a623069cfae92b.zip | |
New function timeline_here().
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -1400,6 +1400,14 @@ int timeline_here_by_md5(snac *snac, const char *md5) | |||
| 1400 | } | 1400 | } |
| 1401 | 1401 | ||
| 1402 | 1402 | ||
| 1403 | int timeline_here(snac *user, const char *id) | ||
| 1404 | { | ||
| 1405 | xs *md5 = xs_md5_hex(id, strlen(id)); | ||
| 1406 | |||
| 1407 | return timeline_here_by_md5(user, md5); | ||
| 1408 | } | ||
| 1409 | |||
| 1410 | |||
| 1403 | int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg) | 1411 | int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg) |
| 1404 | /* gets a message from the timeline */ | 1412 | /* gets a message from the timeline */ |
| 1405 | { | 1413 | { |