mirror of
https://git.macaw.me/skunky/devianter.git
synced 2025-04-28 12:05:07 +03:00
user favs
This commit is contained in:
parent
42ea2980f9
commit
4487cdcbe9
3 changed files with 48 additions and 16 deletions
|
@ -104,7 +104,7 @@ func UrlFromMedia(m Media, thumb ...int) string {
|
|||
for _, t := range m.Types {
|
||||
if t.T == "fullview" {
|
||||
url.WriteString(m.BaseUri)
|
||||
if m.BaseUri[len(m.BaseUri)-3:] != "gif" && t.W*t.H < 33177600 {
|
||||
if l := len(m.BaseUri); l != 0 && (m.BaseUri[l-3:] != "gif" && t.W*t.H < 33177600) {
|
||||
if len(thumb) != 0 {
|
||||
subtractWidthHeight(thumb[0], &t.W, &t.H)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue