mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-30 10:03:17 +00:00
feat: update profile page layout and filters
- Refactored the layout of the profile page for better readability - Updated the filters in the payment section to include 'currentPubkey' and 'content' fields - Made minor changes to the styling and text content - Improved the handling of payment-related information - Fixed some indentation issues for better code readability.
This commit is contained in:
@@ -105,7 +105,14 @@ $searchPaymentEvent = function () {
|
|||||||
'tags' => $event->event->tags,
|
'tags' => $event->event->tags,
|
||||||
'created_at' => $event->event->created_at,
|
'created_at' => $event->event->created_at,
|
||||||
])
|
])
|
||||||
->filter(fn($payment) => collect($payment['tags'])->firstWhere('0', 'e')[1] === $this->currentPleb->paymentEvents->first()->event_id)
|
->filter(fn($payment)
|
||||||
|
=> collect($payment['tags'])->firstWhere('0', 'p')[1] === $this->currentPubkey
|
||||||
|
&& json_decode(
|
||||||
|
collect($payment['tags'])->firstWhere('0', 'description')[1],
|
||||||
|
true,
|
||||||
|
512,
|
||||||
|
JSON_THROW_ON_ERROR,
|
||||||
|
)['content'] == date('Y'))
|
||||||
->values()
|
->values()
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user