Summary
Follow logging creates a new follow record for every successful follow request even when the underlying follow operation is already complete.
Repeated requests, retries, and double-clicks generate duplicate analytics entries.
Affected Files
Root Cause
The follow workflow records every successful follow action without enforcing uniqueness or idempotency guarantees.
Although external follow operations may be idempotent, the logging layer continues creating additional records.
Reproduction
- Follow a target account successfully.
- Repeat the same follow request multiple times.
- Observe multiple follow log entries being created.
- Review analytics totals.
- Observe inflated follow metrics.
Expected Behavior
Repeated follow requests should not create duplicate follow records once the follow relationship already exists.
Actual Behavior
Each request generates additional analytics entries.
Why This Is Difficult To Detect
Most tests validate individual follow requests and do not simulate retries or duplicate submissions.
Production Impact
- Inflated analytics
- Incorrect follow counts
- Misleading engagement metrics
- Duplicate historical records
Suggested Fix
Introduce idempotent follow logging using uniqueness constraints, upserts, or request-level idempotency protections.
Severity
High
Summary
Follow logging creates a new follow record for every successful follow request even when the underlying follow operation is already complete.
Repeated requests, retries, and double-clicks generate duplicate analytics entries.
Affected Files
Root Cause
The follow workflow records every successful follow action without enforcing uniqueness or idempotency guarantees.
Although external follow operations may be idempotent, the logging layer continues creating additional records.
Reproduction
Expected Behavior
Repeated follow requests should not create duplicate follow records once the follow relationship already exists.
Actual Behavior
Each request generates additional analytics entries.
Why This Is Difficult To Detect
Most tests validate individual follow requests and do not simulate retries or duplicate submissions.
Production Impact
Suggested Fix
Introduce idempotent follow logging using uniqueness constraints, upserts, or request-level idempotency protections.
Severity
High