kopia lustrzana https://github.com/pixelfed/pixelfed
Update NotificationService, fix account attribute
rodzic
533f7165a9
commit
949b7bb6ea
|
@ -107,7 +107,9 @@ class NotificationService {
|
||||||
foreach($ids as $id) {
|
foreach($ids as $id) {
|
||||||
$n = self::rewriteMastodonTypes(self::getNotification($id));
|
$n = self::rewriteMastodonTypes(self::getNotification($id));
|
||||||
if($n != null && in_array($n['type'], self::MASTODON_TYPES)) {
|
if($n != null && in_array($n['type'], self::MASTODON_TYPES)) {
|
||||||
$n['account'] = AccountService::getMastodon($n['account']['id']);
|
if(isset($n['account'])) {
|
||||||
|
$n['account'] = AccountService::getMastodon($n['account']['id']);
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($n['relationship'])) {
|
if(isset($n['relationship'])) {
|
||||||
unset($n['relationship']);
|
unset($n['relationship']);
|
||||||
|
@ -135,7 +137,9 @@ class NotificationService {
|
||||||
foreach($ids as $id) {
|
foreach($ids as $id) {
|
||||||
$n = self::rewriteMastodonTypes(self::getNotification($id));
|
$n = self::rewriteMastodonTypes(self::getNotification($id));
|
||||||
if($n != null && in_array($n['type'], self::MASTODON_TYPES)) {
|
if($n != null && in_array($n['type'], self::MASTODON_TYPES)) {
|
||||||
$n['account'] = AccountService::getMastodon($n['account']['id']);
|
if(isset($n['account'])) {
|
||||||
|
$n['account'] = AccountService::getMastodon($n['account']['id']);
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($n['relationship'])) {
|
if(isset($n['relationship'])) {
|
||||||
unset($n['relationship']);
|
unset($n['relationship']);
|
||||||
|
|
Ładowanie…
Reference in New Issue