mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-07 08:49:32 -06:00
just a sec
This commit is contained in:
parent
f257f779a9
commit
143daf2582
3 changed files with 15 additions and 8 deletions
|
|
@ -70,7 +70,7 @@ func init() {
|
||||||
if _, err := tx.
|
if _, err := tx.
|
||||||
NewCreateIndex().
|
NewCreateIndex().
|
||||||
Table("statuses").
|
Table("statuses").
|
||||||
Index("statuses_profile_web_view_sorting_idx").
|
Index("statuses_profile_web_view_order_by_idx").
|
||||||
Column("account_id", "federated").
|
Column("account_id", "federated").
|
||||||
ColumnExpr("? DESC", bun.Ident("id")).
|
ColumnExpr("? DESC", bun.Ident("id")).
|
||||||
IfNotExists().
|
IfNotExists().
|
||||||
|
|
|
||||||
|
|
@ -183,15 +183,22 @@ Array.from(document.getElementsByClassName("plyr-video")).forEach((video) => {
|
||||||
settings: ["loop"],
|
settings: ["loop"],
|
||||||
disableContextMenu: false,
|
disableContextMenu: false,
|
||||||
hideControls: false,
|
hideControls: false,
|
||||||
tooltips: { contrors: true, seek: true },
|
tooltips: { controls: true, seek: true },
|
||||||
iconUrl: "/assets/plyr.svg",
|
iconUrl: "/assets/plyr.svg",
|
||||||
listeners: {
|
listeners: {
|
||||||
fullscreen: () => {
|
fullscreen: () => {
|
||||||
if (player.playing) {
|
|
||||||
setTimeout(() => {
|
if (lightbox.pswp !== undefined) {
|
||||||
player.play();
|
console.log(lightbox.pswp.currSlide);
|
||||||
}, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Continue playing the video
|
||||||
|
// after it's been fullscreened.
|
||||||
|
if (player.playing) {
|
||||||
|
setTimeout(() => player.play(), 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open the video as a photoswipe slide.
|
||||||
lightbox.loadAndOpen(parseInt(video.dataset.pswpIndex), {
|
lightbox.loadAndOpen(parseInt(video.dataset.pswpIndex), {
|
||||||
gallery: video.closest(".photoswipe-gallery")
|
gallery: video.closest(".photoswipe-gallery")
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -100,8 +100,8 @@
|
||||||
data-pswp-index="{{- .Index -}}"
|
data-pswp-index="{{- .Index -}}"
|
||||||
data-pswp-parent-status="{{- .Item.ParentStatusLink -}}"
|
data-pswp-parent-status="{{- .Item.ParentStatusLink -}}"
|
||||||
poster="{{- .Item.PreviewURL -}}"
|
poster="{{- .Item.PreviewURL -}}"
|
||||||
data-pswp-width="{{- .Item.Meta.Small.Width -}}px"
|
data-pswp-width="{{- .Item.Meta.Original.Width -}}px"
|
||||||
data-pswp-height="{{- .Item.Meta.Small.Height -}}px"
|
data-pswp-height="{{- .Item.Meta.Original.Height -}}px"
|
||||||
{{- if .Item.Description }}
|
{{- if .Item.Description }}
|
||||||
alt="{{- .Item.Description -}}"
|
alt="{{- .Item.Description -}}"
|
||||||
title="{{- .Item.Description -}}"
|
title="{{- .Item.Description -}}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue