Fix post page rendering after rel=me changes
Ref T744
This commit is contained in:
parent
264bef03b1
commit
8626aa12cc
1 changed files with 2 additions and 0 deletions
2
posts.go
2
posts.go
|
@ -139,6 +139,7 @@ type (
|
||||||
IsPinned bool
|
IsPinned bool
|
||||||
IsCustomDomain bool
|
IsCustomDomain bool
|
||||||
Monetization string
|
Monetization string
|
||||||
|
Verification string
|
||||||
PinnedPosts *[]PublicPost
|
PinnedPosts *[]PublicPost
|
||||||
IsFound bool
|
IsFound bool
|
||||||
IsAdmin bool
|
IsAdmin bool
|
||||||
|
@ -1547,6 +1548,7 @@ Are you sure it was ever here?`,
|
||||||
tp.PinnedPosts, _ = app.db.GetPinnedPosts(coll, p.IsOwner)
|
tp.PinnedPosts, _ = app.db.GetPinnedPosts(coll, p.IsOwner)
|
||||||
tp.IsPinned = len(*tp.PinnedPosts) > 0 && PostsContains(tp.PinnedPosts, p)
|
tp.IsPinned = len(*tp.PinnedPosts) > 0 && PostsContains(tp.PinnedPosts, p)
|
||||||
tp.Monetization = app.db.GetCollectionAttribute(coll.ID, "monetization_pointer")
|
tp.Monetization = app.db.GetCollectionAttribute(coll.ID, "monetization_pointer")
|
||||||
|
tp.Verification = coll.Verification
|
||||||
|
|
||||||
if !postFound {
|
if !postFound {
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
|
|
Loading…
Add table
Reference in a new issue