about summary refs log tree commit diff
path: root/src/state/models/feeds/custom-feed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/feeds/custom-feed.ts')
-rw-r--r--src/state/models/feeds/custom-feed.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/state/models/feeds/custom-feed.ts b/src/state/models/feeds/custom-feed.ts
index 9ac69ac28..8fc1eb1ec 100644
--- a/src/state/models/feeds/custom-feed.ts
+++ b/src/state/models/feeds/custom-feed.ts
@@ -8,13 +8,19 @@ export class CustomFeedModel {
   // data
   _reactKey: string
   data: AppBskyFeedDefs.GeneratorView
+  isOnline: boolean
+  isValid: boolean
 
   constructor(
     public rootStore: RootStoreModel,
     view: AppBskyFeedDefs.GeneratorView,
+    isOnline?: boolean,
+    isValid?: boolean,
   ) {
     this._reactKey = view.uri
     this.data = view
+    this.isOnline = isOnline ?? true
+    this.isValid = isValid ?? true
     makeAutoObservable(
       this,
       {
@@ -103,6 +109,8 @@ export class CustomFeedModel {
     })
     runInAction(() => {
       this.data = res.data.view
+      this.isOnline = res.data.isOnline
+      this.isValid = res.data.isValid
     })
   }