]> cat aescling's git repositories - mastodon.git/commit
Fix AP serialization error when thread is missing (#4970)
authorunarist <m.unarist@gmail.com>
Sat, 16 Sep 2017 13:00:36 +0000 (22:00 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 16 Sep 2017 13:00:36 +0000 (15:00 +0200)
commitc30e6433de905c167f2920ced6b6bd659cf617eb
tree34f1ffdcee44c44d3ee12462c50ca37ebb3cc7a4
parentcea5597722bc7565e9d8dd21787492ba1570fbf4
Fix AP serialization error when thread is missing (#4970)

`Status#reply?` may returns true even if the thread is missing.
e.g. the replied status was deleted or couldn't be fetched.

Then it raises NoMethodError on various AP json serialization.

This issue won't happen on Atom serialization because it checks thread
existence using `StreamEntry#threaded?` instead.
app/serializers/activitypub/note_serializer.rb