mirror of https://gitlab.com/bashrc2/epicyon
Remove hash ending
parent
e1ba56bc3d
commit
c2f8af0bf8
14
inbox.py
14
inbox.py
|
@ -1106,6 +1106,10 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
maxReplies: int,allowDeletion: bool) -> bool:
|
maxReplies: int,allowDeletion: bool) -> bool:
|
||||||
""" Anything which needs to be done after capabilities checks have passed
|
""" Anything which needs to be done after capabilities checks have passed
|
||||||
"""
|
"""
|
||||||
|
actor=keyId
|
||||||
|
if '#' in actor:
|
||||||
|
actor=keyId.split('#')[0]
|
||||||
|
|
||||||
if receiveLike(session,handle, \
|
if receiveLike(session,handle, \
|
||||||
baseDir,httpPrefix, \
|
baseDir,httpPrefix, \
|
||||||
domain,port, \
|
domain,port, \
|
||||||
|
@ -1116,7 +1120,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
federationList, \
|
federationList, \
|
||||||
debug):
|
debug):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Like accepted from '+keyId)
|
print('DEBUG: Like accepted from '+actor)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if receiveUndoLike(session,handle, \
|
if receiveUndoLike(session,handle, \
|
||||||
|
@ -1129,7 +1133,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
federationList, \
|
federationList, \
|
||||||
debug):
|
debug):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Undo like accepted from '+keyId)
|
print('DEBUG: Undo like accepted from '+actor)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if receiveAnnounce(session,handle, \
|
if receiveAnnounce(session,handle, \
|
||||||
|
@ -1142,7 +1146,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
federationList, \
|
federationList, \
|
||||||
debug):
|
debug):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Announce accepted from '+keyId)
|
print('DEBUG: Announce accepted from '+actor)
|
||||||
|
|
||||||
if receiveUndoAnnounce(session,handle, \
|
if receiveUndoAnnounce(session,handle, \
|
||||||
baseDir,httpPrefix, \
|
baseDir,httpPrefix, \
|
||||||
|
@ -1154,7 +1158,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
federationList, \
|
federationList, \
|
||||||
debug):
|
debug):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Undo announce accepted from '+keyId)
|
print('DEBUG: Undo announce accepted from '+actor)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if receiveDelete(session,handle, \
|
if receiveDelete(session,handle, \
|
||||||
|
@ -1167,7 +1171,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
||||||
federationList, \
|
federationList, \
|
||||||
debug,allowDeletion):
|
debug,allowDeletion):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Delete accepted from '+keyId)
|
print('DEBUG: Delete accepted from '+actor)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
populateReplies(baseDir,httpPrefix,domain,messageJson,maxReplies,debug)
|
populateReplies(baseDir,httpPrefix,domain,messageJson,maxReplies,debug)
|
||||||
|
|
Loading…
Reference in New Issue