r/Devvit • App Developer • 7d ago

Discussion I'm starting to hate devvit

I'm happy at what I was able to accomplish with devvit but everything is turning into work arounds. First issue I can't re-verify my domain after it was rejected, for what I assume is for not putting my privacy and terms in the app setting before I applied. So now my domain exception is stuck in the rejected state.. Awesome.. I messaged the devvit mods, crickets.. Did I really expect anything else? Not really.. So the work around is to update the package daily before the post. Super..

Developers want to post images that show up as a carousel so people can you know.. actually see the photos in their feed or by looking through a subreddit.. No native devvit support for carousels. OK.. work around is to post the photo without the carousel.. That photo will not show in the feed or subreddit unless the post itself is viewed. OK.. The work around is to do the post with a single picture and make it sticky so the photo will rinder in feeds and when looking through the subreddit, you know, like a normal post. I can only post 1 photo. OK.. sure.. Work around could be a link to see the rest of the photos.. Well that doesn't work because for some reason if you post the photo so it is sticky, so it actually shows up in feeds and subreddits, you can't post any text to the body of the post.. Awesome.. What the hell am I even doing at this point? There are so many work arounds I forgot what the point of it is...

I'm done ranting.. So I guess if you get anything out of this, devvit team people, if you even see this: devvit is great but having to workaround everything, and worse, change what you want to do to deal with the current limitations of devvit, that makes for a horrible developer experience...

EoF...

15 Upvotes

13 comments sorted by

5

u/jogalleciez 7d ago

Lateral solutions with withered tech.

2

u/Joinaroo App Developer 7d ago edited 7d ago

I dont know what that means but somehow I think we feel each other's pain here..

Work arounds need more work arounds.. (lateral solutions).. I get it... I appreciate it.. At least someone else here feels my pain and isn't a downvoting devvit nerd.. You know, someone who has built something other than the 10000th hot shots basketball game clone which is what devvit seems best at.. Thank you..

I'm frustrated if you can't tell.. I have been in a devvit k-hole for 3 days now..

2

u/jogalleciez 7d ago

https://medium.com/@adamagb/nintendo-s-little-known-product-philosophy-lateral-thinking-with-withered-technology-bac7257d8f4

Do what you can with what you've got. The answer is there if you can find it. Also they're updating devvit often so the answer can come eventually.

2

u/Joinaroo App Developer 7d ago

Fair... And agreed...

2

u/Fabzrocks 7d ago

My gosh! That’s literally what has been going on with me this past week 😭😮‍💨 had to replace the rejected domain with a different domain (thank goodness there is a different option I could choose from) since it looked like the rejected one isn’t gonna get put up for any updates so I’m stuck hoping the second one gets cleared and approved 😮‍💨 if not I’ll have to change up my idea to scrap that part off completely 🥹

1

u/Joinaroo App Developer 7d ago

Sorry to hear that... So frustrating... Maybe you can make a subdomain (reddit.domain.com) and have the subdomain point to the same place.

I was hoping my mod mail would fix this but doubtful of that now. I probably will go the subdomain route and see if I can get it approved that way. I haven't tried that yet but that is what I am thinking my next step will be.

2

u/Fabzrocks 7d ago

Ohhh that sounds like a way to go. Thank you! I’ll give it a try

1

u/Joinaroo App Developer 7d ago

Yeah I will try also, tomorrow hopefully. I have accepted my faith with devvit and it is now work around time..

2

u/Icy-Examination-2255 6d ago

Felt this. I'm building a daily game on Devvit right now and half my time goes to ok, so how do I do this without the thing I actually need :) The platform is genuinely fun when it works and 99/9% of the time it works, which makes the gaps more frustrating, not less.For the domain thing, have you tried the Devvit Discord? Devvit community is generously amazing there. Best of luck!

1

u/Joinaroo App Developer 6d ago

I'll try the discord. Solid advice. Thank you..

1

u/Beach-Brews Duck Helper 7d ago

What exactly are you trying to do? It sounds like automatically post a carousel of images every day based on some HTTP Fetch call to your own domain?

First, I believe "carousel image posts" is something they recently added support for. You are not the only one who has asked for the native image carousel. In 0.15.0, the "SubmitMediaOptions" has an optional "imageUrls?: [string];" to post multiple images. However, individual captions are not supported it seems.

Second, you can definitely add body text to photo posts, but there is a typescript bug that prevented you from doing so. I reported this back in March (see below). I modified it to include the "imageUrls" instead and it is untested.

Third, from a domain prospective, Reddit is not going to allow API access to a "personal domain." This would allow you to potentially exfiltrate Reddit post data. They are very picky on where HTTP calls can go. I would need to know more about your use case before I can provide some suggestions on how to proceed.

Posting an Image / Media Carousel Post with Text Description

// Type definition for SubmitPostOptions
export type SubmitPostOptions = (SubmitLinkOptions & {
    richtext?: never; // <--\    ^^^^^^^^^^^^^^^^^ 
    text?: never;     // <--- Not allowed for Link posts
    kind?: never;
}) | (SubmitSelfPostOptions & {
    kind?: never;
    url?: never;
}) | (SubmitMediaOptions & {
    richtext?: never;  // <--- Not allowed for Media/Image posts
    text?: never;      // <--- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    url?: never;
});

// Create a image post with a post body
await reddit.submitPost({
  subredditName: context.subredditName,
  title: 'Test Link Title',
  kind: 'image',
  imageUrls: [
    '/img/gvlh3ut1dk2i1.jpeg',
    '/img/dwg1dut1dk2i1.jpeg'
  ],
  // @ts-expect-error The post body text works if forced, but explicitly removed from the type def?
  text: 'Testing **bold markdown** text description. This may contain some more details.'
});

1

u/Joinaroo App Developer 6d ago

Just automating a subreddit r/portlandmeEvents

I'll try your code this morning and report back. Almost positive that image carousels are not supported still.

I'm just trying to make an API call so that I can get updated events to post daily schedules. Post pictures from events from the night before. Basic stuff like that. From what I understand getting a domain exception to do this is OK.

2

u/Beach-Brews Duck Helper 6d ago

I'll drop in a link to another comment where I explain the process to give yourself the best chance of "requesting" a custom domain:

https://www.reddit.com/r/Devvit/s/zrmDPpBFEd

This isn't guaranteed, but it helps you fight your case more than "I need this domain".