2019-10-16 05:41:17 +00:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{"+27z":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-acffc3f6] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-acffc3f6] {\n\tpadding: 0;\n}\n",""])},"/whH":function(t,e,s){var a=s("6A2o");"string"==typeof a&&(a=[[t.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,i);a.locals&&(t.exports=a.locals)},"2Jpm":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),o=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("div",{staticClass:"embed-responsive embed-responsive-1by1"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:"",poster:t.status.media_attachments[0].preview_url}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{preload:"auto",controls:"",loop:"",poster:t.status.media_attachments[0].preview_url}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},[],!1,null,null,null);e.default=o.exports},5:function(t,e,s){t.exports=s("CJs/")},"5vZ0":function(t,e,s){"use strict";var a=s("II0P");s.n(a).a},"6A2o":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-741fa5ec] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"6ZA0":function(t,e,s){"use strict";s.r(e);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,s=new Array(t.length);e<t.length;e++)s[e]=t[e];return s}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}pixelfed.postComponent={};var i={props:["status-id","status-username","status-template","status-url","status-profile-url","status-avatar","status-profile-id","profile-layout"],data:function(){return{config:window.App.config,status:!1,media:{},user:!1,reactions:{liked:!1,shared:!1},likes:[],likesPage:1,shares:[],sharesPage:1,lightboxMedia:!1,replyText:"",relationship:{},results:[],pagination:{},min_id:0,max_id:0,reply_to_profile_id:0,thread:!1,showComments:!1,warning:!1,loaded:!1,loading:null,replyingToId:this.statusId,replyToIndex:0,emoji:window.App.util.emoji,showReadMore:!0,showCaption:!0}},beforeMount:function(){var t=new URLSearchParams(window.location.search);t.has("ui")&&"moment"==t.get("ui")&&"moment"!=this.profileLayout&&(this.profileLayout="moment"),t.has("ui")&&"metro"==t.get("ui")&&"metro"!=this.profileLayout&&(this.profileLayout="metro")},mounted:function(){this.fetchRelationships(),"false"==localStorage.getItem("pf_metro_ui.exp.rm")?this.showReadMore=!1:this.showReadMore=!0},updated:function(){$(".carousel").carousel(),1==this.showReadMore&&window.pixelfed.readmore()},methods:{showMuteBlock:function(){this.status.account.id==this.user.id?$(".post-actions .menu-author").removeClass("d-none"):$(".post-actions .menu-user").removeClass("d-none")},reportUrl:function(){return"/i/report?type=post&id="+this.status.id},editUrl:function(){return this.status.url+"/edit"},timestampFormat:function(){var t=new Date(this.status.created_at);return t.toDateString()+" "+t.toLocaleTimeString()},fetchData:function(){var t=this;axios.get("/api/v2/profile/"+this.statusUsername+"/status/"+this.statusId).then(function(e){var s=t;s.status=e.data.status,s.user=e.data.user,s.media=s.status.media_attachments,s.reactions=e.data.reactions,s.likes=e.data.likes,s.shares=e.data.shares,s.likesPage=2,s.sharesPage=2,t.showMuteBlock(),s.showCaption=!e.data.status.sensitive,0==s.status.
|