[PLUGINS][Favourite][RepeatNote][DeleteNote][WebMonetization] Make use of 'activitypub_handler' more readable
This commit is contained in:
@@ -66,7 +66,7 @@ class WebMonetization extends Plugin
|
||||
|
||||
if ($vars['path'] === 'settings') {
|
||||
$is_self = true;
|
||||
} elseif ($vars['path'] === 'actor_view_nickname') {
|
||||
} elseif ($vars['path'] === 'actor_view_nickname') {
|
||||
$is_self = $request->attributes->get('nickname') === $user->getNickname();
|
||||
if (!$is_self) {
|
||||
$receiver_id = DB::findOneBy(LocalUser::class, [
|
||||
@@ -258,7 +258,7 @@ class WebMonetization extends Plugin
|
||||
$wallet = DB::findOneBy(Wallet::class, ['actor_id' => $actor->getId()], return_null: true);
|
||||
|
||||
if (!\is_null($address = $wallet?->getAddress())) {
|
||||
$type->set('gs:webmonetizationWallet', $address);
|
||||
$type->set('webmonetizationWallet', $address);
|
||||
}
|
||||
}
|
||||
return Event::next;
|
||||
|
Reference in New Issue
Block a user