Skip posts in indexer where publish date is nil #356
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#356
Loading…
Reference in a new issue
No description provided.
Delete branch "sn0w/akkoma:feature/indexer-skip-broken-activities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently indexing can fail in a somewhat cryptic way when the DB contains broken activities where the publish date is null. More specifically, this happens:
Looking through my DB it seems that there are only a total of four posts that have this broken structure, most of them being from people messing around with test instances / custom activitypub servers. Of course I could just delete those, but since this kind of stuff might federate in again at any time i think it'd make sense to skip them in the indexer.
yeah we should mandate published on the schema anyhow
i'll make it so we reject without published