mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Merge pull request #5947 from annando/uri-id
Use "uri-id" for item relations
This commit is contained in:
commit
e254ace9d5
4 changed files with 16 additions and 5 deletions
|
@ -665,11 +665,11 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
if (strpos($sql_commands, "`item-activity`.") !== false) {
|
||||
$joins .= " LEFT JOIN `item-activity` ON `item-activity`.`id` = `item`.`iaid`";
|
||||
$joins .= " LEFT JOIN `item-activity` ON `item-activity`.`uri-id` = `item`.`uri-id`";
|
||||
}
|
||||
|
||||
if (strpos($sql_commands, "`item-content`.") !== false) {
|
||||
$joins .= " LEFT JOIN `item-content` ON `item-content`.`id` = `item`.`icid`";
|
||||
$joins .= " LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`";
|
||||
}
|
||||
|
||||
if (strpos($sql_commands, "`item-delivery-data`.") !== false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue