From 4e4ae88c7943019685cda5c29a5cd8d6c2175619 Mon Sep 17 00:00:00 2001 From: valo Date: Sat, 8 Feb 2020 12:45:31 +0100 Subject: [PATCH 1/6] Updates italian translation and uniforms indentation --- resources/lang/it/exception.php | 11 +++++++++++ resources/lang/it/helpcenter.php | 26 ++++++++++++++++++++++++++ resources/lang/it/navmenu.php | 25 +++++++++++++++---------- resources/lang/it/notification.php | 2 ++ resources/lang/it/profile.php | 4 ++-- resources/lang/it/site.php | 26 +++++++++++++++----------- 6 files changed, 71 insertions(+), 23 deletions(-) create mode 100644 resources/lang/it/exception.php create mode 100644 resources/lang/it/helpcenter.php diff --git a/resources/lang/it/exception.php b/resources/lang/it/exception.php new file mode 100644 index 00000000..f64c9214 --- /dev/null +++ b/resources/lang/it/exception.php @@ -0,0 +1,11 @@ + [ + 'invalid' => [ + 'album' => 'Deve contenere una singola foto o video oppure più foto.', + ], + ], + +]; diff --git a/resources/lang/it/helpcenter.php b/resources/lang/it/helpcenter.php new file mode 100644 index 00000000..1dfa1288 --- /dev/null +++ b/resources/lang/it/helpcenter.php @@ -0,0 +1,26 @@ + 'Centro Assistenza', + 'whatsnew' => 'Novità', + + 'gettingStarted' => 'Per iniziare', + 'sharingMedia' => 'Condivisione dei Media', + 'profile' => 'Profili', + 'stories' => 'Stories', + 'hashtags' => 'Hashtags', + 'discover' => 'Esplora', + 'directMessages' => 'Messaggi Diretti', + 'timelines' => 'Timeline', + 'embed' => 'Includi', + + 'communityGuidelines' => 'Linee Guida della Comunità', + 'whatIsTheFediverse' => 'Cos\'è il Fediverso', + 'controllingVisibility' => 'Controllare la Visibilità', + 'blockingAccounts' => 'Bloccare gli Account', + 'safetyTips' => 'Suggerimenti per la Sicurezza', + 'reportSomething' => 'Segnala Qualcosa', + 'dataPolicy' => 'Politica sui Dati' + +]; diff --git a/resources/lang/it/navmenu.php b/resources/lang/it/navmenu.php index 0c6c6b91..583f29ee 100644 --- a/resources/lang/it/navmenu.php +++ b/resources/lang/it/navmenu.php @@ -1,14 +1,19 @@ 'Guarda il mio profilo', - 'myTimeline' => 'La mia Timeline', - 'publicTimeline' => 'Timeline Pubblica', - 'remoteFollow' => 'Segui da Remoto', - 'settings' => 'Impostazioni', - 'admin' => 'Amministra', - 'logout' => 'Esci', - 'directMessages' => 'Messaggi Diretti', - + 'search' => 'Cerca', + 'home' => 'Home', + 'local' => 'Locale', + 'network' => 'Rete', + 'discover' => 'Esplora', + 'viewMyProfile' => 'Guarda il mio profilo', + 'myProfile' => 'Il mio profilo', + 'myTimeline' => 'La mia Timeline', + 'publicTimeline' => 'Timeline Pubblica', + 'remoteFollow' => 'Segui da Remoto', + 'settings' => 'Impostazioni', + 'admin' => 'Amministra', + 'logout' => 'Esci', + 'directMessages' => 'Messaggi Diretti', + 'composePost' => 'Compose Post', ]; diff --git a/resources/lang/it/notification.php b/resources/lang/it/notification.php index 826969de..b097a1e2 100644 --- a/resources/lang/it/notification.php +++ b/resources/lang/it/notification.php @@ -3,8 +3,10 @@ return [ 'likedPhoto' => 'ha messo mi piace alla tua foto.', + 'likedComment' => 'ha messo mi piace al tuo commento.', 'startedFollowingYou' => 'ha iniziato a seguirti.', 'commented' => 'ha commentato il tuo post.', 'mentionedYou' => 'ti ha menzionato.', + 'shared' => 'ha condiviso il tuo post.', ]; diff --git a/resources/lang/it/profile.php b/resources/lang/it/profile.php index 488af69f..75540cfb 100644 --- a/resources/lang/it/profile.php +++ b/resources/lang/it/profile.php @@ -10,6 +10,6 @@ return [ 'alreadyFollow' => 'Segui già :username?', 'loginToSeeProfile' => 'per vedere le sue foto e video.', - 'status.disabled.header' => 'Profilo Non Disponibile', - 'status.disabled.body' => 'Scusa, questo profilo non è disponibile al momento. Per favore riprova più tardi.', + 'status.disabled.header' => 'Profilo Non Disponibile', + 'status.disabled.body' => 'Scusa, questo profilo non è disponibile al momento. Per favore riprova più tardi.', ]; diff --git a/resources/lang/it/site.php b/resources/lang/it/site.php index 58a208e1..f9a4288d 100644 --- a/resources/lang/it/site.php +++ b/resources/lang/it/site.php @@ -2,15 +2,19 @@ return [ - 'about' => 'A Proposito', - 'help' => 'Aiuto', - 'language' => 'Lingua', - 'fediverse' => 'Fediverso', - 'opensource' => 'Open Source', - 'terms' => 'Termini', - 'privacy' => 'Privacy', - 'l10nWip' => 'Stiamo ancora lavorando sul supporto per la traduzione', - 'currentLocale' => 'Lingua attuale', - 'selectLocale' => 'Seleziona una tra le lingue supportate', + 'about' => 'Informazioni', + 'help' => 'Aiuto', + 'language' => 'Lingua', + 'fediverse' => 'Fediverso', + 'opensource' => 'Open Source', + 'terms' => 'Termini', + 'privacy' => 'Privacy', + 'l10nWip' => 'Stiamo ancora lavorando sul supporto per la traduzione', + 'currentLocale' => 'Lingua attuale', + 'selectLocale' => 'Seleziona una tra le lingue supportate', + 'contact' => 'Contatti', + 'contact-us' => 'Contattaci', + 'places' => 'Luoghi', + 'profiles' => 'Profili', -]; \ No newline at end of file +]; From 8f93390a2edbd64bf13a42db340c885497ffe058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Str=C3=A4ssle?= Date: Sun, 9 Feb 2020 17:49:12 +0100 Subject: [PATCH 2/6] Fix breaking docker build The Dockerfile.apache has been updated recently, but Dockerfile.fpm not. Due to this, the docker build is failing with the following error: ``` configure: error: unrecognized options: --enable-freetype The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends apt-utils && apt-get install -y --no-install-recommends git gosu optipng pngquant jpegoptim gifsicle libpq-dev libsqlite3-dev locales zip unzip libzip-dev libcurl4-openssl-dev libfreetype6 libicu-dev libjpeg62-turbo libpng16-16 libxpm4 libwebp6 libmagickwand-6.q16-6 libfreetype6-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libwebp-dev libmagickwand-dev mariadb-client && sed -i '/en_US/s/^#//g' /etc/locale.gen && locale-gen && update-locale && docker-php-source extract && docker-php-ext-configure gd --enable-freetype --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/ --with-xpm-dir=/usr/lib/x86_64-linux-gnu/ --with-webp-dir=/usr/lib/x86_64-linux-gnu/ && docker-php-ext-install pdo_mysql pdo_pgsql pdo_sqlite pcntl gd exif bcmath intl zip curl && pecl install imagick && docker-php-ext-enable imagick pcntl imagick gd exif zip curl && curl -LsS https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar -o /usr/bin/composer && echo "${COMPOSER_CHECKSUM} /usr/bin/composer" | sha256sum -c - && chmod 755 /usr/bin/composer && apt-get autoremove --purge -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libvpx-dev libmagickwand-dev && rm -rf /var/cache/apt && docker-php-source delete' returned a non-zero code: 1 ``` This change updates Dockerfile.fpm to equal the Dockerfile.apache variant. (Except the fpm or apache specific settings) --- contrib/docker/Dockerfile.fpm | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/contrib/docker/Dockerfile.fpm b/contrib/docker/Dockerfile.fpm index 2b4b9441..cbdd1c0a 100644 --- a/contrib/docker/Dockerfile.fpm +++ b/contrib/docker/Dockerfile.fpm @@ -1,7 +1,5 @@ -FROM php:7.3-fpm-buster - -ARG COMPOSER_VERSION="1.8.5" -ARG COMPOSER_CHECKSUM="4e4c1cd74b54a26618699f3190e6f5fc63bb308b13fa660f71f2a2df047c0e17" +ARG COMPOSER_VERSION="1.9.1" +ARG COMPOSER_CHECKSUM="1f210b9037fcf82670d75892dfc44400f13fe9ada7af9e787f93e50e3b764111" RUN apt-get update \ && apt-get install -y --no-install-recommends apt-utils \ @@ -13,13 +11,12 @@ RUN apt-get update \ && locale-gen && update-locale \ && docker-php-source extract \ && docker-php-ext-configure gd \ - --enable-freetype \ - --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/ \ - --with-xpm-dir=/usr/lib/x86_64-linux-gnu/ \ - --with-webp-dir=/usr/lib/x86_64-linux-gnu/ \ + --with-freetype \ + --with-jpeg \ + --with-webp \ + --with-xpm \ && docker-php-ext-install pdo_mysql pdo_pgsql pdo_sqlite pcntl gd exif bcmath intl zip curl \ - && pecl install imagick \ - && docker-php-ext-enable imagick pcntl imagick gd exif zip curl \ + && docker-php-ext-enable pcntl gd exif zip curl \ && curl -LsS https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar -o /usr/bin/composer \ && echo "${COMPOSER_CHECKSUM} /usr/bin/composer" | sha256sum -c - \ && chmod 755 /usr/bin/composer \ @@ -33,7 +30,7 @@ ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}" COPY . /var/www/ WORKDIR /var/www/ -RUN mkdir public.ext && cp -r storage storage.skel \ +RUN cp -r storage storage.skel \ && cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \ && composer install --prefer-dist --no-interaction \ && rm -rf html && ln -s public html From aede31ea657c2f1209e259178d76df8624d80d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Str=C3=A4ssle?= Date: Sun, 9 Feb 2020 18:07:42 +0100 Subject: [PATCH 3/6] Parallel composer install in Dockerfile and Dockerfile.fpm fix --- contrib/docker/Dockerfile.apache | 2 ++ contrib/docker/Dockerfile.fpm | 3 +++ 2 files changed, 5 insertions(+) diff --git a/contrib/docker/Dockerfile.apache b/contrib/docker/Dockerfile.apache index d34704a5..18da11fc 100644 --- a/contrib/docker/Dockerfile.apache +++ b/contrib/docker/Dockerfile.apache @@ -43,7 +43,9 @@ COPY . /var/www/ WORKDIR /var/www/ RUN cp -r storage storage.skel \ && cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \ + && composer global require hirak/prestissimo --no-interaction --no-suggest --prefer-dist \ && composer install --prefer-dist --no-interaction \ + && composer global remove hirak/prestissimo \ && rm -rf html && ln -s public html VOLUME /var/www/storage /var/www/bootstrap diff --git a/contrib/docker/Dockerfile.fpm b/contrib/docker/Dockerfile.fpm index cbdd1c0a..721eac05 100644 --- a/contrib/docker/Dockerfile.fpm +++ b/contrib/docker/Dockerfile.fpm @@ -1,3 +1,4 @@ +FROM php:7.4-fpm-buster ARG COMPOSER_VERSION="1.9.1" ARG COMPOSER_CHECKSUM="1f210b9037fcf82670d75892dfc44400f13fe9ada7af9e787f93e50e3b764111" @@ -32,7 +33,9 @@ COPY . /var/www/ WORKDIR /var/www/ RUN cp -r storage storage.skel \ && cp contrib/docker/php.ini /usr/local/etc/php/conf.d/pixelfed.ini \ + && composer global require hirak/prestissimo --no-interaction --no-suggest --prefer-dist \ && composer install --prefer-dist --no-interaction \ + && composer global remove hirak/prestissimo \ && rm -rf html && ln -s public html VOLUME /var/www/storage /var/www/bootstrap From cf5fc9c5565d874d4a831917e0001adb345a1721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Str=C3=A4ssle?= Date: Sun, 9 Feb 2020 18:43:56 +0100 Subject: [PATCH 4/6] Fix invalid copy command --- contrib/docker/Dockerfile.fpm | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/docker/Dockerfile.fpm b/contrib/docker/Dockerfile.fpm index 721eac05..d4f8eaa6 100644 --- a/contrib/docker/Dockerfile.fpm +++ b/contrib/docker/Dockerfile.fpm @@ -59,7 +59,6 @@ ENV APP_ENV=production \ ACTIVITY_PUB=false CMD cp -r storage.skel/* storage/ \ - && cp -r public/* public.ext/ \ && chown -R www-data:www-data storage/ \ && php artisan storage:link \ && php artisan migrate --force \ From aa6d8c8f85f31543f0eeec822338e0b71d9b685f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Feb 2020 20:14:25 -0700 Subject: [PATCH 5/6] Update PostComponent.vue, fix MomentUI caption --- resources/assets/js/components/PostComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index ef7b7faf..edfe5cb5 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -300,7 +300,7 @@

