Browse Source

Markdown is now supported in the location field as well.

pull/1285/head
Michael Vogel 7 years ago
parent
commit
044eaa778f
  1. 2
      include/diaspora.php
  2. 2
      mod/display.php

2
include/diaspora.php

@ -2161,7 +2161,7 @@ function diaspora_profile($importer,$xml,$msg) {
$name = unxmlify($xml->first_name) . ((strlen($xml->last_name)) ? ' ' . unxmlify($xml->last_name) : '');
$image_url = unxmlify($xml->image_url);
$birthday = unxmlify($xml->birthday);
$location = unxmlify($xml->location);
$location = diaspora2bb(unxmlify($xml->location));
$about = diaspora2bb(unxmlify($xml->bio));

2
mod/display.php

@ -94,7 +94,7 @@ function display_fetchauthor($a, $item) {
normalise_link($profiledata["url"]), $item["uid"]);
if (count($r)) {
$profiledata["photo"] = proxy_url($r[0]["photo"]);
$profiledata["address"] = $r[0]["location"];
$profiledata["address"] = bbcode($r[0]["location"]);
$profiledata["about"] = bbcode($r[0]["about"]);
if ($r[0]["nick"] != "")
$profiledata["nickname"] = $r[0]["nick"];

Loading…
Cancel
Save