kopia lustrzana https://github.com/snarfed/bridgy-fed
update tests for granary atom change snarfed/granary@a82ecfd7d9
rodzic
eb54ec62af
commit
f16011211e
|
@ -19,7 +19,8 @@ ACTOR_WITH_PREFERRED_USERNAME = {
|
|||
|
||||
|
||||
def contents(activities):
|
||||
return [(a.get('object') or a)['content'].splitlines()[0]
|
||||
return [util.parse_html((a.get('object') or a)['content'].splitlines()[0]
|
||||
).get_text().strip()
|
||||
for a in activities]
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue