mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
New post class in model classes
This commit is contained in:
parent
3ab4e20fe6
commit
b0d1a295fe
9 changed files with 77 additions and 76 deletions
|
@ -23,6 +23,7 @@ namespace Friendica\Model\Post;
|
|||
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\Tag;
|
||||
|
||||
/**
|
||||
|
@ -72,7 +73,7 @@ class Category
|
|||
*/
|
||||
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
|
||||
{
|
||||
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||
$message = Post::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||
if (DBA::isResult($message)) {
|
||||
// Clean up all tags
|
||||
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue