fnic-lemmy / bestofbot

A bot posting weekly "best of" posts to Lemmy
https://lemmy.dbzer0.com/c/lemmydirectory
1 stars 0 forks source link

Support text posts and video #8

Open chris-y opened 5 months ago

chris-y commented 5 months ago

Doesn't support text posts - needs a URL and assumes it's a picture.

Don't know if there is any way to tell if a URL isn't an image (from the Lemmy API)

chris-y commented 5 months ago

I did add a feature to force only images to be included. This is a precursor to allowing other content types as they need to be handled differently to images, and some of our communities need the non-image posts filtered out as we want to showcase images, not accidentally get a META post featured.

chris-y commented 4 months ago

This needs to be the next thing I work on.

I think we have four main types of posts;

M4rtineski commented 4 months ago

@chris-y Do NOT include the body or if you want to make it a setting to disable it for specific communities. Dad jokes for example has punchlines in the body and that would spoiler it.

chris-y commented 4 months ago

Opened #36 which we might need for videos.

chris-y commented 4 months ago

Need to check what we get as URL for the top post when it doesn't contain an image.

chris-y commented 4 months ago

I think this is done bar allowing the description to be disabled. That will wait until we have a community which requires it.