Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix to embed labels lookup (#550)

* Fix to embed labels lookup

* Fix lint

* Fix lint

authored by

Paul Frazee and committed by
GitHub
173e06f8 301c2e5b

+10 -12
+10 -12
src/lib/labeling/helpers.ts
··· 2 2 AppBskyActorDefs, 3 3 AppBskyEmbedRecordWithMedia, 4 4 AppBskyEmbedRecord, 5 - AppBskyFeedPost, 6 5 AppBskyEmbedImages, 7 6 AppBskyEmbedExternal, 8 7 } from '@atproto/api' ··· 229 228 return [] 230 229 } 231 230 if ( 232 - AppBskyEmbedRecordWithMedia.isView(embed) && 233 - AppBskyEmbedRecord.isViewRecord(embed.record.record) && 234 - AppBskyFeedPost.isRecord(embed.record.record.value) && 235 - AppBskyFeedPost.validateRecord(embed.record.record.value).success 231 + AppBskyEmbedRecord.isView(embed) && 232 + AppBskyEmbedRecord.isViewRecord(embed.record) 236 233 ) { 237 - return embed.record.record.labels || [] 234 + return embed.record.labels || [] 238 235 } 239 236 return [] 240 237 } ··· 312 309 } 313 310 } 314 311 315 - function warnImages(reason: string) { 316 - return { 317 - behavior: ModerationBehaviorCode.WarnImages, 318 - reason, 319 - } 320 - } 312 + // TODO 313 + // function warnImages(reason: string) { 314 + // return { 315 + // behavior: ModerationBehaviorCode.WarnImages, 316 + // reason, 317 + // } 318 + // }