summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-23 09:47:05 +0200
committerdefault <nobody@localhost>2023-08-23 09:47:05 +0200
commit2f8e4645b1313e8c25dd119ef88608459a0abfa0 (patch)
tree98a72a93a88245def41b450564a0d839c35300f2 /html.c
parent505084bab74ec5a2a2c7c662cf7efe739fba3afa (diff)
Only show the 'audience' field in the 'Page' post.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index b2c6595..fa30386 100644
--- a/html.c
+++ b/html.c
@@ -1374,7 +1374,7 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
/* has this message an audience (i.e., comes from a channel or community)? */
const char *audience = xs_dict_get(msg, "audience");
- if (!xs_is_null(audience)) {
+ if (strcmp(type, "Page") == 0 && !xs_is_null(audience)) {
xs *es1 = encode_html(audience);
xs *s1 = xs_fmt("<p>(<a href=\"%s\" title=\"%s\">%s</a>)</p>\n",
audience, L("Source channel or community"), es1);