[af_redditimgur] handle crossposts

Hey fox,

dunno if it is a bug or a feature request,

reddit crossposts aren’t being processed. While it can be fairly informative with simple changes.

example post: https://www.reddit.com/r/linux/comments/muj52g/how_easy_it_is_to_achieve_blurred_shell/

thanks

media in crossposts should be handled - https://git.tt-rss.org/fox/tt-rss/src/branch/master/plugins/af_redditimgur/init.php#L288

what else is lacking?

The inline text from original post is missing, is it possible to fetch that?

its likely there in the json but i’m not sure what to do with it, append it to original content or do something else.

you can see for yourself, append .json to your url and look through the output. a lot of stuff is there but its so bloated its hard to figure out.

your example doesn’t have any post content, i think, just the embedded picture (of which reddit also has like ten different varieties, all slightly different).

Yeah that was a bad example, sorry I move to experiment with https://www.reddit.com/r/crosspost/ or https://www.reddit.com/r/crosspost/comments/mobo96/welcome_to_rim_ok_were_ok/.json

and there actually is a .crosspost_parent_list [0] > .selftext available

alright. rendering entire post somehow, again, sounds a bit annoying though. i’ll take a look when i’m sufficiently bored, maybe tomorrow.

media is embedded in a flat list too, maybe crossposted text and title could go before media content, so inbetween. i’d prefer to not create some kind of nested monstrosity.

very appreciated of your work!

Hi, any update on this?

i thought about it but i couldn’t figure out how to deal with multiple posts in context of how plugin currently works. it’s on my starred list but there’s (never) any ETA.

maybe someone else figures it out and files a PR.