The code for my Bluesky feed generator
0
fork

Configure Feed

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

Just change one boolean's var name

Tyler Cheek 0d099511 94469fac

+4 -4
+4 -4
server/data_filter.py
··· 53 53 author = created_post['author'] 54 54 record = created_post['record'] 55 55 56 - post_with_images = isinstance(record.embed, models.AppBskyEmbedImages.Main) 57 - post_with_video = isinstance(record.embed, models.AppBskyEmbedVideo.Main) 56 + is_post_with_images = isinstance(record.embed, models.AppBskyEmbedImages.Main) 57 + is_post_with_video = isinstance(record.embed, models.AppBskyEmbedVideo.Main) 58 58 inlined_text = record.text.replace('\n', ' ') 59 59 60 60 # print all texts just as demo that data stream works ··· 62 62 f'NEW POST ' 63 63 f'[CREATED_AT={record.created_at}]' 64 64 f'[AUTHOR={author}]' 65 - f'[WITH_IMAGE={post_with_images}]' 66 - f'[WITH_VIDEO={post_with_video}]' 65 + f'[WITH_IMAGE={is_post_with_images}]' 66 + f'[WITH_VIDEO={is_post_with_video}]' 67 67 f': {inlined_text}' 68 68 ) 69 69