mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-21 23:48:12 -07:00
Yeah, that'll probably work better
This commit is contained in:
@@ -1581,8 +1581,9 @@ class NomadNetworkNode():
|
|||||||
|
|
||||||
def repository_thanks(self, repo_path, add=False, link_id=None):
|
def repository_thanks(self, repo_path, add=False, link_id=None):
|
||||||
if add:
|
if add:
|
||||||
if link_id in self.thanks_deque: add = False
|
thanks_hash = RNS.Identity.full_hash(link_id+repo_path.encode("utf-8"))
|
||||||
else: self.thanks_deque.append(link_id)
|
if thanks_hash in self.thanks_deque: add = False
|
||||||
|
else: self.thanks_deque.append(thanks_hash)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
thanks_path = f"{repo_path}.thanks"
|
thanks_path = f"{repo_path}.thanks"
|
||||||
|
|||||||
Reference in New Issue
Block a user