Преглед изворни кода

Merge pull request #18 from writeas/include-coll

include collection and id in postparams
tags/v2.0.1^0
Rob j Loranger пре 4 година
committed by GitHub
родитељ
комит
8463946e2d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      post.go

+ 2
- 2
post.go Прегледај датотеку

@@ -38,7 +38,7 @@ type (
// PostParams holds values for creating or updating a post.
PostParams struct {
// Parameters only for updating
ID string `json:"-"`
ID string `json:"id,omitempty"`
Token string `json:"token,omitempty"`

// Parameters for creating or updating
@@ -55,7 +55,7 @@ type (
Crosspost []map[string]string `json:"crosspost,omitempty"`

// Parameters for collection posts
Collection string `json:"-"`
Collection string `json:"collection,omitempty"`
}

// PinnedPostParams holds values for pinning a post


Loading…
Откажи
Сачувај