Skip to content

Conversation

@Yorkemartin
Copy link

💸 TL;DR

Right now, devvit apps cannot create gallery posts on behalf of the user. It seems like this functionality should be available based on what ive seen, and it would be very helpful if it were - hoping this can kick off the feature.

🧪 Testing Steps / Validation

I wasn't able to get the local build running, will take another crack at it. if this is a very easy task for someone on the team though, i figured i would put this up early just incase.

Copy link

@awe719 awe719 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

********this was hard for me but I probably won't get it done or let's see

// Currently Devvit only supports posts with a single image
imageUrls?: [string];
// If multiple image URLs are supplied (2-20) Reddit will automatically create a gallery post.
imageUrls?: string[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly, multiple images are unsupported on the backend:

if len(req.GetImageUrls().GetValues()) != 1 {
	return nil, status.Error(codes.Unimplemented, "only posts with a single image are allowed")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants