A way to get the post or comment from a share link

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api, backend

Research direction

No file or test is named. Start by locating Devvit's URL-handling and HTTP Fetch entry points, then check how Reddit share links redirect and why reddit.com is blocked. Done means providing a supported way to resolve a share link to its original permalink or identify the referenced post or comment.

Written by the indexing model from the issue text.

Description

reddit-api

About a year ago, Reddit introduced a form of link that has sharing information for easier tracking.

Example post link: https://www.reddit.com/r/unitedkingdom/s/i1ISuc5IKa

Unfortunately, it's not possible using Devvit to determine where links like this lead to, or even if it's a post or comment that's referenced.

It'd be great if we had a way to resolve these links to the original permalink, or to a post or comment object. HTTP Fetch could theoretically be used for this (to find out where the redirect leads) but reddit.com is blocked.

Dominant language
TypeScript
Stars
210
Forks
88
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reddit/devvit

All issues in reddit/devvit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.