Skip to content

get_note from a string (or an example in general) #50

@IoIxD

Description

@IoIxD

I'm sorry if this is an obvious question and not even really a bug report but there must be something I'm missing (especially because I don't use misskey).

I'm making a site that generates embeds for Mastodon, Pleroma, and Misskey, for Discord, and Misskey could very much benefit from it seeing as its embeds don't even show the post contents at all. The library I chose doesn't seem to support misskey and it would be a large undertaking for it to do so, and an equally large undertaking would be dealing with ActivityPub which would seemingly be just as hard as just supporting the sites individually, so i'd like to use this in conjunction with it.

What I'm missing is:

If I have https://misskey.bubbletea.dev/notes/8s27fg0gok, 8s27fg0gok being the id, and the usage for get_note is get_note(&self, Id<Post>), and all the implementations for Id can only have numbers fields...how am I supposed to get the note from that id?

If nothing else it would be nice to see an example for get_note in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions