mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Show 'Event' object types as Notes.
This commit is contained in:
parent
e1ce85debd
commit
6f3763f452
3 changed files with 4 additions and 4 deletions
5
format.c
5
format.c
|
@ -311,9 +311,8 @@ xs_str *sanitize(const char *content)
|
||||||
|
|
||||||
s = xs_str_cat(s, s2);
|
s = xs_str_cat(s, s2);
|
||||||
} else {
|
} else {
|
||||||
/* else? just show it with encoded code.. that's it. */
|
if (strcmp(v, "</div>"))
|
||||||
xs *el = encode_html(v);
|
s = xs_str_cat(s, "<p>");
|
||||||
s = xs_str_cat(s, el);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
1
html.c
1
html.c
|
@ -1407,6 +1407,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
|
||||||
else
|
else
|
||||||
if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) {
|
if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) {
|
||||||
/* skip oddities */
|
/* skip oddities */
|
||||||
|
snac_debug(user, 1, xs_fmt("html_entry: ignoring object type '%s' %s", type, id));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
snac.h
2
snac.h
|
@ -29,7 +29,7 @@ extern int dbglevel;
|
||||||
|
|
||||||
#define L(s) (s)
|
#define L(s) (s)
|
||||||
|
|
||||||
#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video"
|
#define POSTLIKE_OBJECT_TYPE "Note|Question|Page|Article|Video|Event"
|
||||||
|
|
||||||
int mkdirx(const char *pathname);
|
int mkdirx(const char *pathname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue