mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Don't call mod/item.php anymore
This commit is contained in:
parent
fc3222cd2d
commit
7338b5de59
4 changed files with 21 additions and 49 deletions
|
@ -10,12 +10,10 @@ use Friendica\App;
|
|||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
|
@ -152,8 +150,6 @@ function ifttt_post(App $a)
|
|||
|
||||
function ifttt_message($uid, $item)
|
||||
{
|
||||
$a = DI::app();
|
||||
|
||||
$post = [];
|
||||
$post['uid'] = $uid;
|
||||
$post['app'] = 'IFTTT';
|
||||
|
@ -184,5 +180,5 @@ function ifttt_message($uid, $item)
|
|||
$link = hash('ripemd128', $item['msg']);
|
||||
}
|
||||
|
||||
Post\Delayed::add($link, $post, Worker::PRIORITY_MEDIUM, Post\Delayed::UNPREPARED);
|
||||
Post\Delayed::add($link, $post, Worker::PRIORITY_MEDIUM, Post\Delayed::PREPARED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue