File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1175,14 +1175,16 @@ class Normal extends RenderModel {
1175
1175
if (isFavored != null ) return isFavored! ;
1176
1176
final List <int >? favorites =
1177
1177
await (ForumRepository .getInstance ().getFavoriteHoleId ());
1178
- return favorites! .any ((elementId) => elementId == hole.hole_id);
1178
+ isFavored = favorites! .any ((elementId) => elementId == hole.hole_id);
1179
+ return isFavored! ;
1179
1180
}
1180
1181
1181
1182
Future <bool > isHoleSubscribed () async {
1182
1183
if (isSubscribed != null ) return isSubscribed! ;
1183
1184
final List <int >? subscriptions =
1184
1185
await (ForumRepository .getInstance ().getSubscribedHoleId ());
1185
- return subscriptions! .any ((elementId) => elementId == hole.hole_id);
1186
+ isSubscribed = subscriptions! .any ((elementId) => elementId == hole.hole_id);
1187
+ return isSubscribed! ;
1186
1188
}
1187
1189
}
1188
1190
You can’t perform that action at this time.
0 commit comments