summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-05 13:35:50 +0100
committerdefault <nobody@localhost>2023-02-05 13:35:50 +0100
commit12aedfadfd9c7805bb7138f64695858b6ceca62c (patch)
tree7513c57743d6f46e382e0a0cc43a22f9607d79c8 /data.c
parent8983eb141db47a9f86e64523bfea6ca355ad4e7b (diff)
New function timeline_get().
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/data.c b/data.c
index a5f46e8..0f2bd39 100644
--- a/data.c
+++ b/data.c
@@ -824,6 +824,13 @@ double timeline_mtime(snac *snac)
}
+int timeline_get(snac *snac, const char *id, xs_dict **msg)
+/* gets a message from the timeline */
+{
+ return object_get_by_md5(id, msg, NULL);
+}
+
+
int timeline_del(snac *snac, char *id)
/* deletes a message from the timeline */
{