feat(feed): hide web-moderated posts in mobile feeds - #14
Conversation
Mirror skatehive3.0's filterAutoComments on mobile so the app hides the same posts the web hides. Moderation happens on the web (admins downvote with their Hive account); the app reads the on-chain active_votes and applies the same rules: - primary admin solo downvote, or 2+ regular-admin downvote quorum - 2+ total community downvotes - negative author reputation - @hivebuzz auto-comments - Bridge stats.hide - author-deleted placeholders (title "removed" / body "deleted") New lib/moderation.ts exposes isHiddenByModeration() (used in the snaps Feed, hides even the author's own moderated posts) and filterModeratedPosts() (used in the video feed). VideoPost.active_votes gains rshares/percent so downvote detection matches the web's signed-field check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 47 minutes and 13 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Ports skatehive3.0's
filterAutoCommentsmoderation to the mobile app so the feed hides the same posts the web hides. Moderation itself stays on the web (admins downvote with their Hive account); the app just reads the on-chainactive_votesand applies the identical rules.New
lib/moderation.ts:isHiddenByModeration(post)— used in the snapsFeed(hides moderated posts for everyone, including the author's own, matching web).filterModeratedPosts(posts)— used in the video feed (useQueries).A post is hidden when any of these hold (1:1 with the web):
@hivebuzzauto-commentstats.hide === trueremoved/ bodydeleted)Admin list matches the web's
NEXT_PUBLIC_ADMIN_USERS(xvlad, steemskate, gnars, web-gnar, knowhow92; no primary admins configured).VideoPost.active_votesgainsrshares/percentso downvote detection uses the same signed-field check as the web.Faithfulness to the web source
Compared line-by-line against
apps/skatehive3.0/lib/utils/postUtils.ts. Same six hide conditions, same dedupe, same reputation conversion, same quorum logic. Two intentional, safe divergences:typeof voter === "string"guard on votes (defensive);Verification
tsc --noEmit→ exit 0 (0 errors).active_votes/reputation.🤖 Generated with Claude Code