Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fix error extracting status content: no content found #598

Merged
merged 3 commits into from
May 23, 2022

Conversation

tsmethurst
Copy link
Contributor

This PR closes #565 by updating ExtractContent to just return an empty string if no Content is found in an Activity, since this isn't technically an error, it just means that no text content was set and most likely the post contains a poll or media or something. It also updates the extract content function to check if there's an IRI in the content field, because that's a thing that can sometimes happen.

@igalic
Copy link
Contributor

igalic commented May 23, 2022

that makes this PR then a prerequisite for #597 ?

@tsmethurst tsmethurst changed the title [bufix] Fix error extracting status content: no content found [bugfix] Fix error extracting status content: no content found May 23, 2022
@tsmethurst
Copy link
Contributor Author

that makes this PR then a prerequisite for #597 ?

mmm not sure, i don't think the order really matters

@NyaaaWhatsUpDoc NyaaaWhatsUpDoc merged commit f5a4f43 into main May 23, 2022
@NyaaaWhatsUpDoc NyaaaWhatsUpDoc deleted the no_content_found_fix branch May 23, 2022 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] error extracting status content: no content found
3 participants