Support text on URL posts
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 66/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- api
Rechercherichtung
Start by reading SubmitPostOptions and the LinksAndComments.Submit SubmitRequest description in @devvit/reddit 0.15.0. Trace how reddit.submitPost builds and sends link submissions, then check the relevant type and API tests. Done when a link post accepts body text and the request carries it through, with tests covering the behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Reddit’s public API lets a link post carry body text: POST /api/submit with kind=link, url and text. Devvit’s reddit.submitPost does not. Apps moving from PRAW or the Data API to Devvit lose this feature.
Example of a post with both: https://www.reddit.com/r/GlobalOffensive/comments/1xcxfv2/counterstrike_2_update_for_10222026/
Current behaviour (@devvit/reddit 0.15.0)
In SubmitPostOptions, the link variant is SubmitLinkOptions & { richtext?: never; text?: never; kind?: never }. TypeScript rejects any attempt to pass a body with a url.
The LinksAndComments.Submit API description (SubmitRequest) documents text and richtextJson as “Only used if kind is set to “self””. A body sent with kind: "link" therefore seems to be ignored even if the types are bypassed.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 217
- Forks
- 89
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus reddit/devvit
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationEvtl. vergeben @CR29-22-2805 hat das vor 138 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
amosblomqvist/learnharness#1141 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ranxianglei/billion-context#8319 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
tencent-connect/dsh-qqbot#148 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
JimLiu/open-artifact#126 ·
-
Claude Code: replace stub has no cut cue, a 6128 B Bash output reads as the one line `END6000`Offenbug repro-ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
mksglu/context-mode#1454 ·