mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-10 21:54:26 +02:00
Bugfix: Diaspora retractions not always worked
This commit is contained in:
parent
7430e83679
commit
80d787d990
2 changed files with 52 additions and 25 deletions
|
@ -240,6 +240,11 @@ function delete_thread_uri($itemuri, $uid) {
|
|||
function delete_thread($itemid, $itemuri = "") {
|
||||
$item = q("SELECT `uid` FROM `thread` WHERE `iid` = %d", intval($itemid));
|
||||
|
||||
if (!dbm::is_result($item)) {
|
||||
logger('No thread found for id '.$itemid, LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
// Using dba::delete at this time could delete the associated item entries
|
||||
$result = q("DELETE FROM `thread` WHERE `iid` = %d", intval($itemid));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue