summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-12 09:43:01 +0200
committerdefault <nobody@localhost>2023-08-12 09:43:01 +0200
commit499697258d2c266be69dc13dae96083fc78cd3ef (patch)
tree9339a03de6c31cf4c30f4e6269815825fc561544 /mastoapi.c
parentb5cab5bddda32c758e9a944371c055de13d8d55a (diff)
Rewritten is_msg_public() to not depend on a user.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index dbb6e11..25e54d3 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -658,7 +658,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
st = xs_dict_append(st, "content", xs_dict_get(msg, "content"));
st = xs_dict_append(st, "visibility",
- is_msg_public(snac, msg) ? "public" : "private");
+ is_msg_public(msg) ? "public" : "private");
tmp = xs_dict_get(msg, "sensitive");
if (xs_is_null(tmp))