diff options
| author | 2024-03-15 18:36:56 +0100 | |
|---|---|---|
| committer | 2024-03-15 18:36:56 +0100 | |
| commit | 73a5fc6f5b7a8dd2179670607a8818e6e5aa635f (patch) | |
| tree | ae9f2c5014d68cfc224062f0cac6a669004e32d1 /activitypub.c | |
| parent | Backport from xs. (diff) | |
| download | snac2-73a5fc6f5b7a8dd2179670607a8818e6e5aa635f.tar.gz snac2-73a5fc6f5b7a8dd2179670607a8818e6e5aa635f.tar.xz snac2-73a5fc6f5b7a8dd2179670607a8818e6e5aa635f.zip | |
Added a type Note to poll options.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index eb1552d..e007c96 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1558,6 +1558,7 @@ xs_dict *msg_question(snac *user, const char *content, xs_list *attach, | |||
| 1558 | } | 1558 | } |
| 1559 | 1559 | ||
| 1560 | if (xs_set_add(&seen, v2) == 1) { | 1560 | if (xs_set_add(&seen, v2) == 1) { |
| 1561 | d = xs_dict_append(d, "type", "Note"); | ||
| 1561 | d = xs_dict_append(d, "name", v2); | 1562 | d = xs_dict_append(d, "name", v2); |
| 1562 | d = xs_dict_append(d, "replies", replies); | 1563 | d = xs_dict_append(d, "replies", replies); |
| 1563 | o = xs_list_append(o, d); | 1564 | o = xs_list_append(o, d); |