- return processUndoLike(activity.actor, activity)
- } else if (activityToUndo.type === 'Create' && activityToUndo.object.type === 'Dislike') {
- return processUndoDislike(activity.actor, activity)
- } else if (activityToUndo.type === 'Follow') {
- return processUndoFollow(activity.actor, activityToUndo)
+ return retryTransactionWrapper(processUndoLike, byActor, activity)
+ }
+
+ if (activityToUndo.type === 'Create') {
+ if (activityToUndo.object.type === 'CacheFile') {
+ return retryTransactionWrapper(processUndoCacheFile, byActor, activity)
+ }
+ }
+
+ if (activityToUndo.type === 'Dislike') {
+ return retryTransactionWrapper(processUndoDislike, byActor, activity)
+ }
+
+ if (activityToUndo.type === 'Follow') {
+ return retryTransactionWrapper(processUndoFollow, byActor, activityToUndo)
+ }
+
+ if (activityToUndo.type === 'Announce') {
+ return retryTransactionWrapper(processUndoAnnounce, byActor, activityToUndo)