(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[269],{10743:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});consto={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void0,instance:void0,nodeinfo:void0,config:window.App.config}},mounted:function(){this.fetchUserData()},methods:{fetchUserData:function(){this.profile=window._sharedData.user,this.fetchInstance()},fetchInstance:function(){vart=this;axios.get("/api/v1/instance").then((function(e){t.instance=e.data,t.fetchNodeinfo()}))},fetchNodeinfo:function(){vart=this;axios.get("/api/nodeinfo/2.0.json").then((function(e){t.nodeinfo=e.data,t.isLoaded=!0}))}}}},59264:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});varo=a(42755),s=a(88231);consti={components:{drawer:o.default,sidebar:s.default},data:function(){return{isLoaded:!1,profile:void0,instance:void0,nodeinfo:void0,config:window.App.config}},mounted:function(){this.profile=window._sharedData.user}}},34366:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});consto={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void0}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}},56714:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>c});varo=a(42755),s=a(78423),i=a(88231),n=a(78375);functionr(t){returnfunction(t){if(Array.isArray(t))returnl(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeoft)returnl(t,e);vara=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)returnArray.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))returnl(t,e)}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionl(t,e){(null==e||e>t.length)&&(e=t.length);for(vara=0,o=newArray(e);a<e;a++)o[a]=t[a];returno}constc={props:{id:{type:String}},components:{drawer:o.default,intersect:s.default,sidebar:i.default,rightbar:n.default},data:function(){return{isLoaded:!1,profile:void0,canLoadMore:!0,isIntersecting:!1,feedLoaded:!1,feed:[],page:1,follows:!1,isFollowing:!1}},mounted:function(){this.init()},watch:{$route:"init"},methods:{init:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.fetchFeed()},fetchFeed:function(){vart=this;axios.get("/api/v2/discover/tag",{params:{hashtag:this.id,limit:9,page:this.page}}).then((function(e){if(t.feedLoaded=!0,0==e.data.tags.length&&(t.canLoadMore=!1),t.isLoaded=!0,!e.data.tags||!e.data.tags.length)returnt.canLoadMore=!1,void(t.isIntersecting=!1);vara;t.feed.tags&&t.feed.tags.length?(a=t.feed.tags).push.apply(a,r(e.data.tags)):t.feed=e.data;t.page++,t.isIntersecting=!1,t.follows=!!e.data.hasOwnProperty("follows")&&e.data.follows,0==e.data.tags.length&&(t.canLoadMore=!1)})).catch((function(e){t.canLoadMore=!1,t.isLoaded=!0,t.feedLoaded=!0}))},statusUrl:function(t){return"/i/web/post/"+t.id},formatCount:function(t){returnApp.util.format.count(t)},enterIntersect:function(){this.isIntersecting||(this.isIntersecting=!0,this.fetchFeed())},goToPost:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},followHashtag:function(){vart=this;this.isFollowing=!0,axios.post("/api/local/discover/tag/subscribe",{name:this.id}).then((function(e){t.follows=!0,t.isFollowing=!1}))},unfollowHashtag:function(){vart=this;this.isFollowing=!0,axios.post("/api/local/discover/tag/subscribe",{name:this.id}).then((function(e){t.follows=!1,t.isFollowing=!1}))}}}},75966:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});consto={data:function(){return{posts:[],profile:[]}},mounted:function(){this.init()},methods:{init:function(){vart=this;axios.get("/i/hc/category",{params:{id:1}}).then((function(e){t.profile=e.data})),axios.get("/i/hc/category",{params:{id:2}}).th