Commit e1e0bb4
fix: prevent NoMethodError from LD-Signature failure and tag race
LinkedDataSignature#verify_account! returned `false` from the
OpenSSL::PKey::RSAError rescue, which slipped past the `.nil?` check
in ProcessCollectionService and left `@account = false`, causing
`false.suspended?` later on. Return nil instead to match the rest of
the method's contract.
Tag.find_or_create_by_names silently returned nil when the post-
RecordNotUnique re-lookup failed (e.g. under read-replica lag),
which surfaced far away as `nil.valid?` in Activity::Create#process_hashtag.
Re-raise the original RecordNotUnique so Sidekiq retries the job
instead of propagating a nil tag through the pipeline.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6a7878b commit e1e0bb4
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
0 commit comments