mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-01-08 12:22:33 +01:00
fix urls in search
This commit is contained in:
parent
cbff40e65e
commit
5ca2011786
@ -28,7 +28,6 @@ module.exports = function() {
|
|||||||
for(var i = 0; i < posts_limit; i++) {
|
for(var i = 0; i < posts_limit; i++) {
|
||||||
let post = json.data.children[i].data
|
let post = json.data.children[i].data
|
||||||
let post_id = post.permalink.split('/').slice(-2)[0] + '/'
|
let post_id = post.permalink.split('/').slice(-2)[0] + '/'
|
||||||
let url = post.permalink.replace(post_id, '')
|
|
||||||
|
|
||||||
let images = null
|
let images = null
|
||||||
let is_self_link = false
|
let is_self_link = false
|
||||||
@ -73,7 +72,7 @@ module.exports = function() {
|
|||||||
link_flair_text: post.link_flair_text,
|
link_flair_text: post.link_flair_text,
|
||||||
ups: post.ups,
|
ups: post.ups,
|
||||||
images: images,
|
images: images,
|
||||||
url: url,
|
url: post.url,
|
||||||
edited: post.edited,
|
edited: post.edited,
|
||||||
selftext_html: unescape(post.body_html),
|
selftext_html: unescape(post.body_html),
|
||||||
num_comments: post.num_comments,
|
num_comments: post.num_comments,
|
||||||
|
Loading…
Reference in New Issue
Block a user