Show More
@@ -62,21 +62,18 b' function updateFavPosts() {' | |||
|
62 | 62 | allNewPostCount += newPostCount; |
|
63 | 63 | |
|
64 | 64 | if (includePostBody) { |
|
65 | var post = $(dict.post); | |
|
66 | ||
|
67 | var id = post.find('.post_id'); | |
|
68 | var title = post.find('.title'); | |
|
69 | ||
|
70 | 65 | var favThreadNode = $('<div class="post"></div>'); |
|
71 |
favThreadNode.append( |
|
|
66 | favThreadNode.append($(dict.post_url)); | |
|
72 | 67 | favThreadNode.append(' '); |
|
73 | favThreadNode.append(title); | |
|
68 | favThreadNode.append($('<span class="title">' + dict.title + '</span>')); | |
|
74 | 69 | |
|
75 | 70 | if (newPostCount > 0) { |
|
76 | 71 | favThreadNode.append(' (<a href="' + dict.newest_post_link + '">+' + newPostCount + "</a>)"); |
|
77 | 72 | } |
|
78 | 73 | |
|
79 | 74 | favoriteThreadPanel.append(favThreadNode); |
|
75 | ||
|
76 | addRefLinkPreview(favThreadNode[0]); | |
|
80 | 77 | } |
|
81 | 78 | }); |
|
82 | 79 |
@@ -263,8 +263,8 b' def api_get_new_posts(request):' | |||
|
263 | 263 | fav_thread_dict['new_post_count'] = new_post_count |
|
264 | 264 | |
|
265 | 265 | if include_posts: |
|
266 |
fav_thread_dict['post'] = op.get_ |
|
|
267 | format_type=DIFF_TYPE_HTML) | |
|
266 | fav_thread_dict['post_url'] = op.get_link_view() | |
|
267 | fav_thread_dict['title'] = op.title | |
|
268 | 268 | if new_post_count > 0: |
|
269 | 269 | fav_thread_dict['newest_post_link'] = new_posts.first()\ |
|
270 | 270 | .get_absolute_url() |
General Comments 0
You need to be logged in to leave comments.
Login now