commit 12fcc05

default  ·  2025-01-09 17:37:12 +0000 UTC
parents c253604, 25b22d8
Merge branch 'master' of /home/angel/git/snac2
1 files changed,  +3, -3
+3, -3
 1@@ -2137,14 +2137,14 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
 2                 snac_log(snac, xs_fmt("new 'Question' %s %s", actor, id));
 3         }
 4         else
 5-        if (strcmp(utype, "Video") == 0) { /** **/
 6+        if (xs_match(utype, "Audio|Video|Event")) { /** **/
 7             const char *id = xs_dict_get(object, "id");
 8 
 9             if (xs_is_null(id))
10                 snac_log(snac, xs_fmt("malformed message: no 'id' field"));
11             else
12             if (timeline_add(snac, id, object))
13-                snac_log(snac, xs_fmt("new 'Video' %s %s", actor, id));
14+                snac_log(snac, xs_fmt("new '%s' %s %s", utype, actor, id));
15         }
16         else
17             snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype));
18@@ -2252,7 +2252,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
19             snac_log(snac, xs_fmt("updated actor %s", actor));
20         }
21         else
22-        if (xs_match(utype, "Note|Page|Article|Video")) { /** **/
23+        if (xs_match(utype, "Note|Page|Article|Video|Audio|Event")) { /** **/
24             const char *id = xs_dict_get(object, "id");
25 
26             if (xs_is_null(id))