Selaa lähdekoodia

Fix post page rendering after rel=me changes

Ref T744
pull/771/head
Matt Baer 7 kuukautta sitten
vanhempi
commit
8626aa12cc
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      posts.go

+ 2
- 0
posts.go Näytä tiedosto

@@ -139,6 +139,7 @@ type (
IsPinned bool
IsCustomDomain bool
Monetization string
Verification string
PinnedPosts *[]PublicPost
IsFound bool
IsAdmin bool
@@ -1547,6 +1548,7 @@ Are you sure it was ever here?`,
tp.PinnedPosts, _ = app.db.GetPinnedPosts(coll, p.IsOwner)
tp.IsPinned = len(*tp.PinnedPosts) > 0 && PostsContains(tp.PinnedPosts, p)
tp.Monetization = app.db.GetCollectionAttribute(coll.ID, "monetization_pointer")
tp.Verification = coll.Verification

if !postFound {
w.WriteHeader(http.StatusNotFound)


Ladataan…
Peruuta
Tallenna