summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 1ae5ad9..0740d3d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1423,8 +1423,9 @@ xs_dict *msg_follow(snac *snac, const char *q)
1423 1423
1424xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, 1424xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
1425 const xs_str *in_reply_to, const xs_list *attach, 1425 const xs_str *in_reply_to, const xs_list *attach,
1426 int priv, const char *lang_str) 1426 int scope, const char *lang_str)
1427/* creates a 'Note' message */ 1427/* creates a 'Note' message */
1428/* scope: 0, public; 1, private (mentioned only); 2, "quiet public"; 3, followers only */
1428{ 1429{
1429 xs *ntid = tid(0); 1430 xs *ntid = tid(0);
1430 xs *id = xs_fmt("%s/p/%s", snac->actor, ntid); 1431 xs *id = xs_fmt("%s/p/%s", snac->actor, ntid);
@@ -1440,6 +1441,9 @@ xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts,
1440 xs_list *p; 1441 xs_list *p;
1441 const xs_val *v; 1442 const xs_val *v;
1442 1443
1444 /* FIXME: implement scopes 2 and 3 */
1445 int priv = scope == 1;
1446
1443 if (rcpts == NULL) 1447 if (rcpts == NULL)
1444 to = xs_list_new(); 1448 to = xs_list_new();
1445 else { 1449 else {