- {{status.content.length < 100 ? status.content.slice(0,100) : 'Untitled Post'}} + {{status.content.length > 100 ? status.content.slice(0,100) : 'Untitled Post'}}

by {{statusUsername}} From 157379cb0e22be2b68f8d6a8638f75bc4a8978cd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Feb 2020 20:51:14 -0700 Subject: [PATCH 6/6] Update compiled assets --- public/js/status.js | 2 +- public/mix-manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/status.js b/public/js/status.js index 777150b1..e83a04bd 100644 --- a/public/js/status.js +++ b/public/js/status.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"+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",""])},"03GQ":function(t,e,s){var a=s("luQh");"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"],methods:{playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())}}},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",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id},on:{click:function(e){return t.playOrPause(e)}}},[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:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[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},"4BvY":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.status-comments[data-v-144368b2],\n.reactions[data-v-144368b2] {\n background: #fff;\n}\n.postPresenterContainer[data-v-144368b2] {\n background: #fff;\n}\n@media(min-width: 720px) {\n.postPresenterContainer[data-v-144368b2] { \n min-height: 600px;\n}\n}\n[data-v-144368b2]::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.reply-btn[data-v-144368b2] {\n position: absolute;\n bottom: 12px;\n right: 20px;\n width: 60px;\n text-align: center;\n border-radius: 0 3px 3px 0;\n}\n.text-lighter[data-v-144368b2] {\n color:#B8C2CC !important;\n}\n.text-break[data-v-144368b2] {\n overflow-wrap: break-word;\n}\n.comments p[data-v-144368b2] {\n margin-bottom: 0;\n}\n.comment-reaction[data-v-144368b2] {\n font-size: 80%;\n}\n.show-reply-bar[data-v-144368b2] {\n display: inline-block;\n border-bottom: 1px solid #999;\n height: 0;\n margin-right: 16px;\n vertical-align: middle;\n width: 24px;\n}\n.comment-thread[data-v-144368b2] {\n margin: 4px 0 0 40px;\n width: calc(100% - 40px);\n}\n.emoji-reactions .nav-item[data-v-144368b2] {\n font-size: 1.2rem;\n padding: 9px;\n cursor: pointer;\n}\n.emoji-reactions[data-v-144368b2]::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n background: transparent;\n}\n",""])},5:function(t,e,s){t.exports=s("CJs/")},"5x0P":function(t,e,s){"use strict";var a=s("8/md");s.n(a).a},"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);e0?((i=e.likes).push.apply(i,a(o.data)),e.likesPage++,t.loaded()):t.complete()}))},infiniteSharesHandler:function(t){var e=this;axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId,{params:{page:this.sharesPage}}).then((function(s){var i,o=s.data;o.data.length>0?((i=e.shares).push.apply(i,a(o.data)),e.sharesPage++,t.loaded()):t.complete()}))},likeStatus:function(t){var e=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/like",{item:this.status.id}).then((function(t){if(e.status.favourites_count=t.data.count,1==e.reactions.liked){e.reactions.liked=!1;var s=e.user.id;e.likes=e.likes.filter((function(t){return t.id!==s}))}else{e.reactions.liked=!0;var a=e.user;e.likes.push(a)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},shareStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/share",{item:this.status.id}).then((function(e){if(t.status.reblogs_count=e.data.count,1==t.reactions.shared){t.reactions.shared=!1;var s=t.user.id;t.shares=t.shares.filter((function(t){return t.id!==s}))}else{t.reactions.shared=!0;var a=t.user;t.shares.push(a)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},bookmarkStatus:function(){var t=this;0!=$("body").hasClass("loggedIn")?axios.post("/i/bookmark",{item:this.status.id}).then((function(e){1==t.reactions.bookmarked?t.reactions.bookmarked=!1:t.reactions.bookmarked=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},muteProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:this.status.account.id}).then((function(e){swal("Success","You have successfully muted "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},blockProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then((function(e){swal("Success","You have successfully blocked "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},deletePost:function(t){if(this.ownerOrAdmin()&&confirm("Are you sure you want to delete this post?")){if(0==$("body").hasClass("loggedIn"))return;axios.post("/i/delete",{type:"status",item:this.status.id}).then((function(t){swal("Success","You have successfully deleted this post","success"),setTimeout((function(){window.location.href="/"}),3e3)})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},owner:function(){return this.user.id===this.status.account.id},admin:function(){return 1==this.user.is_admin},ownerOrAdmin:function(){return this.owner()||this.admin()},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},postReply:function(){var t=this;if(0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void $('textarea[name="comment"]').blur();var e={item:this.replyingToId,comment:this.replyText};this.replyText="",axios.post("/i/comment",e).then((function(e){var s=e.data.entity;if(s.in_reply_to_id==t.status.id){"metro"==t.layout?t.results.push(s):t.results.unshift(s);var a=$(".status-comments")[0];a.scrollTop=a.clientHeight}else if(t.replyToIndex>=0){var i=t.results[t.replyToIndex];i.replies.push(s),i.reply_count=i.reply_count+1}}))},deleteComment:function(t,e){var s=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){s.results.splice(e,1)})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},deleteCommentReply:function(t,e,s){var a=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){a.results[s].replies.splice(e,1),--a.results[s].reply_count})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t,e){this.replyToIndex=e,this.replyingToId=t.id,this.reply_to_profile_id=t.account.id,this.replyText="@"+t.account.username+" ",$('textarea[name="comment"]').focus()},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusUsername+"/status/"+this.statusId;axios.get(e).then((function(e){t.results="metro"==t.layout?_.reverse(e.data.data):e.data.data,t.pagination=e.data.meta.pagination,t.results.length>0&&$(".load-more-link").removeClass("d-none"),$(".postCommentsLoader").addClass("d-none"),$(".postCommentsContainer").removeClass("d-none")})).catch((function(t){if(t.response)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}else $(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMore:function(t){var e=this;if(t.preventDefault(),1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){$(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then((function(t){var s=t.data.data;$(".postCommentsLoader").addClass("d-none");for(var a=0;a=1?a+"y":(a=Math.floor(s/604800))>=1?a+"w":(a=Math.floor(s/86400))>=1?a+"d":(a=Math.floor(s/3600))>=1?a+"h":(a=Math.floor(s/60))>=1?a+"m":Math.floor(s)+"s"},emojiReaction:function(){var t=event.target.innerText;0==this.replyText.length?(this.reply_to_profile_id=this.status.account.id,this.replyText=t+" ",$('textarea[name="comment"]').focus()):(this.reply_to_profile_id=this.status.account.id,this.replyText+=t+" ",$('textarea[name="comment"]').focus())},toggleCommentVisibility:function(){if(0!=this.ownerOrAdmin()){var t=this.status.comments_disabled,e=this;1==t?axios.post("/i/visibility",{item:e.status.id,disableComments:!1}).then((function(t){window.location.href=e.status.url})).catch((function(t){})):axios.post("/i/visibility",{item:e.status.id,disableComments:!0}).then((function(t){e.status.comments_disabled=!1,e.showComments=!1})).catch((function(t){}))}},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.statusProfileId}}).then((function(e){if(null!=e.data[0])return t.relationship=e.data[0],1==e.data[0].blocking?(t.loaded=!0,void(t.warning=!0)):void t.fetchData();t.fetchData()})):this.fetchData()},visibilityModal:function(){switch(this.status.visibility){case"public":swal("Public Post","This post is visible to everyone.","info");break;case"unlisted":swal("Unlisted Post","This post is visible on profiles and with a direct links. It is not displayed on timelines.","info");break;case"private":swal("Private Post","This post is only visible to followers.","info")}},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.username+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},redirect:function(t){window.location.href=t},showEmbedPostModal:function(){this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.$refs.embedModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.$refs.embedModal.hide()}}},o=(s("k7MC"),s("5x0P"),s("KHd+")),n=Object(o.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?t._e():s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1,t.fetchData()}}},[t._v("here")]),t._v(" to view this status")])])]):t._e(),t._v(" "),t.loaded&&0==t.warning?s("div",{staticClass:"postComponent"},["metro"==t.layout?s("div",{staticClass:"container px-0"},[s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown shadow-none border"},[s("div",{staticClass:"row px-0 mx-0"},[s("div",{staticClass:"d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100"},[s("div",{staticClass:"d-flex"},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.statusProfileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.statusProfileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("p",{staticClass:"small mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.showEmbedPostModal()}}},[t._v("Embed")]),t._v(" "),t.owner()?t._e():s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.muteProfile()}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.blockProfile()}}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")])]):t._e()])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 px-0 d-flex flex-column border-left border-md-left-0"},[s("div",{staticClass:"d-md-flex d-none align-items-center justify-content-between card-header py-3 bg-white"},[s("div",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.statusProfileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.statusProfileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("p",{staticClass:"small mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",{staticClass:"dropdown"},[t._m(1),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.showEmbedPostModal()}}},[t._v("Embed")]),t._v(" "),t.owner()?t._e():s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.muteProfile}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.blockProfile}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:t.deletePost}},[t._v("Delete")])]):t._e()])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100",staticStyle:{"overflow-y":"auto"}},[s("div",{staticClass:"card-body status-comments pb-5"},[s("div",{staticClass:"status-comment"},[1!=t.showCaption?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.status.account.url,title:t.status.account.username}},[t._v(t._s(t.truncate(t.status.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(e){t.showCaption=!0}}},[t._v("Show")])])])]):s("div",[s("p",{class:[t.status.content.length>620?"mb-1 read-more":"mb-1"],staticStyle:{overflow:"hidden"}},[s("a",{staticClass:"font-weight-bold pr-1 text-dark text-decoration-none",attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))]),t._v(" "),s("span",{staticClass:"comment-text",attrs:{id:t.status.id+"-status-readmore"},domProps:{innerHTML:t._s(t.status.content)}})])]),t._v(" "),t.showComments?s("div",[s("hr"),t._v(" "),t._m(2),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none"},[t.status.reply_count>10?s("p",{staticClass:"mb-1 text-center load-more-link d-none"},[s("a",{staticClass:"text-muted",attrs:{href:"#"},on:{click:t.loadMore}},[t._v("Load more comments")])]):t._e(),t._v(" "),s("div",{staticClass:"comments"},t._l(t.results,(function(e,a){return s("div",{key:"tl"+e.id+"_"+a,staticClass:"pb-3"},[1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:e.url},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),0,"tl"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e,a)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer",staticStyle:{"margin-left":"30px"},on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction font-weight-bold text-muted"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,i){return s("div",{key:"cr"+e.id+"_"+a,staticClass:"pb-3"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break",domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteCommentReply(e.id,i,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:e.url},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])})),0):t._e()])])})),0)])]):t._e()])]),t._v(" "),s("div",{staticClass:"card-body flex-grow-0 py-1"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}):t._e(),t._v(" "),s("h3",{staticClass:"fas fa-expand m-0 cursor-pointer",on:{click:function(e){return t.lightbox(t.status.media_attachments[0])}}}),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 float-right cursor-pointer":"far fa-bookmark m-0 float-right cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}}):t._e()]),t._v(" "),s("div",{staticClass:"reaction-counts font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),"public"==t.status.visibility?s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"timestamp pt-2 d-flex align-items-bottom justify-content-between"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl}},[t._v("\n "+t._s(t.timestampFormat())+"\n ")]),t._v(" "),s("span",{staticClass:"small text-muted text-capitalize cursor-pointer",on:{click:t.visibilityModal}},[t._v(t._s(t.status.visibility))])])])]),t._v(" "),t.showComments&&0!==t.user.length?s("div",{staticClass:"card-footer bg-white px-2 py-0"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v(t._s(e))])})),0)]):t._e(),t._v(" "),t.showComments?s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[0==t.user.length?s("div",{staticClass:"comment-form-guest p-3"},[s("a",{attrs:{href:"/login"}},[t._v("Login")]),t._v(" to like or comment.\n ")]):s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":t.statusId,"data-truncate":"false"}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post",disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.postReply(e)}}})])]):t._e()])])])]):t._e(),t._v(" "),"moment"==t.layout?s("div",{staticClass:"momentui"},[s("div",{staticClass:"bg-dark mt-md-n4"},[s("div",{staticClass:"container",on:{dblclick:t.likeStatus}},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center bg-dark"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])])]),t._v(" "),s("div",{staticClass:"bg-white"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row pb-5"},[s("div",{staticClass:"col-12 col-md-8 py-4"},[s("div",{staticClass:"reactions d-flex align-items-center"},[s("div",{staticClass:"text-center mr-5"},[s("div",{class:[t.reactions.liked?"fas fa-heart text-danger m-0 cursor-pointer":"far fa-heart m-0 like-btn cursor-pointer"],staticStyle:{"font-size":"1.575rem"},attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),s("div",{staticClass:"like-count font-weight-bold mt-2 rounded border",staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[t._v(t._s(t.status.favourites_count||0))])]),t._v(" "),s("div",{staticClass:"text-center"},["public"==t.status.visibility?s("div",{class:[t.reactions.shared?"h3 far fa-share-square m-0 text-primary cursor-pointer":"h3 far fa-share-square m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}):t._e(),t._v(" "),"public"==t.status.visibility?s("div",{staticClass:"share-count font-weight-bold mt-2 rounded border",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[t._v(t._s(t.status.reblogs_count||0))]):t._e()])]),t._v(" "),s("div",{staticClass:"media align-items-center mt-3"},[s("div",{staticClass:"media-body"},[s("h2",{staticClass:"font-weight-bold"},[t._v("\n "+t._s(t.status.content.length<100?t.status.content.slice(0,100):"Untitled Post")+"\n ")]),t._v(" "),s("p",{staticClass:"lead mb-0"},[t._v("\n by "),s("a",{attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.statusAvatar,alt:"avatar",width:"72px",height:"72px"}})]),t._v(" "),s("hr"),t._v(" "),s("div",[s("p",{staticClass:"lead"},[t.status.place?s("span",{staticClass:"text-truncate"},[s("i",{staticClass:"fas fa-map-marker-alt text-lighter mr-3"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country)+"\n ")]):t._e(),t._v(" "),t._m(3)]),t._v(" "),t.status.tags?s("div",{staticClass:"pt-4"},[s("p",{staticClass:"lead"},t._l(t.status.tags,(function(e,a){return s("a",{staticClass:"btn btn-outline-dark mr-1 mb-1",attrs:{href:e.url+"?src=mp"}},[t._v(t._s(e.name))])})),0)]):t._e()])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 pt-4 pl-md-3"},[s("p",{staticClass:"lead font-weight-bold"},[t._v("Comments")]),t._v(" "),t.user&&t.user.length?s("div",{staticClass:"moment-comments"},[s("div",{staticClass:"form-group"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",attrs:{rows:"3",placeholder:"Add a comment ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("p",{staticStyle:{"padding-top":"4px"}},[s("span",{staticClass:"small text-lighter font-weight-bold"},[t._v("\n "+t._s(t.replyText.length)+"/"+t._s(t.config.uploader.max_caption_length)+"\n ")]),t._v(" "),s("button",{class:[t.replyText.length>1?"btn btn-sm font-weight-bold float-right btn-outline-dark ":"btn btn-sm font-weight-bold float-right btn-outline-lighter"],attrs:{disabled:0==t.replyText.length?"disabled":""},on:{click:t.postReply}},[t._v("Post")])])]),t._v(" "),s("hr")]):t._e(),t._v(" "),s("div",{staticClass:"comment mt-3",staticStyle:{"max-height":"500px","overflow-y":"auto"}},t._l(t.results,(function(e,a){return s("div",{key:"tl"+e.id+"_"+a,staticClass:"media mb-3"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,alt:"avatar",width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-flex justify-content-between"},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"small"},[s("a",{staticClass:"text-lighter text-decoration-none",attrs:{href:e.url}},[t._v(t._s(t.timeAgo(e.created_at)))])])]),t._v(" "),s("p",{domProps:{innerHTML:t._s(e.content)}})])])})),0)])])])])]):t._e()]):t._e(),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.likes,(function(e,a){return s("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"sharesModal",attrs:{id:"s-modal","hide-footer":"",centered:"",title:"Shares","body-class":"list-group-flush p-0"}},[s("div",{staticClass:"list-group"},[t._l(t.shares,(function(e,a){return s("div",{key:"modal_shares_"+a,staticClass:"list-group-item border-0"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-inline-block"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n "+t._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),t._v(" "),s("p",{staticClass:"float-right"})])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteSharesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",[s("img",{class:t.lightboxMedia.filter_class+" img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()]),t._v(" "),s("b-modal",{ref:"embedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled",staticStyle:{border:"1px solid #efefef","font-size":"14px","line-height":"12px",height:"37px",margin:"0 0 7px",resize:"none","white-space":"nowrap"},attrs:{rows:"1"},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}}),t._v(" "),s("hr"),t._v(" "),s("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"far fa-clock text-lighter mr-3"}),this._v(" "+this._s(this.timeAgo(this.status.created_at))+" ago\n ")])}],!1,null,"144368b2",null);e.default=n.exports},"8/md":function(t,e,s){var a=s("U9fw");"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)},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,a=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?s+o:a+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},"9wGH":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("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=o.exports},B0a3:function(t,e,s){var a=s("QbiE");"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)},BLk7:function(t,e,s){var a=s("4BvY");"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)},"CJs/":function(t,e,s){Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("post-component",s("6ZA0").default)},GlRX:function(t,e,s){"use strict";var a=s("Kz1s");s.n(a).a},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var s=function(t,e){var s=t[1]||"",a=t[3];if(!a)return s;if(e&&"function"==typeof btoa){var i=(n=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}));return[s].concat(o).concat([i]).join("\n")}var n;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s})).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i