Add support for updating media description and focus point when editing statuses (#3215)

* Add support for updating media description and focus point when editing statuses

* Don't publish description/focus point updates via the standard api when editing a published post
This commit is contained in:
Levi Bard 2023-02-14 21:13:38 +01:00 committed by GitHub
commit 395e21c956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 17 deletions

View file

@ -83,7 +83,9 @@ data class Attachment(
data class Focus(
val x: Float,
val y: Float
) : Parcelable
) : Parcelable {
fun toMastodonApiString(): String = "$x,$y"
}
/**
* The size of an image, used to specify the width/height.