mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Only show the 'audience' field in the 'Page' post.
This commit is contained in:
parent
505084bab7
commit
2f8e4645b1
1 changed files with 1 additions and 1 deletions
2
html.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue