mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Direct calls to the database are replace by class calls to the item class
This commit is contained in:
parent
997d006349
commit
8b049a96bd
3 changed files with 11 additions and 38 deletions
|
@ -600,11 +600,7 @@ function statusnet_post_hook(App $a, &$b)
|
|||
logger('Send to GNU Social failed: "' . $result->error . '"');
|
||||
} elseif ($iscomment) {
|
||||
logger('statusnet_post: Update extid ' . $result->id . " for post id " . $b['id']);
|
||||
q("UPDATE `item` SET `extid` = '%s', `body` = '%s' WHERE `id` = %d",
|
||||
dbesc($hostname . "::" . $result->id),
|
||||
dbesc($result->text),
|
||||
intval($b['id'])
|
||||
);
|
||||
Item::update(['extid' => $hostname . "::" . $result->id, 'body' => $result->text], ['id' => $b['id']]);
|
||||
}
|
||||
}
|
||||
if ($tempfile != "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue