Updates to fixes for deploy
• Updates: - to fixes for deploy
This commit is contained in:
@@ -43,7 +43,7 @@ class Api::V1::PopularLinksController < Api::BaseController
|
||||
cards = PreviewCard.joins("LEFT JOIN preview_cards_statuses ON preview_cards.id = preview_cards_statuses.preview_card_id")
|
||||
.where('preview_cards_statuses.preview_card_id IS NOT NULL')
|
||||
.where('preview_cards_statuses.status_id IN (?)', statusIds)
|
||||
.having('COUNT(preview_cards_statuses.preview_card_id) > 2')
|
||||
.having('COUNT(preview_cards_statuses.preview_card_id) > 1')
|
||||
.where('preview_cards.updated_at > ?', 24.hours.ago)
|
||||
.order('COUNT(preview_cards_statuses.preview_card_id) DESC')
|
||||
.group('preview_cards.id')
|
||||
|
||||
@@ -64,7 +64,7 @@ export const expandGabTrendsFeed = (feedId) => (dispatch, getState) => {
|
||||
|
||||
dispatch(expandGabTrendsFeedRequest(feedId))
|
||||
|
||||
const url = `http://trends.gab.com/feed/${feedId}?fmt=json&p=${page}`
|
||||
const url = `https://trends.gab.com/feed/${feedId}?fmt=json&p=${page}`
|
||||
// api(getState).get(`/api/v1/gab_trends?type=rss&page=${page}&feedId=${feedId}`).then((response) => {
|
||||
axios.get(url).then((response) => {
|
||||
dispatch(expandGabTrendsFeedSuccess(response.data.rssFeedItems, feedId, response.data.pagination.p))
|
||||
|
||||
Reference in New Issue
Block a user