Commit 911923fde1

911923fde11ed1e0efbc56f851f9b50e5e48665d

parent: 191984b31e

Unsigned

lost+skunk <skunky@ebloid.ru> · 2024-11-15 19:43 UTC

ы

Layout: unified · split

INSTANCES.md +1 −1
@@ -2,7 +2,7 @@ JSON variant should be used from master — https://git.macaw.me/skunky/SkunkyAr
22
33|Instance|Yggdrasil|I2P|Tor|NSFW|Proxifying|Modified Sources|Country|
44|:------:|:-------:|:-:|:-:|:--:|:--------:|:--------------:|:-----:|
5|[skunky.ebloid.ru](https://skunky.ebloid.ru/art)|[Yes](http://[201:eba5:d1fc:bf7b:cfcb:a811:4b8b:7ea3]/art)|No|No| No | Yes | No | Russia |
5|[ls.404.mn](https://ls.404.mn/skunkyart)|[Yes](http://[201:f137:d1ac:920e:cd42:bfd1:1e83:da1d]/skunkyart)|No|No| No | Yes | No | Germany |
66|[clovius.club](https://skunky.clovius.club)|No|No|No| Yes | Yes | No | Sweden |
77|[bloat.cat](https://skunky.bloat.cat)|No|No|No| Yes | Yes | No | Germany |
88|[lumaeris.com](https://skunkyart.lumaeris.com)|No|No|No| Yes | Yes | No | Germany |
README.md +5 −1
@@ -1,6 +1,10 @@
1> [!NOTE]
2> Currently, due to school, I cannot actively develop this project :(
3> However, this does not mean that development has stopped. Just wait for the summer. For questions, write either to the Matrix room or to me in DM.
4
15<img src="static/images/logo.png" alt="SkunkyArt" title="SkunkyArt Logo" width="20%" loading="lazy"/>
26
3[![Matrix room](https://img.shields.io/badge/matrix-000000?style=for-the-badge&logo=Matrix&logoColor=white)](https://go.kde.org/matrix/#/#skunkyart:ebloid.ru)
7[![Matrix room](https://img.shields.io/badge/matrix-000000?style=for-the-badge&logo=Matrix&logoColor=white)](https://go.kde.org/matrix/#/#skunkyart:ls.404.mn)
48
59Instances: [`INSTANCES.md`](/skunky/SkunkyArt/src/branch/master/INSTANCES.md)
610
app/parsers.go +1 −1
@@ -46,7 +46,7 @@ func (s skunkyart) ParseComments(c devianter.Comments, daError devianter.Error)
4646
4747 if x.Parent > 0 {
4848 cmmts.WriteString(` In reply to <a href="`)
49 cmmts.WriteString(Path)
49 cmmts.WriteString(s._pth)
5050 cmmts.WriteString("#")
5151 cmmts.WriteString(strconv.Itoa(x.Parent))
5252 cmmts.WriteString(`">`)
app/router.go +5 −4
@@ -9,7 +9,9 @@ import (
99 "strings"
1010)
1111
12var Host, Path string
12var Host string
13
14// var Path *string
1315
1416func Router() {
1517 parsepath := func(path string) map[int]string {
@@ -54,15 +56,14 @@ func Router() {
5456
5557 // функция, что управляет всем
5658 handle := func(w http.ResponseWriter, r *http.Request) {
57 Path = r.URL.Path
58 path := parsepath(Path)
59 path := parsepath(r.URL.Path)
5960 Host = "http://" + r.Host
60
6161 if h := r.Header["X-Forwarded-Proto"]; len(h) != 0 && h[0] == "https" {
6262 Host = "https://" + r.Host
6363 }
6464
6565 var skunky = skunkyart{Version: Release.Version}
66 skunky._pth = r.URL.Path
6667
6768 skunky.Args = r.URL.Query()
6869 arg := skunky.Args.Get
app/util.go +2 −1
@@ -63,6 +63,7 @@ type instanceAbout struct {
6363
6464type skunkyart struct {
6565 Writer http.ResponseWriter
66 _pth string
6667
6768 Args url.Values
6869 Page int
@@ -274,7 +275,7 @@ func (s skunkyart) NavBase(c DeviationList) string {
274275 prevrev := func(msg string, page int, onpage bool) {
275276 if !onpage {
276277 list.WriteString(`<a href="`)
277 list.WriteString(Path)
278 list.WriteString(s._pth)
278279 list.WriteString(`?p=`)
279280 list.WriteString(strconv.Itoa(page))
280281 if s.Type != 0 {
static/html/about.htm +2 −2
@@ -6,7 +6,7 @@
66 <p>
77 SkunkyArt is an alternative frontend for deviantart.com, written in Go.
88 </p>
9 <h3><a href="https://go.kde.org/matrix/#/#skunkyart:ebloid.ru" target="_blank">Room in [matrix]</a></h3>
9 <h3><a href="https://go.kde.org/matrix/#/#skunkyart:ls.404.mn" target="_blank">Room in [matrix]</a></h3>
1010 <b>Instance settings:</b>
1111 <ul>
1212 <li><b>NSFW</b>: <span class="about-{{.Templates.About.Nsfw}}">{{if .Templates.About.Nsfw}}YES{{else}}NO{{end}}</span></li>
@@ -44,6 +44,6 @@
4444 {{end}}
4545 </ul>
4646 </details>
47 <p>Copyright <a href="https://go.kde.org/matrix/#/@softpigeones:ebloid.ru" target="_blank">lost+skunk</a>, X11. <a href="https://git.macaw.me/skunky/skunkyart/src/tag/v{{.Version}}" target="_blank">SkunkyArt v{{.Version}}</a></p>
47 <p>Copyright <a href="https://go.kde.org/matrix/#/@softpigeones:ls.404.mn" target="_blank">lost+skunk</a>, X11. <a href="https://git.macaw.me/skunky/skunkyart/src/tag/v{{.Version}}" target="_blank">SkunkyArt v{{.Version}}</a></p>
4848 </main>
4949</html>