mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Merge remote-tracking branch 'upstream/develop' into share-rework
This commit is contained in:
commit
1a0b63659b
176 changed files with 6001 additions and 5369 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -31,7 +30,7 @@ use Friendica\Model\Post;
|
|||
function share_init(App $a) {
|
||||
$post_id = ((DI::args()->getArgc() > 1) ? intval(DI::args()->getArgv()[1]) : 0);
|
||||
|
||||
if (!$post_id || !Session::getLocalUser()) {
|
||||
if (!$post_id || !DI::userSession()->getLocalUserId()) {
|
||||
System::exit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue