Closed SuperTux88 closed 6 years ago
This was a problem with dislikes.
It's safe to use to_s here, because we have only strings, numbers and booleans here anyway, because relayables don't support nested entities. to_s is used to generate the signature_data string too.
to_s
signature_data
https://github.com/diaspora/diaspora_federation/blob/7503e9a804ea2ccf27ad7edb70da42b6870a548f/lib/diaspora_federation/entities/relayable.rb#L161-L164
Merged, thanks :cookie:
This was a problem with dislikes.
It's safe to use
to_s
here, because we have only strings, numbers and booleans here anyway, because relayables don't support nested entities.to_s
is used to generate thesignature_data
string too.https://github.com/diaspora/diaspora_federation/blob/7503e9a804ea2ccf27ad7edb70da42b6870a548f/lib/diaspora_federation/entities/relayable.rb#L161-L164