commit 2f8e464

default  ·  2023-08-23 07:47:05 +0000 UTC
parent 505084b
Only show the 'audience' field in the 'Page' post.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -1374,7 +1374,7 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
2 
3     /* has this message an audience (i.e., comes from a channel or community)? */
4     const char *audience = xs_dict_get(msg, "audience");
5-    if (!xs_is_null(audience)) {
6+    if (strcmp(type, "Page") == 0 && !xs_is_null(audience)) {
7         xs *es1 = encode_html(audience);
8         xs *s1 = xs_fmt("<p>(<a href=\"%s\" title=\"%s\">%s</a>)</p>\n",
9             audience, L("Source channel or community"), es1);