summaryrefslogtreecommitdiff
path: root/html.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 /html.c
parentb5cab5bddda32c758e9a944371c055de13d8d55a (diff)
Rewritten is_msg_public() to not depend on a user.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index ce0df97..58501f2 100644
--- a/html.c
+++ b/html.c
@@ -206,7 +206,7 @@ xs_str *html_msg_icon(snac *snac, xs_str *os, const xs_dict *msg)
if (strcmp(type, "Note") == 0 || strcmp(type, "Question") == 0 || strcmp(type, "Page") == 0)
url = xs_dict_get(msg, "id");
- priv = !is_msg_public(snac, msg);
+ priv = !is_msg_public(msg);
date = xs_dict_get(msg, "published");
udate = xs_dict_get(msg, "updated");
@@ -700,7 +700,7 @@ xs_str *html_entry_controls(snac *snac, xs_str *os, const xs_dict *msg, const ch
s = html_button(s, "pin", L("Pin"), L("Pin this post to the top of your timeline"));
}
- if (is_msg_public(snac, msg)) {
+ if (is_msg_public(msg)) {
if (strcmp(actor, snac->actor) == 0 || xs_list_in(boosts, snac->md5) == -1) {
/* not already boosted or us; add button */
s = html_button(s, "boost", L("Boost"), L("Announce this post to your followers"));
@@ -845,7 +845,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
xs *boosts = NULL;
/* do not show non-public messages in the public timeline */
- if (local && !is_msg_public(snac, msg))
+ if (local && !is_msg_public(msg))
return os;
/* hidden? do nothing more for this conversation */