@@ -84,6 +84,7 @@ def create(
84
84
name : str ,
85
85
url : Optional [str ] = None ,
86
86
body : Optional [str ] = None ,
87
+ alt_text : Optional [str ] = None ,
87
88
nsfw : Optional [bool ] = None ,
88
89
honeypot : Optional [str ] = None ,
89
90
language_id : Union [int , LanguageType , None ] = None ,
@@ -96,6 +97,7 @@ def create(
96
97
name (str)
97
98
url (str, optional): Defaults to None.
98
99
body (str, optional): Defaults to None.
100
+ alt_text (ste, optional): Defaults to None. Lemmy 0.19.4+
99
101
nsfw (bool, optional): Defaults to None.
100
102
honeypot (str, optional): Defaults to None.
101
103
language_id (Union[int, LanguageType], optional): Defaults to None.
@@ -112,6 +114,8 @@ def create(
112
114
new_post ["url" ] = url
113
115
if body is not None :
114
116
new_post ["body" ] = body
117
+ if alt_text is not None :
118
+ new_post ["alt_text" ] = alt_text
115
119
if nsfw is not None :
116
120
new_post ["nsfw" ] = nsfw
117
121
if honeypot is not None :
@@ -169,6 +173,7 @@ def edit(
169
173
name : Optional [str ] = None ,
170
174
url : Optional [str ] = None ,
171
175
body : Optional [str ] = None ,
176
+ alt_text : Optional [str ] = None ,
172
177
nsfw : Optional [bool ] = None ,
173
178
language_id : Union [int , LanguageType , None ] = None ,
174
179
) -> Optional [dict ]:
@@ -181,6 +186,7 @@ def edit(
181
186
name (str, optional): Defaults to None.
182
187
url (str, optional): Defaults to None.
183
188
body (str, optional): Defaults to None.
189
+ alt_text (str, optional): Defaults to None. Lemmy 0.19.4+
184
190
nsfw (bool, optional): Defaults to None.
185
191
language_id (Union[int, LanguageType], optional): Defaults to None.
186
192
@@ -196,6 +202,8 @@ def edit(
196
202
edit_post ["url" ] = url
197
203
if body is not None :
198
204
edit_post ["body" ] = body
205
+ if alt_text is not None :
206
+ edit_post ["alt_text" ] = alt_text
199
207
if nsfw is not None :
200
208
edit_post ["nsfw" ] = nsfw
201
209
if language_id is not None :
0 commit comments