mirror of
https://github.com/friendica/friendica
synced 2025-09-18 04:43:02 +02:00
Improve quote share ("message_id" added)
This commit is contained in:
parent
fe442683ef
commit
48182a95fb
8 changed files with 27 additions and 27 deletions
|
@ -883,7 +883,7 @@ class Processor
|
|||
return '';
|
||||
}
|
||||
|
||||
$shared_item = Post::selectFirst(['author-name', 'author-link', 'author-avatar', 'plink', 'created', 'guid', 'title', 'body'], ['id' => $id]);
|
||||
$shared_item = Post::selectFirst(['author-name', 'author-link', 'author-avatar', 'plink', 'created', 'guid', 'uri', 'title', 'body'], ['id' => $id]);
|
||||
if (!DBA::isResult($shared_item)) {
|
||||
return '';
|
||||
}
|
||||
|
@ -894,7 +894,8 @@ class Processor
|
|||
$shared_item['author-avatar'],
|
||||
$shared_item['plink'],
|
||||
$shared_item['created'],
|
||||
$shared_item['guid']
|
||||
$shared_item['guid'],
|
||||
$shared_item['uri'],
|
||||
);
|
||||
|
||||
if (!empty($shared_item['title'])) {
|
||||
|
|
|
@ -2483,7 +2483,8 @@ class Diaspora
|
|||
$original_item['author-avatar'],
|
||||
$original_item['plink'],
|
||||
$original_item['created'],
|
||||
$original_item['guid']
|
||||
$original_item['guid'],
|
||||
$original_item['uri'],
|
||||
);
|
||||
|
||||
if (!empty($original_item['title'])) {
|
||||
|
@ -4181,7 +4182,7 @@ class Diaspora
|
|||
|
||||
public static function performReshare(int $UriId, int $uid): int
|
||||
{
|
||||
$fields = ['uri-id', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
|
||||
$fields = ['uri-id', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink', 'uri'];
|
||||
$item = Post::selectFirst($fields, ['uri-id' => $UriId, 'uid' => [$uid, 0], 'private' => [Item::PUBLIC, Item::UNLISTED]]);
|
||||
if (!DBA::isResult($item)) {
|
||||
return 0;
|
||||
|
@ -4191,7 +4192,7 @@ class Diaspora
|
|||
$pos = strpos($item['body'], '[share');
|
||||
$post = substr($item['body'], $pos);
|
||||
} else {
|
||||
$post = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'], $item['plink'], $item['created'], $item['guid']);
|
||||
$post = BBCode::getShareOpeningTag($item['author-name'], $item['author-link'], $item['author-avatar'], $item['plink'], $item['created'], $item['guid'], $item['uri']);
|
||||
|
||||
if (!empty($item['title'])) {
|
||||
$post .= '[h3]' . $item['title'] . "[/h3]\n";
|
||||
|
|
|
@ -51,12 +51,12 @@ class Email
|
|||
|
||||
$errors = imap_errors();
|
||||
if (!empty($errors)) {
|
||||
Logger::warning('IMAP Errors occured', ['errors' => $errors]);
|
||||
Logger::notice('IMAP Errors occured', ['errors' => $errors]);
|
||||
}
|
||||
|
||||
$alerts = imap_alerts();
|
||||
if (!empty($alerts)) {
|
||||
Logger::warning('IMAP Alerts occured: ', ['alerts' => $alerts]);
|
||||
Logger::notice('IMAP Alerts occured: ', ['alerts' => $alerts]);
|
||||
}
|
||||
|
||||
return $mbox;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue