~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/blog-discussion

~petersanchez/public-inbox

View more

Recent activity

Re: [PATCH links] Fix error fetching payment history 7 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   23918f3..bf24123  master -> master

[PATCH links] Fix error fetching payment history 7 days ago

From Peter Sanchez to ~netlandish/links-dev

---
 api/graph/schema.resolvers.go | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go
index 956e692..e056216 100644
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -4945,13 +4945,13 @@ func (r *queryResolver) GetPaymentHistory(ctx context.Context, input *model.GetP
				WithCode(valid.ErrNotFoundCode)
			return nil, nil
		}
		org = orgs[0]

[message trimmed]

Re: [PATCH links] Fix issue when parsing base url metadata 15 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   4c28f35..23918f3  master -> master

[PATCH links] Fix issue when parsing base url metadata 15 days ago

From Peter Sanchez to ~netlandish/links-dev

---
 models/base_url.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/models/base_url.go b/models/base_url.go
index 5b1b484..5585804 100644
--- a/models/base_url.go
+++ b/models/base_url.go
@@ -161,14 +161,14 @@ func (b *BaseURL) Store(ctx context.Context) error {
				   ON     CONFLICT (url) DO UPDATE
				   SET    url = NULL
				   WHERE  FALSE
				   RETURNING id, url, public_ready, created_on
				   RETURNING id, url, public_ready, visibility, created_on
[message trimmed]

[PATCH links] Adding a new `visibility` flag for organizations and specific base urls. This is to hide the obvious spam or SEO farms from the recent or popular pages. 16 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-added: Ability to hide spammers or seo farms from the recent
  or popular pages.
Changelog-updated: API version (minor bump) to account for new
  visibility variable and update to (admin only) organization update
  mutation.
---
 admin/input.go                                |    4 +-
 admin/routes.go                               |   35 +-
 api/graph/generated.go                        |  404 ++-
 api/graph/model/models_gen.go                 |   47 +
 api/graph/schema.graphqls                     |   14 +-
 api/graph/schema.resolvers.go                 |   74 +-
 api/loaders/loaders.go                        |    3 +
 client.go                                     |    2 +-
[message trimmed]

Re: [PATCH links] Only show save count when it's been saved more than once. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   3aff1c0..e0fbbee  master -> master

[PATCH links] Only show save count when it's been saved more than once. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-changed: Only show save count when the URL has been publicly
  saved more than once.
---
 models/utils.go | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/models/utils.go b/models/utils.go
index f8d787e..d4a6dfc 100644
--- a/models/utils.go
+++ b/models/utils.go
@@ -88,12 +88,14 @@ func TagsToString(t []Tag) string {
// ShowLinkCounter says whether or not to show a link counter
func ShowLinkCounter(obj any) bool {
	switch v := any(obj).(type) {
[message trimmed]

Re: [PATCH links] Strip leading pound (hash) symbols in tag names. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   9ed99a4..3aff1c0  master -> master

[PATCH links] Strip leading pound (hash) symbols in tag names. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-changed: No more leading hash marks in tag names
---
 helpers.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/helpers.go b/helpers.go
index 7d30e3f..53dd36f 100644
--- a/helpers.go
+++ b/helpers.go
@@ -745,6 +745,10 @@ func ProcessTags(ctx context.Context, tags []string) ([]int, error) {
	tagIDs := make([]int, 0)
	for _, tag := range tags {
		tag := strings.TrimSpace(tag)
		if strings.HasPrefix(tag, "#") {
[message trimmed]