Merge pull request #8587 from annando/warning-notices
Fix warning, notice and DB Error
This commit is contained in:
commit
16e9b3fdca
2 changed files with 6 additions and 7 deletions
|
@ -707,7 +707,7 @@ class PostUpdate
|
||||||
while ($delivery = DBA::fetch($deliveries)) {
|
while ($delivery = DBA::fetch($deliveries)) {
|
||||||
$id = $delivery['iid'];
|
$id = $delivery['iid'];
|
||||||
unset($delivery['iid']);
|
unset($delivery['iid']);
|
||||||
DBA::insert('post-delivery-data', $delivery);
|
DBA::insert('post-delivery-data', $delivery, true);
|
||||||
++$rows;
|
++$rows;
|
||||||
}
|
}
|
||||||
DBA::close($deliveries);
|
DBA::close($deliveries);
|
||||||
|
|
|
@ -2073,7 +2073,8 @@ class OStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
// uri-id isn't present for follow entry pseudo-items
|
// uri-id isn't present for follow entry pseudo-items
|
||||||
foreach (Tag::getByURIId($item['uri-id'] ?? 0) as $tag) {
|
$tags = Tag::getByURIId($item['uri-id'] ?? 0);
|
||||||
|
foreach ($tags as $tag) {
|
||||||
$mentioned[$tag['url']] = $tag['url'];
|
$mentioned[$tag['url']] = $tag['url'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2123,11 +2124,9 @@ class OStatus
|
||||||
XML::addElement($doc, $entry, "mastodon:scope", "public");
|
XML::addElement($doc, $entry, "mastodon:scope", "public");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($tags)) {
|
foreach ($tags as $tag) {
|
||||||
foreach ($tags as $tag) {
|
if ($tag['type'] == Tag::HASHTAG) {
|
||||||
if ($tag['type'] == Tag::HASHTAG) {
|
XML::addElement($doc, $entry, "category", "", ["term" => $tag['name']]);
|
||||||
XML::addElement($doc, $entry, "category", "", ["term" => $tag['name']]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue