Copy author_signature to parent_author_signature for relayables

Diaspora currently always requires this, even if they will be the same. It is apparently being removed.
merge-requests/130/head
Jason Robinson 2017-05-02 21:51:20 +03:00
rodzic 906c1e8651
commit e8ad854a6a
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -210,4 +210,8 @@ def get_outbound_entity(entity, private_key):
# Sign by author if not signed yet. We don't want to overwrite any existing signature in the case
# that this is being sent by the parent author
outbound.sign(private_key)
# If missing, also add same signature to `parent_author_signature`. This is required at the moment
# in all situations but is apparently being removed.
# TODO: remove this once Diaspora removes the extra signature
outbound.parent_signature = outbound.signature
return outbound