Issue 5653: The mastodonemoji addon hadn't got all needed data.

This commit is contained in:
Michael 2018-08-29 20:46:52 +00:00
parent c7f8f190b9
commit c72d1bc8fd

View file

@ -1462,15 +1462,6 @@ class Item extends BaseObject
return 0; return 0;
} }
// These fields aren't stored anymore in the item table, they are fetched upon request
unset($item['author-link']);
unset($item['author-name']);
unset($item['author-avatar']);
unset($item['owner-link']);
unset($item['owner-name']);
unset($item['owner-avatar']);
if ($item['network'] == Protocol::PHANTOM) { if ($item['network'] == Protocol::PHANTOM) {
logger('Missing network. Called by: '.System::callstack(), LOGGER_DEBUG); logger('Missing network. Called by: '.System::callstack(), LOGGER_DEBUG);
@ -1708,6 +1699,15 @@ class Item extends BaseObject
unset($item['postopts']); unset($item['postopts']);
unset($item['inform']); unset($item['inform']);
// These fields aren't stored anymore in the item table, they are fetched upon request
unset($item['author-link']);
unset($item['author-name']);
unset($item['author-avatar']);
unset($item['owner-link']);
unset($item['owner-name']);
unset($item['owner-avatar']);
DBA::transaction(); DBA::transaction();
$ret = DBA::insert('item', $item); $ret = DBA::insert('item', $item);