commit ea0c128

default  ·  2024-12-23 09:31:37 +0000 UTC
parent 89a8c2e
Accept 'Audio' as a valid entry type.

Also, done a tweak to read attributedTo fields that are a JSON object,
with the id in the "id" field (returned by bandwagon.fm).
2 files changed,  +6, -1
M snac.h
+5, -0
 1@@ -178,6 +178,11 @@ const char *get_atto(const xs_dict *msg)
 2             }
 3         }
 4     }
 5+    else
 6+    if (xs_type(actor) == XSTYPE_DICT) {
 7+        /* bandwagon.fm returns this */
 8+        actor = xs_dict_get(actor, "id");
 9+    }
10 
11     return actor;
12 }
M snac.h
+1, -1
1@@ -32,7 +32,7 @@ extern int dbglevel;
2 
3 #define L(s) (s)
4 
5-#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Event"
6+#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Audio|Event"
7 
8 int mkdirx(const char *pathname);
9