GithubHelp home page GithubHelp logo

elara6331 / go-lemmy Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 1.0 305 KB

Automatically generated Go API bindings for Lemmy

Home Page: https://go.elara.ws/go-lemmy

License: GNU General Public License v3.0

Go 100.00%
api-bindings go lemmy lemmy-api lemmy-client

go-lemmy's Introduction

Hi! I'm Elara

I'm a FOSS developer who loves writing code and solving problems

Gitea Badge  Website Badge  RSS Badge

💡 Interests

  • Software Engineering
  • Embedded Programming
  • Server Administration
  • Networking
  • Electronics
  • IoT

📋 Learning

  • Zig
  • Linux GPIO interface
  • Linux I²C interface

📦 Projects I use

Languages:

Go   TinyGo   Zig   Rust   C   Ruby   Bash   JavaScript   HTML5   CSS3  

Frameworks and Libraries:

Bulma   Svelte   LURE   SQLite  

DevOps and Sysadmin:

Docker   Nomad   Consul   Traefik   Nginx   Gitea   Woodpecker CI   Raspberry Pi   RISC-V  

Operating Systems:

Linux   Debian   Arch Linux   OpenSUSE  

Services:

Home Assistant   Matrix   Lemmy   SearXNG   Nextcloud  

Apps:

Lapce   KeePassXC   Wayland   Firefox  

❤️ Donate

If you like my work and would like to support me, you can donate on LiberaPay or via crypto:

LiberaPay Badge

Monero:

445RV3H4VMY2jy4sunNy5ZMCc8rEndkg2TAHXg6pDPRxQqFhoEZxaaoLpMFQSVebqmgs1qoGsNTtbh8P3m18hizM1jzQp27

Litecoin:

LTJorTTDLQTuDAsiKog64RceMZRkpnFGDt

Bitcoin:

bc1qznr45tt5ueeaej7l2lv2v8zhuqu6q6qgt82unx

Ethereum:

0xc0d06eF11b88bF6FF406fA2E3406a54539F336e9

go-lemmy's People

Contributors

elara6331 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rystaf

go-lemmy's Issues

`Comments` with `PostID` not filtered by given post ID

I'm trying to retrieve all comments for a specific post, hence I've been trying out different sorts of variations of this code:

	resp, err := sys.client.Comments(context.Background(), types.GetComments{
		Type: types.NewOptional(types.ListingLocal),
		Sort: types.NewOptional(types.CommentSortHot),
		// CommunityID: types.NewOptional(cid),
		PostID: types.NewOptional(pid),
	})

The pid is the correct post ID, yet the comments that I'm getting back seem to be simply the listing of all new local comments. I'm not quite sure what's going on there as it seems to me that changing different parameters won't alter the server's response in any way.

Maybe you might have idea of what's going on? I might very well just be holding it wrong.

`Communities` with `ListCommunities.Type` `ListingSubscribed` returns empty results

As the title says, I'm getting the following response for every item in resp.Communities:

{"community_safe":{"id":0,"name":"","title":"","description":null,"removed":false,"published":"","updated":null,"deleted":false,"nsfw":false,"actor_id":"","local":false,"icon":null,"banner":null,"hidden":false,"posting_restricted_to_mods":false,"instance_id":0},"subscribed":false,"blocked":false,"counts":{"id":33,"community_id":63,"subscribers":42,"posts":6,"comments":16,"users_active_day":1,"users_active_week":1,"users_active_month":3,"users_active_half_year":14}}
{"community_safe":{"id":0,"name":"","title":"","description":null,"removed":false,"published":"","updated":null,"deleted":false,"nsfw":false,"actor_id":"","local":false,"icon":null,"banner":null,"hidden":false,"posting_restricted_to_mods":false,"instance_id":0},"subscribed":false,"blocked":false,"counts":{"id":32,"community_id":57,"subscribers":28,"posts":79,"comments":114,"users_active_day":1,"users_active_week":4,"users_active_month":16,"users_active_half_year":33}}
{"community_safe":{"id":0,"name":"","title":"","description":null,"removed":false,"published":"","updated":null,"deleted":false,"nsfw":false,"actor_id":"","local":false,"icon":null,"banner":null,"hidden":false,"posting_restricted_to_mods":false,"instance_id":0},"subscribed":false,"blocked":false,"counts":{"id":31,"community_id":40,"subscribers":45,"posts":1,"comments":-4,"users_active_day":3,"users_active_week":1,"users_active_month":3,"users_active_half_year":11}}
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.