diff options
| author | 2023-08-23 09:47:05 +0200 | |
|---|---|---|
| committer | 2023-08-23 09:47:05 +0200 | |
| commit | 2f8e4645b1313e8c25dd119ef88608459a0abfa0 (patch) | |
| tree | 98a72a93a88245def41b450564a0d839c35300f2 | |
| parent | Added some support for 'Article' object types. (diff) | |
| download | snac2-2f8e4645b1313e8c25dd119ef88608459a0abfa0.tar.gz snac2-2f8e4645b1313e8c25dd119ef88608459a0abfa0.tar.xz snac2-2f8e4645b1313e8c25dd119ef88608459a0abfa0.zip | |
Only show the 'audience' field in the 'Page' post.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1374,7 +1374,7 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local, | |||
| 1374 | 1374 | ||
| 1375 | /* has this message an audience (i.e., comes from a channel or community)? */ | 1375 | /* has this message an audience (i.e., comes from a channel or community)? */ |
| 1376 | const char *audience = xs_dict_get(msg, "audience"); | 1376 | const char *audience = xs_dict_get(msg, "audience"); |
| 1377 | if (!xs_is_null(audience)) { | 1377 | if (strcmp(type, "Page") == 0 && !xs_is_null(audience)) { |
| 1378 | xs *es1 = encode_html(audience); | 1378 | xs *es1 = encode_html(audience); |
| 1379 | xs *s1 = xs_fmt("<p>(<a href=\"%s\" title=\"%s\">%s</a>)</p>\n", | 1379 | xs *s1 = xs_fmt("<p>(<a href=\"%s\" title=\"%s\">%s</a>)</p>\n", |
| 1380 | audience, L("Source channel or community"), es1); | 1380 | audience, L("Source channel or community"), es1); |