Skip to content

Claude/add wallet transfers 74 phc#564

Merged
asim merged 3 commits intomainfrom
claude/add-wallet-transfers-74PHC
Apr 16, 2026
Merged

Claude/add wallet transfers 74 phc#564
asim merged 3 commits intomainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Apr 16, 2026

No description provided.

claude added 3 commits April 16, 2026 04:43
The 10-second polling was replacing innerHTML and resetting the
scroll to top. Now refresh() saves and restores feed.scrollTop.
Only scrolls to top explicitly after posting a new status.
GetProfile returns a pointer to the map entry. Callers were mutating
profile.Status before calling UpdateProfile — but UpdateProfile reads
the 'old' status from the same map, which was already the new value.
Result: new status pushed to history AND set as current → duplicate
on screen. History also doubled on each save because existing.History
and profile.History were the same slice.

Fix: new UpdateStatus(userID, newStatus) helper passes a fresh
&Profile{} to UpdateProfile. Since it's not the map pointer, the
existing lookup correctly reads the old status. All three call sites
(StatusHandler, profile page POST, PostSystemStatus) now use
UpdateStatus instead of mutating the GetProfile pointer.
Three fixes for ongoing spam:

1. Profile page POST (/@user) was completely unguarded — no CanPost,
   no CheckPostRate, no wallet charge, no moderation. Same gates as
   StatusHandler now applied: verification, rate limit, 1 credit
   charge, async moderation with auto-ban.

2. CanPost now requires 24-hour account age for ALL post types (blog,
   social, status, apps, work). Previously only required email
   verification. New accounts must wait 24 hours AND verify their
   email. PostBlockReason shows the remaining time.

3. Moderation prompt tightened — explicitly flags vulgar, crude,
   sexual, and obscene content as HARMFUL. Added 'when in doubt,
   flag it' instruction. 'Big fat balls' will now be caught.
@asim asim merged commit f2b790d into main Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants