diff --git a/app/Http/Controllers/ApiController.php b/app/Http/Controllers/ApiController.php index 1b52e28f2..a596346bc 100644 --- a/app/Http/Controllers/ApiController.php +++ b/app/Http/Controllers/ApiController.php @@ -24,9 +24,9 @@ class ApiController extends Controller $likes = Like::whereProfileId($profile->id) ->orderBy('id', 'desc') - ->take(100) + ->take(1000) ->pluck('status_id'); - + return response()->json($likes); } } diff --git a/public/js/app.js b/public/js/app.js index 4160ff4b1..a7820a8a8 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1 +1 @@ -!function(t){var e={};function c(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.m=t,c.c=e,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="/",c(c.s=0)}({"/7en":function(t,e,c){var n,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var c=this._events=this._events||{},n=c[t]=c[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var c=this._onceEvents=this._onceEvents||{};return(c[t]=c[t]||{})[e]=!0,this}},e.off=function(t,e){var c=this._events&&this._events[t];if(c&&c.length){var n=c.indexOf(e);return-1!=n&&c.splice(n,1),this}},e.emitEvent=function(t,e){var c=this._events&&this._events[t];if(c&&c.length){c=c.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},c("mypn"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,c("DuR2"))},"21It":function(t,e,c){"use strict";var n=c("FtD3");t.exports=function(t,e,c){var r=c.config.validateStatus;c.status&&r&&!r(c.status)?e(n("Request failed with status code "+c.status,c.config,null,c.request,c)):t(c)}},"3H+/":function(t,e,c){var n,r;!function(i,o){n=[c("/7en"),c("h803")],void 0===(r=function(t,e){return o(i,t,e)}.apply(e,n))||(t.exports=r)}(window,function(t,e,c){var n=t.jQuery,r={};function i(t,e){var o=c.getQueryElement(t);if(o){if((t=o).infiniteScrollGUID){var l=r[t.infiniteScrollGUID];return l.option(e),l}this.element=t,this.options=c.extend({},i.defaults),this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(o||t))}i.defaults={},i.create={},i.destroy={};var o=i.prototype;c.extend(o,e.prototype);var l=0;o.create=function(){var t=this.guid=++l;if(this.element.infiniteScrollGUID=t,r[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath())for(var e in this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit(),i.create)i.create[e].call(this);else console.error("Disabling InfiniteScroll")},o.option=function(t){c.extend(this.options,t)},o.callOnInit=function(){var t=this.options.onInit;t&&t.call(this,this)},o.dispatchEvent=function(t,e,c){this.log(t,c);var r=e?[e].concat(c):c;if(this.emitEvent(t,r),n&&this.$element){var i=t+=".infiniteScroll";if(e){var o=n.Event(e);o.type=t,i=o}this.$element.trigger(i,c)}};var s={initialized:function(t){return"on "+t},request:function(t){return"URL: "+t},load:function(t,e){return(t.title||"")+". URL: "+e},error:function(t,e){return t+". URL: "+e},append:function(t,e,c){return c.length+" items. URL: "+e},last:function(t,e){return"URL: "+e},history:function(t,e){return"URL: "+e},pageIndex:function(t,e){return"current page determined to be: "+t+" from "+e}};o.log=function(t,e){if(this.options.debug){var c="[InfiniteScroll] "+t,n=s[t];n&&(c+=". "+n.apply(this,e)),console.log(c)}},o.updateMeasurements=function(){this.windowHeight=t.innerHeight;var e=this.element.getBoundingClientRect();this.top=e.top+t.pageYOffset},o.updateScroller=function(){var e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:c.getQueryElement(e),!this.scroller)throw"Unable to find elementScroll: "+e}else this.scroller=t},o.updateGetPath=function(){var t=this.options.path;if(t){var e=typeof t;if("function"!=e)"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t);else this.getPath=t}else console.error("InfiniteScroll path option required. Set as: "+t)},o.updateGetPathTemplate=function(t){this.getPath=function(){var e=this.pageIndex+1;return t.replace("{{#}}",e)}.bind(this);var e=t.replace("{{#}}","(\\d\\d?\\d?)"),c=new RegExp(e),n=location.href.match(c);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return o.updateGetPathSelector=function(t){var e=document.querySelector(t);if(e){for(var c,n,r=e.getAttribute("href"),i=0;r&&i',menu:'
'}),selectors:function(t){var c={};return e.each(t,function(t,e){c[e]="."+t}),c}(r)}).css,html:n.html,classes:n.classes,selectors:n.selectors,mixin:function(t){e.mixin(t,n)}};var i;var o}}(),r=function(){"use strict";var c;function n(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return"typeahead:",c={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(n.prototype,{_trigger:function(e,c){var n;return n=t.Event("typeahead:"+e),(c=c||[]).unshift(n),this.$el.trigger.apply(this.$el,c),n},before:function(t){var e;return e=[].slice.call(arguments,1),this._trigger("before"+t,e).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=c[t])&&this._trigger(e,[].slice.call(arguments,1))}}),n}(),i=function(){"use strict";var t=/\s+/,e=function(){var t;t=window.setImmediate?function(t){n(function(){t()})}:function(t){setTimeout(function(){t()},0)};return t}();return{onSync:function(t,e,n){return c.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return c.call(this,"async",t,e,n)},off:function(e){var c;if(!this._callbacks)return this;e=e.split(t);for(;c=e.shift();)delete this._callbacks[c];return this},trigger:function(c){var n,i,o,l,s;if(!this._callbacks)return this;c=c.split(t),o=[].slice.call(arguments,1);for(;(n=c.shift())&&(i=this._callbacks[n]);)l=r(i.sync,this,[n].concat(o)),s=r(i.async,this,[n].concat(o)),l()&&e(s);return this}};function c(e,c,n,r){var i;if(!n)return this;for(c=c.split(t),n=r?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,r):n,this._callbacks=this._callbacks||{};i=c.shift();)this._callbacks[i]=this._callbacks[i]||{sync:[],async:[]},this._callbacks[i][e].push(n);return this}function r(t,e,c){return function(){for(var n,r=0,i=t.length;!n&&r