Updates to fixes for deploy

• Updates:
- to fixes for deploy
This commit is contained in:
mgabdev
2020-11-09 16:19:04 -06:00
parent 351929b148
commit 1ef59c2266
3 changed files with 4 additions and 4 deletions

View File

@@ -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')

View File

@@ -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))