@@ 71-85 (lines=15) @@ | ||
68 | $view = 'time'; |
|
69 | } |
|
70 | ||
71 | if($view=='comment') |
|
72 | { |
|
73 | $url = "/v2/posts/location/discussed/"; |
|
74 | } |
|
75 | else |
|
76 | { |
|
77 | if($view=='upVote') |
|
78 | { |
|
79 | $url = "/v2/posts/location/popular/"; |
|
80 | } |
|
81 | else |
|
82 | { |
|
83 | $url = "/v2/posts/location/"; |
|
84 | } |
|
85 | } |
|
86 | ||
87 | if(isset($_GET['lastPostId'])) { |
|
88 |
@@ 240-254 (lines=15) @@ | ||
237 | //Get Posts |
|
238 | else |
|
239 | { |
|
240 | if($view=='comment') |
|
241 | { |
|
242 | $url = "/v2/posts/location/discussed/"; |
|
243 | } |
|
244 | else |
|
245 | { |
|
246 | if($view=='upVote') |
|
247 | { |
|
248 | $url = "/v2/posts/location/popular/"; |
|
249 | } |
|
250 | else |
|
251 | { |
|
252 | $url = "/v2/posts/location/"; |
|
253 | } |
|
254 | } |
|
255 | ||
256 | $posts = getPosts($lastPostId, $accessToken, $url)['posts']; |
|
257 | $loops = 29; |