h3poteto / megalodon-rs

Fediverse API client library for Rust
Apache License 2.0
108 stars 22 forks source link

Add "View status source" method for mastodon #200

Closed AkkermanD closed 6 months ago

AkkermanD commented 7 months ago

Hello, thanks for the crate! I was trying to edit the mastodon message and noticed that there is no View status source implemented. It is required to get the plain text message from the status. The "get status" method returns the content field, which is html version of the status text, so it is not suitable here :( I can help with implementation, but it'll require Megalodon trait extend. Not sure if other implementations support "view status source"

h3poteto commented 7 months ago

It is no problem to extend Megalodon trait, could you please implement and create a PR for it?

h3poteto commented 6 months ago

refs https://github.com/h3poteto/megalodon-rs/pull/201