Skip to content

Fixed remote attachments parsing#17

Merged
ornithocoder merged 1 commit intoMastodonKit:masterfrom
vhbit:fixed-remote-attachments
May 10, 2017
Merged

Fixed remote attachments parsing#17
ornithocoder merged 1 commit intoMastodonKit:masterfrom
vhbit:fixed-remote-attachments

Conversation

@vhbit
Copy link
Copy Markdown
Contributor

@vhbit vhbit commented May 10, 2017

While documentation states that textURL is not optional, it may be
null in case of remote attachments.

Earlier this case wasn't handled which caused remote attachments not
being detected.

While documentation states that `textURL` is not optional, it may be
`null` in case of remote attachments.

Earlier this case wasn't handled which caused remote attachments not
being detected.
@vhbit vhbit force-pushed the fixed-remote-attachments branch from bbb73f4 to 37599d4 Compare May 10, 2017 09:04
@codecov-io
Copy link
Copy Markdown

codecov-io commented May 10, 2017

Codecov Report

Merging #17 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #17   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          43     43           
  Lines         620    619    -1     
=====================================
- Hits          620    619    -1
Flag Coverage Δ
#ios 100% <100%> (ø) ⬆️
Impacted Files Coverage Δ
Sources/MastodonKit/Models/Attachment.swift 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a730ea2...37599d4. Read the comment docs.

Copy link
Copy Markdown
Contributor

@ornithocoder ornithocoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vhbit! Can you submit a change to the official mastodon API documentation? One of the reason I added that nullability column there is to find these cases where the values can be nullable. Thanks again!

@ornithocoder ornithocoder merged commit 4782188 into MastodonKit:master May 10, 2017
@vhbit
Copy link
Copy Markdown
Contributor Author

vhbit commented May 10, 2017

Sure. It's mastodon/documentation#238

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.

3 participants