DangerOnTheRanger / maniwani

Imageboard software for the 21st century
MIT License
75 stars 11 forks source link

How to go about integrating feature into posts #172

Open therealjr opened 4 years ago

therealjr commented 4 years ago

Originally my plan was to embed posts from other websites (subreddit, twitter, etc) in a post through a separate field that the user would then provide the link for. However what I think might be better is to automatically embed posts that are linked through the comment field. My question is, what files are pertinent to this task?

DangerOnTheRanger commented 4 years ago

If I understand you correctly, you're trying to modify the way the imageboard posts themselves are parsed. CONTRIBUTING.md has a high-level overview of what you'll need to modify and/or add. You'll want to make an extension that looks for links to sites you want to embed, and then inserts the appropriate HTML to embed the content.