mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Minor html_entry() tweaks.
This commit is contained in:
parent
a20e8b8cd5
commit
800bb0123d
1 changed files with 9 additions and 8 deletions
17
html.c
17
html.c
|
@ -500,6 +500,7 @@ xs_html *html_instance_body(char *tag)
|
||||||
|
|
||||||
|
|
||||||
static xs_str *html_instance_header(xs_str *s, char *tag)
|
static xs_str *html_instance_header(xs_str *s, char *tag)
|
||||||
|
/* TO BE REPLACED BY html_instance_body() */
|
||||||
{
|
{
|
||||||
xs_html *head = html_instance_head();
|
xs_html *head = html_instance_head();
|
||||||
|
|
||||||
|
@ -1249,14 +1250,6 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
|
||||||
if (level >= 256)
|
if (level >= 256)
|
||||||
return os;
|
return os;
|
||||||
|
|
||||||
xs *s = xs_str_new("<div>\n");
|
|
||||||
|
|
||||||
{
|
|
||||||
xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5);
|
|
||||||
|
|
||||||
s = xs_str_cat(s, s1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strcmp(type, "Follow") == 0) {
|
if (strcmp(type, "Follow") == 0) {
|
||||||
xs_html *h = xs_html_tag("div",
|
xs_html *h = xs_html_tag("div",
|
||||||
xs_html_attr("class", "snac-post"),
|
xs_html_attr("class", "snac-post"),
|
||||||
|
@ -1292,6 +1285,14 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local,
|
||||||
&& !valid_status(actor_get(actor, NULL)))
|
&& !valid_status(actor_get(actor, NULL)))
|
||||||
return os;
|
return os;
|
||||||
|
|
||||||
|
xs *s = xs_str_new("<div>\n");
|
||||||
|
|
||||||
|
{
|
||||||
|
xs *s1 = xs_fmt("<a name=\"%s_entry\"></a>\n", md5);
|
||||||
|
|
||||||
|
s = xs_str_cat(s, s1);
|
||||||
|
}
|
||||||
|
|
||||||
if (level == 0)
|
if (level == 0)
|
||||||
s = xs_str_cat(s, "<div class=\"snac-post\">\n"); /** **/
|
s = xs_str_cat(s, "<div class=\"snac-post\">\n"); /** **/
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue