Get duplicates of a post
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -2,8 +2,6 @@ package reddit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -291,18 +289,6 @@ type Post struct {
|
||||
Stickied bool `json:"stickied"`
|
||||
}
|
||||
|
||||
func (p Post) String() string {
|
||||
chunks := []string{
|
||||
fmt.Sprintf("[%d]", p.Score),
|
||||
p.SubredditNamePrefixed,
|
||||
"-",
|
||||
p.Title,
|
||||
"-",
|
||||
string(p.Permalink),
|
||||
}
|
||||
return strings.Join(chunks, " ")
|
||||
}
|
||||
|
||||
// Subreddit holds information about a subreddit
|
||||
type Subreddit struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user