|
|
@@ -3363,6 +3363,44 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
|
|
|
xs_html_attr("class", "snac-metadata"));
|
|
|
|
|
|
int count = 0;
|
|
|
+ const xs_val *address = xs_dict_get(actor, "vcard:Address");
|
|
|
+ if (xs_is_string(address)) {
|
|
|
+ xs_html_add(snac_metadata,
|
|
|
+ xs_html_tag("span",
|
|
|
+ xs_html_attr("class", "snac-property-name"),
|
|
|
+ xs_html_raw("📍 Location")),
|
|
|
+ xs_html_text(":"),
|
|
|
+ xs_html_raw(" "),
|
|
|
+ xs_html_tag("span",
|
|
|
+ xs_html_attr("class", "snac-property-value p-adr"),
|
|
|
+ xs_html_text(address)),
|
|
|
+ xs_html_sctag("br", NULL));
|
|
|
+
|
|
|
+ count++;
|
|
|
+ }
|
|
|
+
|
|
|
+ const xs_val *birthday = xs_dict_get(actor, "vcard:bday");
|
|
|
+ if (xs_is_string(birthday)) {
|
|
|
+ xs_html_add(snac_metadata,
|
|
|
+ xs_html_tag("span",
|
|
|
+ xs_html_attr("class", "snac-property-name"),
|
|
|
+ xs_html_raw("🎂 Birthday")),
|
|
|
+ xs_html_text(":"),
|
|
|
+ xs_html_raw(" "),
|
|
|
+ xs_html_tag("time",
|
|
|
+ xs_html_attr("class", "snac-property-value dt-bday"),
|
|
|
+ xs_html_text(birthday)),
|
|
|
+ xs_html_sctag("br", NULL));
|
|
|
+
|
|
|
+ count++;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (count > 0) {
|
|
|
+ xs_html_add(snac_metadata,
|
|
|
+ xs_html_sctag("hr",
|
|
|
+ xs_html_attr("class", "snac-property-divider")));
|
|
|
+ }
|
|
|
+
|
|
|
const xs_val *v;
|
|
|
const xs_list *attachment = xs_dict_get(actor, "attachment");
|
|
|
xs_list_foreach(attachment, v) {
|