Open andinus opened 2 years ago
91d619c73847e410e71b977d5bf0c424d25c1a06 broke previously generated URLs, this fix adds back support.
https://github.com/noledgebin/frontend/pull/17 breaks it again. We could handle decompression as well to fix the break by earlier commit.
To fix what https://github.com/noledgebin/frontend/pull/17 breaks, we'll have to somehow find out if it was stored with toString()
or by the latest method.
Decryption is outside of the blocks, bytes = ...
, but yes we can do the bytes.toString
thing outside of the blocks, good catch.
Adds backwards compatibility. If the paste is not JSON then we assume that the URL was generated before we moved on to using Objects so we create one before proceeding.