Commit 81d5964
committed
fix(unip-01): resolve marked owner by latest event; null-safe marker check
Addresses review feedback on #6:
- queryWithFirstSeenWins: read the UNIP-01 marker from each author's latest
(per NIP-33 replaceable) event rather than a separately tracked latestMarked,
so a newer unmarked update correctly drops the author from the marked set.
Removed the latestMarked field/tracking (AuthorState back to 2-arg).
- hasNametagOwnershipMarker: null-check tag entries to avoid an NPE on a
malformed tags list.1 parent 16a1bf1 commit 81d5964
2 files changed
Lines changed: 12 additions & 18 deletions
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
784 | 787 | | |
785 | 788 | | |
786 | | - | |
787 | | - | |
| 789 | + | |
| 790 | + | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
| |||
819 | 822 | | |
820 | 823 | | |
821 | 824 | | |
822 | | - | |
823 | 825 | | |
824 | 826 | | |
825 | 827 | | |
826 | | - | |
| 828 | + | |
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
| 834 | + | |
838 | 835 | | |
839 | 836 | | |
840 | 837 | | |
| |||
1730 | 1727 | | |
1731 | 1728 | | |
1732 | 1729 | | |
1733 | | - | |
1734 | | - | |
1735 | 1730 | | |
1736 | | - | |
| 1731 | + | |
1737 | 1732 | | |
1738 | 1733 | | |
1739 | | - | |
1740 | 1734 | | |
1741 | 1735 | | |
1742 | 1736 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
0 commit comments