mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Post class introduced in "mod" and "include"
This commit is contained in:
parent
3ab4e20fe6
commit
65c8f33754
13 changed files with 52 additions and 41 deletions
|
@ -34,6 +34,7 @@ use Friendica\DI;
|
|||
use Friendica\Model\Conversation;
|
||||
use Friendica\Model\Event;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\BaseProfile;
|
||||
use Friendica\Module\Security\Login;
|
||||
|
@ -589,7 +590,7 @@ function events_content(App $a)
|
|||
Item::deleteForUser(['id' => $ev[0]['itemid']], local_user());
|
||||
}
|
||||
|
||||
if (Item::exists(['id' => $ev[0]['itemid']])) {
|
||||
if (Post::exists(['id' => $ev[0]['itemid']])) {
|
||||
notice(DI::l10n()->t('Failed to remove event'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue