mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Merge pull request #6595 from annando/notice
Some small notice prevented
This commit is contained in:
commit
cbe2d1745b
1 changed files with 3 additions and 3 deletions
|
@ -775,12 +775,12 @@ class Post extends BaseObject
|
|||
*/
|
||||
private function getDefaultText()
|
||||
{
|
||||
if (!local_user()) {
|
||||
$a = self::getApp();
|
||||
|
||||
if (!local_user() || empty($a->profile['addr'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$a = self::getApp();
|
||||
|
||||
$item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]);
|
||||
if (!DBA::isResult($item) || empty($item['author-addr'])) {
|
||||
// Should not happen
|
||||
|
|
Loading…
Reference in a new issue