Merge pull request #13701 from annando/diaspora-events
Fix transmission of events to Diaspora
This commit is contained in:
commit
e22e58f5b8
2 changed files with 5 additions and 1 deletions
|
@ -2171,6 +2171,9 @@ class BBCode
|
||||||
// Maybe we should make this newline at every time before a quote.
|
// Maybe we should make this newline at every time before a quote.
|
||||||
$text = str_replace(['</a><blockquote>'], ['</a><br><blockquote>'], $text);
|
$text = str_replace(['</a><blockquote>'], ['</a><br><blockquote>'], $text);
|
||||||
|
|
||||||
|
// The converter doesn't convert these elements
|
||||||
|
$text = str_replace(['<div>', '</div>'], ['<p>', '</p>'], $text);
|
||||||
|
|
||||||
// Now convert HTML to Markdown
|
// Now convert HTML to Markdown
|
||||||
$text = HTML::toMarkdown($text);
|
$text = HTML::toMarkdown($text);
|
||||||
|
|
||||||
|
|
|
@ -3403,7 +3403,8 @@ class Diaspora
|
||||||
if ($item['event-id'] > 0) {
|
if ($item['event-id'] > 0) {
|
||||||
$event = self::buildEvent($item['event-id']);
|
$event = self::buildEvent($item['event-id']);
|
||||||
if (count($event)) {
|
if (count($event)) {
|
||||||
$message['event'] = $event;
|
// Deactivated, since Diaspora seems to have problems with the processing.
|
||||||
|
// $message['event'] = $event;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!empty($event['location']['address']) &&
|
!empty($event['location']['address']) &&
|
||||||
|
|
Loading…
Reference in a new issue