Skip to content

Fix processing of remote Delete activities#16084

Merged
Gargron merged 9 commits intomastodon:mainfrom
ClearlyClaire:fixes/delete-fixes
Apr 21, 2021
Merged

Fix processing of remote Delete activities#16084
Gargron merged 9 commits intomastodon:mainfrom
ClearlyClaire:fixes/delete-fixes

Conversation

@ClearlyClaire
Copy link
Copy Markdown
Contributor

  • fixes remotely-deleted toots not being marked as deleted if locally reported
  • fixes potential race condition when receiving multiple Deletes for a single toot
  • avoids some cause of duplicated activity forwarding

@Gargron Gargron merged commit 0b36e34 into mastodon:main Apr 21, 2021
ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this pull request Jan 28, 2022
* Add tests

* Ensure deleted statuses are marked as such

* Save some redis memory by not storing URIs in delete_upon_arrival values

* Avoid possible race condition when processing incoming Deletes

* Avoid potential duplicate Delete forwards

* Lower lock durations to reduce issues in case of hard crash of the Rails process

* Check for `lock.aquired?` and improve comment

* Refactor RedisLock usage in app/lib/activitypub

* Fix using incorrect or non-existent sender for relaying Deletes
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
* Add tests

* Ensure deleted statuses are marked as such

* Save some redis memory by not storing URIs in delete_upon_arrival values

* Avoid possible race condition when processing incoming Deletes

* Avoid potential duplicate Delete forwards

* Lower lock durations to reduce issues in case of hard crash of the Rails process

* Check for `lock.aquired?` and improve comment

* Refactor RedisLock usage in app/lib/activitypub

* Fix using incorrect or non-existent sender for relaying Deletes
tcarrio pushed a commit to tcarrio/mastodon that referenced this pull request Mar 16, 2024
* Add tests

* Ensure deleted statuses are marked as such

* Save some redis memory by not storing URIs in delete_upon_arrival values

* Avoid possible race condition when processing incoming Deletes

* Avoid potential duplicate Delete forwards

* Lower lock durations to reduce issues in case of hard crash of the Rails process

* Check for `lock.aquired?` and improve comment

* Refactor RedisLock usage in app/lib/activitypub

* Fix using incorrect or non-existent sender for relaying Deletes
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