Browse Source

Ensuring that IPostables that are posted as IPostableFragments are updated correctly.

Kenric Nugteren 1 year ago
parent
commit
38dccfc497
1 changed files with 4 additions and 0 deletions
  1. 4 0
      InABox.Core/Postable/PostResult.cs

+ 4 - 0
InABox.Core/Postable/PostResult.cs

@@ -53,6 +53,10 @@ namespace InABox.Core
                 fragmentsList = new List<IPostableFragment<TPostable>>();
                 fragments[type] = fragmentsList;
             }
+            if(fragment is IPostable postableFragment)
+            {
+                postableFragment.Post();
+            }
             fragmentsList.Add(fragment);
         }
     }