mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
The "[attach]" field is replaced by the "post-media" table
This commit is contained in:
parent
6d9e170502
commit
d383f49f1e
7 changed files with 58 additions and 104 deletions
|
@ -52,7 +52,7 @@ class Fetch extends BaseModule
|
|||
// Fetch the item
|
||||
$fields = [
|
||||
'uid', 'title', 'body', 'guid', 'contact-id', 'private', 'created', 'received', 'app', 'location', 'coord', 'network',
|
||||
'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'attach'
|
||||
'event-id', 'resource-id', 'author-link', 'author-avatar', 'author-name', 'plink', 'owner-link', 'attach', 'uri-id'
|
||||
];
|
||||
$condition = ['wall' => true, 'private' => [Item::PUBLIC, Item::UNLISTED], 'guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
|
||||
$item = Item::selectFirst($fields, $condition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue